Function at 0x60c14c1
Capabilities:
Get system information on windows

Disassembly:
push 0x108
mov eax, 0x6105033
call fcn.060f40c7
mov edi, ecx
cmp dword [edi + 0xc], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], esi
jne 0x60c151b
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60c1514
test byte [eax + 0x1c], 1
je 0x60c1514
cmp byte [eax + 0x19], 2
jb 0x60c1514
push 0x6129884
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
xor eax, eax
jmp 0x60c19b4
mov ecx, dword [edi + 8]
cmp ecx, esi
jne 0x60c1557
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60c154f
test byte [eax + 0x1c], 1
je 0x60c154f
cmp byte [eax + 0x19], 3
jb 0x60c154f
push 0x6129884
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
mov eax, dword [edi + 0xc]
jmp 0x60c19b4
mov eax, dword [edi + 4]
xor ebx, ebx
dec eax
dec eax
je 0x60c18ba
dec eax
je 0x60c1803
dec eax
je 0x60c17b3
dec eax
je 0x60c15ba
dec eax
je 0x60c18ba
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60c19b2
test byte [eax + 0x1c], 1
je 0x60c19b2
cmp byte [eax + 0x19], 2
jb 0x60c19b2
push 0x6129884
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
jmp 0x60c19b2
cmp esi, 0x80
jbe 0x60c17ae
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x100]
call fcn.060c3335
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
mov byte [ebp - 4], 2
call fcn.060ec45e
pop ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x60c1627
push ebx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xdc], str.bad_allocation
call fcn.060f3e40
push 0x61343b4
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.060f3f9b
mov dword [ebp - 4], ebx
jmp 0x60c16bb
lea ecx, [ebp - 0x100]
call fcn.060c3531
test al, al
je 0x60c1767
lea eax, [edi + 0x10]
mov dword [edi + 0xc], eax
jmp 0x60c17a1
push esi
push 0
push dword [edi + 0xc]
mov dword [edi + 4], 2
mov dword [edi + 8], esi
call fcn.060eefa0
mov eax, dword [edi]
add esp, 0xc
push dword [edi + 8]
mov ecx, edi
push dword [edi + 0xc]
call dword [eax + 4]
push dword [ebp - 0xd0]
lea eax, [edi + 0x10]
push eax
push dword [edi + 0xc]
call fcn.060ee3a0
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.060c3371
jmp 0x60c17fb
mov dword [edi + 8], esi
jmp 0x60c17fb
mov ecx, dword [0x613e3c0]
test ecx, ecx
jne 0x60c17ce
push 0x613e3bc
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x613e3c0]
xor edx, edx
mov eax, esi
div ecx
and dword [ebp - 0xd0], ebx
imul eax, ecx
cmp dword [ebp - 0xd0], edx
sbb edx, edx
and edx, ecx
add edx, eax
cmp dword [edi + 8], eax
jbe 0x60c18ba
cmp edx, dword [edi + 8]
jb 0x60c18ba
mov ebx, dword [edi + 0xc]
jmp 0x60c19b2
push esi
push dword [edi + 0xc]
cmp esi, 0x80
jbe 0x60c188a
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x60c185c
mov ecx, dword [0x613af2c]
cmp ecx, 0x613af2c
je 0x60c19b2
test byte [ecx + 0x1c], 1
je 0x60c19b2
cmp byte [ecx + 0x19], 2
jb 0x60c19b2
push 0x6129884
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x60c15ad
mov esi, dword [edi + 8]
push ebx
push 0
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edx, dword [edi]
mov dword [edi + 8], eax
sub eax, esi
push eax
mov eax, dword [edi + 0xc]
add eax, esi
push eax
mov ecx, edi
call dword [edx + 4]
jmp 0x60c19b2
lea ebx, [edi + 0x10]
push ebx
mov dword [edi + 4], 5
mov dword [edi + 8], esi
call fcn.060ee3a0
add esp, 0xc
push dword [edi + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0xc], ebx
jmp 0x60c19b2
lea ecx, [ebp - 0xcc]
call fcn.060c0efa
and dword [ebp - 4], 0
cmp dword [edi + 4], 6
jne 0x60c1917
push dword [edi + 0x94]
lea ecx, [ebp - 0xcc]
push dword [edi + 0x90]
call fcn.060c1c1d
test eax, eax
jne 0x60c1917
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60c199d
test byte [eax + 0x1c], 1
je 0x60c199d
cmp byte [eax + 0x19], 2
jb 0x60c199d
push 0x6129884
push 0x13
jmp 0x60c1949
push esi
push dword [edi + 4]
lea ecx, [ebp - 0xcc]
call fcn.060c1073
test eax, eax
jne 0x60c1959
mov eax, dword [0x613af2c]
cmp eax, 0x613af2c
je 0x60c199d
test byte [eax + 0x1c], 1
je 0x60c199d
cmp byte [eax + 0x19], 2
jb 0x60c199d
push 0x6129884
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.060c1d8a
add esp, 0x10
jmp 0x60c199d
push dword [ebp - 0xc4]
mov eax, dword [edi]
push dword [ebp - 0xc0]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0xc4]
cmp eax, dword [edi + 8]
jb 0x60c197a
mov eax, dword [edi + 8]
push eax
push dword [edi + 0xc]
push dword [ebp - 0xc0]
call fcn.060ee3a0
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov ecx, edi
call fcn.060c1b49
mov ebx, dword [edi + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x61298a4
call fcn.060c19bc
mov eax, ebx
call fcn.060f4019
ret 4