Function at 0x658c1a3
Capabilities:
Get system information on windows

Disassembly:
push 0x108
mov eax, 0x65cf503
call fcn.065b9f4b
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd0], edi
cmp dword [esi + 0xc], ebx
jne 0x658c1fe
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c1f7
test byte [eax + 0x1c], 1
je 0x658c1f7
cmp byte [eax + 0x19], 2
jb 0x658c1f7
push 0x65d24b0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
xor eax, eax
jmp 0x658c69c
mov ecx, dword [esi + 8]
cmp ecx, edi
jne 0x658c23a
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c232
test byte [eax + 0x1c], 1
je 0x658c232
cmp byte [eax + 0x19], 3
jb 0x658c232
push 0x65d24b0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
mov eax, dword [esi + 0xc]
jmp 0x658c69c
mov eax, dword [esi + 4]
dec eax
dec eax
je 0x658c59f
dec eax
je 0x658c4e4
dec eax
je 0x658c49b
dec eax
je 0x658c29b
dec eax
je 0x658c59f
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c69a
test byte [eax + 0x1c], 1
je 0x658c69a
cmp byte [eax + 0x19], 2
jb 0x658c69a
push 0x65d24b0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
jmp 0x658c69a
cmp edi, 0x80
jbe 0x658c496
mov dword [ebp - 0xd4], ecx
lea ecx, [ebp - 0x100]
call fcn.0658de1b
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
mov byte [ebp - 4], 2
call fcn.065b7200
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x658c308
push ebx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xdc], str.bad_allocation
call fcn.065b6e97
push 0x65dde4c
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.065b9fb6
mov dword [ebp - 4], ebx
jmp 0x658c39c
lea ecx, [ebp - 0x100]
call fcn.0658ddc3
test al, al
je 0x658c44f
lea eax, [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x658c489
push edi
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 2
mov dword [esi + 8], edi
call fcn.065b84a0
mov eax, dword [esi]
add esp, 0xc
push dword [esi + 8]
mov ecx, esi
push dword [esi + 0xc]
call dword [eax + 4]
push dword [ebp - 0xd4]
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.065ba010
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.0658ddd9
jmp 0x658c4dc
mov dword [esi + 8], edi
jmp 0x658c4dc
mov ecx, dword [0x65e688c]
cmp ecx, ebx
jne 0x658c4b6
push 0x65e6888
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x65e688c]
xor edx, edx
mov eax, edi
div ecx
xor ebx, ebx
imul eax, ecx
cmp ebx, edx
sbb edx, edx
and edx, ecx
mov ecx, dword [esi + 8]
add edx, eax
cmp ecx, eax
jbe 0x658c59f
cmp edx, ecx
jb 0x658c59f
mov ebx, dword [esi + 0xc]
jmp 0x658c69a
push edi
push dword [esi + 0xc]
cmp edi, 0x80
jbe 0x658c56f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x658c537
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c69a
test byte [eax + 0x1c], 1
je 0x658c69a
cmp byte [eax + 0x19], 2
jb 0x658c69a
push 0x65d24b0
push 0x15
jmp 0x658c288
mov eax, dword [esi + 8]
push ebx
push 0
mov dword [esi + 0xc], ebx
mov dword [ebp - 0xd0], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [esi]
mov dword [esi + 8], eax
sub eax, dword [ebp - 0xd0]
mov ecx, esi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0xd0]
push eax
call dword [edx + 4]
jmp 0x658c69a
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 4], 5
mov dword [esi + 8], edi
call fcn.065ba010
add esp, 0xc
push dword [esi + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xc], ebx
jmp 0x658c69a
lea ecx, [ebp - 0xcc]
call fcn.0658b8e9
and dword [ebp - 4], 0
cmp dword [esi + 4], 6
jne 0x658c5fc
push dword [esi + 0x94]
lea ecx, [ebp - 0xcc]
push dword [esi + 0x90]
call fcn.0658ba99
test eax, eax
jne 0x658c5fc
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c685
test byte [eax + 0x1c], 1
je 0x658c685
cmp byte [eax + 0x19], 2
jb 0x658c685
push 0x65d24b0
push 0x13
jmp 0x658c62e
push edi
push dword [esi + 4]
lea ecx, [ebp - 0xcc]
call fcn.0658bf32
test eax, eax
jne 0x658c63e
mov eax, dword [0x65e4c3c]
cmp eax, 0x65e4c3c
je 0x658c685
test byte [eax + 0x1c], 1
je 0x658c685
cmp byte [eax + 0x19], 2
jb 0x658c685
push 0x65d24b0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0658b8a5
add esp, 0x10
jmp 0x658c685
push dword [ebp - 0xc4]
mov eax, dword [esi]
push dword [ebp - 0xc0]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 8]
cmp dword [ebp - 0xc4], eax
jae 0x658c662
mov eax, dword [ebp - 0xc4]
push eax
push dword [esi + 0xc]
push dword [ebp - 0xc0]
call fcn.065ba010
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.0658c0ce
mov ebx, dword [esi + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x65d24c0
call fcn.0658b9e0
mov eax, ebx
call fcn.065b9fa7
ret 4