Function at 0x40a850
Capabilities:
Get networking parameters
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43ac28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, ecx
push 0x248
push 0x40
mov dword [esp + 0x30], ebx
call edi
mov esi, eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x248
call sub.iphlpapi.dll_GetNetworkParams
cmp eax, 0x6f
jne 0x40a8ad
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x20]
push ecx
push 0x40
call edi
mov esi, eax
lea edx, [esp + 0x20]
push edx
push esi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x40ac67
lea ecx, [esp + 0x30]
xor ebp, ebp
mov dword [esp + 0x31], eax
push 6
push ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x38], 0
mov byte [esp + 0x3d], al
call fcn.0041fbe0
add esp, 8
test eax, eax
je 0x40ac67
mov dl, byte [esp + 0x13]
mov dword [esp + 0x50], ebp
mov byte [esp + 0x4c], dl
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
lea eax, [esp + 0x4c]
mov dword [esp + 0x80], ebp
push eax
call fcn.0041f9d0
add esp, 4
lea edi, [ebx + 0x64]
add esi, 0x10c
mov dword [esp + 0x2c], edi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
lea ecx, [ebx + 0x54]
push eax
push edx
call fcn.0040ac80
cmp esi, ebp
je 0x40ac4c
jmp 0x40a94a
xor ebp, ebp
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40ac36
mov ecx, dword [esp + 0x54]
sub ecx, eax
sar ecx, 2
cmp ebp, ecx
jae 0x40ac36
mov edx, dword [esp + 0x1c]
mov eax, dword [0x444020]
mov dword [esp + 0x18], eax
lea esi, [edx + 4]
test esi, esi
je 0x40a9ca
mov ecx, esi
shr ecx, 0x10
jne 0x40a994
and esi, 0xffff
lea ecx, [esp + 0x18]
push esi
call fcn.00405370
jmp 0x40a9ca
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x40a9ca
push edi
lea ecx, [esp + 0x1c]
call fcn.00405710
test eax, eax
je 0x40a9ca
lea edx, [edi + 1]
cmp edx, edi
jb 0x40a9ca
mov ecx, edi
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x80], 1
mov edx, dword [ecx + ebp*4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov eax, dword [0x444020]
test esi, esi
mov dword [esp + 0x14], eax
je 0x40aa3e
mov ecx, esi
shr ecx, 0x10
jne 0x40aa08
and esi, 0xffff
lea ecx, [esp + 0x14]
push esi
call fcn.00405370
jmp 0x40aa3e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x40aa3e
push edi
lea ecx, [esp + 0x18]
call fcn.00405710
test eax, eax
je 0x40aa3e
lea edx, [edi + 1]
cmp edx, edi
jb 0x40aa3e
mov ecx, edi
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x88], 2
call fcn.0041fd80
add esp, 8
test al, al
jne 0x40aac8
mov eax, dword [esp + 0x14]
mov edx, dword [0x444024]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40aa8b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40aa8b
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0043a372
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x444024]
mov byte [esp + 0x80], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40aac2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40aac2
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043a372
add esp, 4
inc ebp
jmp 0x40a94a
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x3c]
push 1
lea ebp, [eax + 4]
push ecx
push ebp
lea ecx, [ebx + 4]
call fcn.0042f5a0
test eax, eax
je 0x40abd0
mov edx, dword [esp + 0x50]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov esi, dword [edx]
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
mov cx, word [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov word [esp + 0x60], cx
mov cx, word [esp + 0x34]
mov dword [esp + 0x6c], edx
mov dx, word [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x38]
mov word [esp + 0x70], cx
mov word [esp + 0x44], dx
lea ecx, [ebx + 0x54]
lea edx, [esp + 0x40]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 8]
push edx
push 1
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x54], edi
call fcn.0040acd0
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x34]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x40abb0
mov esi, dword [ecx + 8]
mov eax, 0x92492493
sub esi, ebx
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x40abb0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
cmp dword [edx + eax + 0xc], edi
je 0x40abac
mov eax, edx
inc ebp
add eax, 0x1c
mov dword [esp + 0x24], eax
jmp 0x40ab6f
test ebp, ebp
jge 0x40abbe
mov eax, dword [ecx + 8]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.0040a4f0
mov eax, dword [esp + 0x28]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [0x444024]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40abff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40abff
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0043a372
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x444024]
mov byte [esp + 0x80], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ac36
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ac36
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0043a372
add esp, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40a948
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x80], 0xffffffff
call fcn.004322f0
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret