Function at 0x5fef9235
Capabilities:
Get system information on windows

Disassembly:
push 0x108
mov eax, 0x5ff32d96
call fcn.5ff1f8cb
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 0x5fef9290
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef9289
test byte [eax + 0x1c], 1
je 0x5fef9289
cmp byte [eax + 0x19], 2
jb 0x5fef9289
push 0x5ff36f50
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
xor eax, eax
jmp 0x5fef972e
mov ecx, dword [esi + 8]
cmp ecx, edi
jne 0x5fef92cc
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef92c4
test byte [eax + 0x1c], 1
je 0x5fef92c4
cmp byte [eax + 0x19], 3
jb 0x5fef92c4
push 0x5ff36f50
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
mov eax, dword [esi + 0xc]
jmp 0x5fef972e
mov eax, dword [esi + 4]
dec eax
dec eax
je 0x5fef9631
dec eax
je 0x5fef9576
dec eax
je 0x5fef952d
dec eax
je 0x5fef932d
dec eax
je 0x5fef9631
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef972c
test byte [eax + 0x1c], 1
je 0x5fef972c
cmp byte [eax + 0x19], 2
jb 0x5fef972c
push 0x5ff36f50
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
jmp 0x5fef972c
cmp edi, 0x80
jbe 0x5fef9528
mov dword [ebp - 0xd4], ecx
lea ecx, [ebp - 0x100]
call fcn.5feec33d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
mov byte [ebp - 4], 2
call fcn.5ff1fe57
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x5fef939a
push ebx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xdc], str.bad_allocation
call fcn.5ff1ec55
push 0x5ff40650
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.5ff1f936
mov dword [ebp - 4], ebx
jmp 0x5fef942e
lea ecx, [ebp - 0x100]
call fcn.5feec2e5
test al, al
je 0x5fef94e1
lea eax, [esi + 0x10]
mov dword [esi + 0xc], eax
jmp 0x5fef951b
push edi
push 0
push dword [esi + 0xc]
mov dword [esi + 4], 2
mov dword [esi + 8], edi
call fcn.5ff1f9d0
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.5ff21aa0
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.5feec2fb
jmp 0x5fef956e
mov dword [esi + 8], edi
jmp 0x5fef956e
mov ecx, dword [0x5ff44e14]
cmp ecx, ebx
jne 0x5fef9548
push 0x5ff44e10
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x5ff44e14]
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 0x5fef9631
cmp edx, ecx
jb 0x5fef9631
mov ebx, dword [esi + 0xc]
jmp 0x5fef972c
push edi
push dword [esi + 0xc]
cmp edi, 0x80
jbe 0x5fef9601
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 0x5fef95c9
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef972c
test byte [eax + 0x1c], 1
je 0x5fef972c
cmp byte [eax + 0x19], 2
jb 0x5fef972c
push 0x5ff36f50
push 0x15
jmp 0x5fef931a
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 0x5fef972c
lea ebx, [esi + 0x10]
push ebx
mov dword [esi + 4], 5
mov dword [esi + 8], edi
call fcn.5ff21aa0
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 0x5fef972c
lea ecx, [ebp - 0xcc]
call fcn.5fef897b
and dword [ebp - 4], 0
cmp dword [esi + 4], 6
jne 0x5fef968e
push dword [esi + 0x94]
lea ecx, [ebp - 0xcc]
push dword [esi + 0x90]
call fcn.5fef8b2b
test eax, eax
jne 0x5fef968e
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef9717
test byte [eax + 0x1c], 1
je 0x5fef9717
cmp byte [eax + 0x19], 2
jb 0x5fef9717
push 0x5ff36f50
push 0x13
jmp 0x5fef96c0
push edi
push dword [esi + 4]
lea ecx, [ebp - 0xcc]
call fcn.5fef8fc4
test eax, eax
jne 0x5fef96d0
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef9717
test byte [eax + 0x1c], 1
je 0x5fef9717
cmp byte [eax + 0x19], 2
jb 0x5fef9717
push 0x5ff36f50
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
jmp 0x5fef9717
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 0x5fef96f4
mov eax, dword [ebp - 0xc4]
push eax
push dword [esi + 0xc]
push dword [ebp - 0xc0]
call fcn.5ff21aa0
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.5fef9160
mov ebx, dword [esi + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x5ff36f60
call fcn.5fef8a72
mov eax, ebx
call fcn.5ff1f927
ret 4