Function at 0x4a1f80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5785a3
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x361], 0
cmp dword [esi + 0x28], 0
jne 0x4a1fe7
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [esi + 0x28], eax
mov byte [ebp - 0x361], cl
xor ecx, ecx
mov eax, dword [esi + 0x28]
mov edi, 4
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004acf15
mov dword [esi + 0x34], eax
xor ecx, ecx
mov eax, dword [esi + 0x28]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004acf15
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x28]
shl eax, 2
push eax
push 0
push dword [esi + 0x34]
call fcn.004af380
mov eax, dword [esi + 0x28]
shl eax, 2
push eax
push 0
push dword [esi + 0x50]
call fcn.004af380
add esp, 0x20
lea ecx, [ebp - 0x360]
call fcn.0049fa80
mov byte [ebp - 4], 1
mov ebx, 1
mov dword [ebp - 0x36c], ebx
xor edi, edi
mov dword [ebp - 0x370], edi
cmp edi, dword [esi + 0x28]
jae 0x4a216e
push 0x18
call fcn.004ad19b
mov ecx, dword [esi + 0x50]
mov dword [ecx + edi*4], eax
xorps xmm0, xmm0
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*4]
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
movq qword [eax + 0x10], xmm0
push 0
push 0
push 0
push 0
call fcn.0049bea0
mov ecx, dword [esi + 0x50]
mov ecx, dword [ecx + edi*4]
mov dword [ecx], eax
push 0
push 0
push 0
push 0
call fcn.0049bea0
add esp, 0x24
mov ecx, dword [esi + 0x50]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
push 1
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*4]
push dword [eax]
lea ecx, [ebp - 0x360]
call fcn.0049fb10
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*4]
mov dword [eax + 8], esi
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
push str.ThreadPool
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 2
push dword [esi + 0x90]
lea eax, [ebp - 0x2c]
push eax
push 0x4a1730
call fcn.0049bfa0
add esp, 0xc
mov ecx, dword [esi + 0x34]
mov dword [ecx + edi*4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x1c]
cmp byte [ebp - 0x361], 0
je 0x4a2157
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x10]
add ebx, ebx
mov dword [ebp - 0x36c], ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [esi + 0x50]
push dword [eax + edi*4]
call dword [edx + 0x24]
inc edi
jmp 0x4a205b
xor edi, edi
mov eax, dword [esi + 0x70]
mov ecx, 0x2710
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x368], ecx
mov eax, dword [esi + 0x28]
cmp eax, 0x14
jbe 0x4a2199
add eax, 0xffffffec
imul eax, eax, 0x64
add ecx, eax
mov dword [ebp - 0x368], ecx
push 0
push ecx
lea eax, [ebp - 0x374]
push eax
push 1
lea ecx, [ebp - 0x360]
call fcn.0049fd40
test eax, eax
je 0x4a2209
push str.Timeout_waiting_for_threads_
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 3
push str.SpawnThreads
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 4
mov eax, dword [esi]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004050f0
mov edi, 1
mov byte [esi + 0x8e], 1
xor ebx, ebx
test edi, edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x360]
call fcn.0049fab0
mov eax, ebx
jmp 0x4a2232
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret 0xc