Function at 0x10064630
Capabilities:
Get system information on windows
Initialize winsock library

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
push edi
je 0x1006465a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1bc
ret 4
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x3c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10064691
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1bc
ret 4
mov ecx, dword [esp + 0x1d0]
xor eax, eax
mov dword [ebx + 0x9c], ecx
mov ecx, 8
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
push esi
push esi
push esi
push 0xffffffffffffffff
mov dword [ebx], eax
mov dword [ebx + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, esi
mov dword [ebx + 8], eax
jne 0x100646e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1bc
ret 4
mov eax, dword [ebx + 0x84]
cmp eax, esi
je 0x10064701
push eax
call fcn.1023d925
add esp, 4
mov dword [ebx + 0x84], esi
push 0x4e1c
call fcn.1023d8fc
mov edi, eax
mov ecx, 0x1387
xor eax, eax
mov dword [ebx + 0x84], edi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ebx + 0x88], 0x1387
lea ebp, [ecx + ecx]
cmp ebp, esi
jne 0x1006476f
mov edi, dword [ebx + 0x28]
cmp edi, esi
je 0x10064764
mov eax, dword [ebx + 0x2c]
mov edx, eax
dec eax
test edx, edx
je 0x10064755
lea ebp, [eax + 1]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax]
add edi, 0x2c
dec ebp
jne 0x10064748
mov ecx, dword [ebx + 0x28]
push ecx
call fcn.1023d925
add esp, 4
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x2c], esi
jmp 0x10064892
mov ecx, dword [ebx + 0x28]
cmp ecx, esi
jne 0x1006479f
lea edx, [ebp + ebp*4]
lea eax, [ebp + edx*2]
shl eax, 2
push eax
call fcn.1023d8fc
push ebp
push eax
mov dword [ebx + 0x28], eax
call fcn.10067360
add esp, 0xc
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x2c], ebp
jmp 0x10064892
mov edi, dword [ebx + 0x30]
cmp ebp, edi
jg 0x100647ed
mov eax, dword [ebx + 0x2c]
cmp eax, ebp
jge 0x100647cc
mov edx, ebp
sub edx, eax
push edx
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea ecx, [ecx + eax*4]
push ecx
call fcn.10067360
add esp, 8
mov dword [ebx + 0x2c], ebp
jmp 0x10064892
jle 0x100647e5
sub eax, ebp
lea edx, [ebp + ebp*4]
push eax
lea eax, [ebp + edx*2]
lea ecx, [ecx + eax*4]
push ecx
call fcn.10067330
add esp, 8
mov dword [ebx + 0x2c], ebp
jmp 0x10064892
mov eax, dword [ebx + 0x34]
cmp eax, esi
jne 0x10064818
mov eax, dword [ebx + 0x2c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1006480c
mov eax, 4
jmp 0x10064818
cmp eax, 0x400
jle 0x10064818
mov eax, 0x400
add eax, edi
cmp ebp, eax
jge 0x10064824
mov dword [esp + 0x10], eax
jmp 0x1006482a
mov dword [esp + 0x10], ebp
mov eax, ebp
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.1023d8fc
mov ecx, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x28]
mov edi, eax
mov dword [esp + 0x18], eax
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x2c]
sub edx, ecx
push edx
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*4]
push edx
call fcn.10067360
mov eax, dword [ebx + 0x28]
push eax
call fcn.1023d925
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], ebp
mov dword [ebx + 0x30], edx
xor esi, esi
cmp dword [0x102f7658], esi
je 0x100648b8
mov eax, dword [esp + 0x2c]
push eax
push str.CSocketSystem::Initialize__dwNumberOfProcessors:_d_
push str.DataProc
push 1
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov eax, dword [ebx + 0x2c]
xor ebp, ebp
cmp eax, esi
jle 0x100648e5
xor edi, edi
mov edx, dword [ebx + 0x28]
mov ecx, edi
add ecx, edx
mov dword [ecx + 0x28], ebx
call fcn.10094d00
test eax, eax
je 0x100646d9
mov eax, dword [ebx + 0x2c]
inc ebp
add edi, 0x2c
cmp ebp, eax
jl 0x100648c3
push esi
push bind
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
lea esi, [ebx + 0x38]
push 0xffffffffffffffff
push 1
mov ecx, esi
mov dword [ebx + 0x60], eax
call fcn.10066da0
mov eax, dword [ebx + 0x3c]
xor ebp, ebp
test eax, eax
jle 0x1006492f
xor edi, edi
mov ecx, dword [esi]
mov dword [ecx + edi + 0x28], ebx
add ecx, edi
call fcn.10094d00
test eax, eax
je 0x100646d9
mov eax, dword [ebx + 0x3c]
inc ebp
add edi, 0x2c
cmp ebp, eax
jl 0x1006490f
mov eax, 1
pop edi
pop esi
mov dword [ebx + 0x24], 0
mov dword [ebx + 0xa0], eax
pop ebp
pop ebx
add esp, 0x1bc
ret 4