Function at 0x4a88e0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x571b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov edx, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], edx
cmove esi, eax
cmp ecx, 0xc0000001
jg 0x4a89bc
je 0x4a89b2
cmp ecx, 0x80000000
je 0x4a89ef
cmp ecx, 0xc0000000
jne 0x4a89c4
mov eax, 4
or esi, 2
jmp 0x4a89f7
mov eax, 8
or esi, 1
jmp 0x4a89f7
cmp ecx, 0xc0000002
je 0x4a89ef
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x11
push eax
call fcn.004aa070
push 0x584500
lea eax, [esp + 0x68]
push eax
call fcn.0054a9a1
mov eax, 2
or esi, 4
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x4a8a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.004aa030
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
call fcn.004aa070
push 0x584500
lea eax, [esp + 0x68]
push eax
call fcn.0054a9a1
mov dword [esp + 0x24], ebp
mov ebx, dword [0x5a1a5c]
mov dword [esp + 0xac], 0
test ebx, ebx
jne 0x4a8a66
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x80]
push 0
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.0054c540
mov edx, dword [esp + 0x18]
imul eax, ebx
mov ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a8a8f
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a8b1b
push 4
call fcn.004ace40
add esp, 4
lea ecx, [esp + 0x90]
push 0
push 0x10
push ecx
push 0
push ebp
call eax
test eax, eax
je 0x4a8ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.004aa030
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.004aa070
push 0x584500
lea eax, [esp + 0x68]
push eax
call fcn.0054a9a1
lea eax, [esp + 0x60]
push eax
push 0
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call fcn.004ae2c0
mov eax, dword [esp + 0x7c]
add esp, 0x1c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
add eax, ebx
push ecx
push eax
sub edx, ebx
push edx
sbb dword [esp + 0x20], 0
push dword [esp + 0x20]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x4a8b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.004aa030
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.004aa070
push 0x584500
lea eax, [esp + 0x68]
push eax
call fcn.0054a9a1
add eax, ebx
mov dword [edi + 8], ebx
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0xb0], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [esp + 0x40]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4a8be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.004aa030
mov ecx, edi
call fcn.004aab50
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.004aa070
push 0x584500
lea eax, [esp + 0x38]
push eax
call fcn.0054a9a1
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0054a992
add esp, 0x9c
ret 0x1c