Function at 0x4257ab
Capabilities:
Get system information on windows

Disassembly:
push pe_nt_image_headers32
mov eax, 0x4b78be
call fcn.004701a5
mov edi, ecx
cmp dword [edi + 0xc], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd8], esi
jne 0x425805
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x4257fe
test byte [eax + 0x1c], 1
je 0x4257fe
cmp byte [eax + 0x19], 2
jb 0x4257fe
push 0x4c50f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
xor eax, eax
jmp 0x425c9e
mov ecx, dword [edi + 8]
cmp ecx, esi
jne 0x425841
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x425839
test byte [eax + 0x1c], 1
je 0x425839
cmp byte [eax + 0x19], 3
jb 0x425839
push 0x4c50f8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
mov eax, dword [edi + 0xc]
jmp 0x425c9e
mov eax, dword [edi + 4]
xor ebx, ebx
dec eax
dec eax
je 0x425ba4
dec eax
je 0x425aed
dec eax
je 0x425a9d
dec eax
je 0x4258a4
dec eax
je 0x425ba4
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x425c9c
test byte [eax + 0x1c], 1
je 0x425c9c
cmp byte [eax + 0x19], 2
jb 0x425c9c
push 0x4c50f8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
jmp 0x425c9c
cmp esi, 0x80
jbe 0x425a98
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0x100]
call fcn.00426a1a
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
mov byte [ebp - 4], 2
call fcn.0041ee04
pop ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x425911
push ebx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xdc], str.bad_allocation
call fcn.0046eb50
push 0x4ffba8
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x110], 0x4c4c2c
call fcn.0046fc96
mov dword [ebp - 4], ebx
jmp 0x4259a5
lea ecx, [ebp - 0x100]
call fcn.00426c16
test al, al
je 0x425a51
lea eax, [edi + 0x10]
mov dword [edi + 0xc], eax
jmp 0x425a8b
push esi
push 0
push dword [edi + 0xc]
mov dword [edi + 4], 2
mov dword [edi + 8], esi
call fcn.0046bdb0
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.0046b040
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.00426a56
jmp 0x425ae5
mov dword [edi + 8], esi
jmp 0x425ae5
mov ecx, dword [0x50bafc]
test ecx, ecx
jne 0x425ab8
push 0x50baf8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x50bafc]
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 0x425ba4
cmp edx, dword [edi + 8]
jb 0x425ba4
mov ebx, dword [edi + 0xc]
jmp 0x425c9c
push esi
push dword [edi + 0xc]
cmp esi, 0x80
jbe 0x425b74
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 0x425b46
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x425c9c
test byte [ecx + 0x1c], 1
je 0x425c9c
cmp byte [ecx + 0x19], 2
jb 0x425c9c
push 0x4c50f8
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x425897
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 0x425c9c
lea ebx, [edi + 0x10]
push ebx
mov dword [edi + 4], 5
mov dword [edi + 8], esi
call fcn.0046b040
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 0x425c9c
lea ecx, [ebp - 0xcc]
call fcn.004251e4
and dword [ebp - 4], 0
cmp dword [edi + 4], 6
jne 0x425c01
push dword [edi + 0x94]
lea ecx, [ebp - 0xcc]
push dword [edi + 0x90]
call fcn.00425f07
test eax, eax
jne 0x425c01
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x425c87
test byte [eax + 0x1c], 1
je 0x425c87
cmp byte [eax + 0x19], 2
jb 0x425c87
push 0x4c50f8
push 0x13
jmp 0x425c33
push esi
push dword [edi + 4]
lea ecx, [ebp - 0xcc]
call fcn.0042535d
test eax, eax
jne 0x425c43
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x425c87
test byte [eax + 0x1c], 1
je 0x425c87
cmp byte [eax + 0x19], 2
jb 0x425c87
push 0x4c50f8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041df22
add esp, 0x10
jmp 0x425c87
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 0x425c64
mov eax, dword [edi + 8]
push eax
push dword [edi + 0xc]
push dword [ebp - 0xc0]
call fcn.0046b040
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
mov ecx, edi
call fcn.00425e33
mov ebx, dword [edi + 0xc]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x4c5108
call fcn.00425ca6
mov eax, ebx
call fcn.004700f7
ret 4