Function at 0x407a40
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42b1d6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov dword [esp + 0x24], str.BR_APP_TITLE
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x2c], str.BR_INVALIDCMDLINE
mov dword [esp + 0x30], 0x65
mov dword [esp + 0x34], 0x42edc0
mov dword [esp + 0x38], 0x66
mov dword [esp + 0x3c], str.BR_DETAIL_HIDE
mov dword [esp + 0x40], 0x67
mov dword [esp + 0x44], str.BR_FAIL_EXIT
mov dword [esp + 0x48], 0x68
mov dword [esp + 0x4c], str.BR_SERVER_URL
mov dword [esp + 0x50], 0x69
mov dword [esp + 0x54], str.BR_SEND_FAIL
mov dword [esp + 0x58], 0x6a
mov dword [esp + 0x5c], str.BR_TIP
mov dword [esp + 0x60], 0x6b
mov dword [esp + 0x64], str.BR_HELP
mov dword [esp + 0x68], 0x6c
mov dword [esp + 0x6c], str.BR_CONTACT1
mov dword [esp + 0x70], 0x6d
mov dword [esp + 0x74], str.BR_SEND
mov dword [esp + 0x78], 0x6e
mov dword [esp + 0x7c], str.BR_RESTART
mov dword [esp + 0x80], 0x6f
mov dword [esp + 0x84], str.BR_ASSIST
mov dword [esp + 0x88], 0x70
mov dword [esp + 0x8c], str.BR_QQACOUNT
mov dword [esp + 0x90], 0x71
mov dword [esp + 0x94], str.BR_CONTACT2
mov dword [esp + 0x98], 0x72
mov dword [esp + 0x9c], str.BR_REASON
mov dword [esp + 0xa0], 0x73
mov dword [esp + 0xa4], str.BR_OK
mov dword [esp + 0xa8], 0x74
mov dword [esp + 0xac], str.BR_ERRINFO
mov dword [esp + 0xb0], 0x75
mov dword [esp + 0xb4], str.BR_CRASH_SIGNATURE
mov dword [esp + 0xb8], 0x76
xor ebp, ebp
mov ecx, dword [esp + ebp*8 + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.004043b0
mov dword [esp + 0xc8], 0
mov ecx, dword [esp + ebp*8 + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004079a0
add esp, 8
mov esi, eax
lea eax, [esp + 0x18]
push eax
mov ecx, 0x438f90
mov byte [esp + 0xcc], 1
call fcn.004044a0
mov ecx, dword [esi]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x407c64
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x407c59
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x407c59
call fcn.00401da0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407c4e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x407c64
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00401cb0
mov byte [esp + 0xc8], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, 0x13
jb 0x407bcc
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret