Function at 0x51a1b0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x53417b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x551e00]
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 0x51a28c
je 0x51a282
cmp ecx, 0x80000000
je 0x51a2bf
cmp ecx, 0xc0000000
jne 0x51a294
mov eax, 4
or esi, 2
jmp 0x51a2c7
mov eax, 8
or esi, 1
jmp 0x51a2c7
cmp ecx, 0xc0000002
je 0x51a2bf
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x11
push eax
call fcn.0051b660
push 0x549624
lea eax, [esp + 0x68]
push eax
call fcn.004f9e41
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 0x51a30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.0051b620
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
call fcn.0051b660
push 0x549624
lea eax, [esp + 0x68]
push eax
call fcn.004f9e41
mov dword [esp + 0x24], ebp
mov ebx, dword [0x55b460]
mov dword [esp + 0xac], 0
test ebx, ebx
jne 0x51a336
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.004fb9e0
mov edx, dword [esp + 0x18]
imul eax, ebx
mov ebx, edx
sub ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51a35f
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x51a3eb
push 4
call fcn.0051de30
add esp, 4
lea ecx, [esp + 0x90]
push 0
push 0x10
push ecx
push 0
push ebp
call eax
test eax, eax
je 0x51a3b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.0051b620
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.0051b660
push 0x549624
lea eax, [esp + 0x68]
push eax
call fcn.004f9e41
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.0051ef20
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 0x51a43a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.0051b620
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
call fcn.0051b660
push 0x549624
lea eax, [esp + 0x68]
push eax
call fcn.004f9e41
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 0x51a4b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
call fcn.0051b620
mov ecx, edi
call fcn.0051ebd0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.0051b660
push 0x549624
lea eax, [esp + 0x38]
push eax
call fcn.004f9e41
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.004f9e32
add esp, 0x9c
ret 0x1c