Function at 0x47af80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x56a8e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 0xc]
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 eax, dword [eax]
mov dword [ebp - 0x74], eax
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
cmp ecx, 0xc0000001
jg 0x47b023
je 0x47b01e
cmp ecx, 0x80000000
je 0x47b05a
cmp ecx, 0xc0000000
jne 0x47b02b
or esi, 2
jmp 0x47b05d
or esi, 1
jmp 0x47b05d
cmp ecx, 0xc0000002
je 0x47b05a
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x11
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0047c060
push 0x54f01c
lea eax, [ebp - 0x3c]
push eax
call fcn.00493d65
or esi, 4
mov dword [ebp - 0x88], 0xffffffff
mov ebx, dword [0x571548]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x47b085
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x18]
push 0
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004941b0
imul eax, ebx
mov edx, dword [ebp - 0x70]
mov ebx, edx
sub ebx, eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x47b0a9
sub eax, ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x47b119
push 4
call fcn.0047de50
add esp, 4
lea ecx, [ebp - 0x9c]
push 0
push 0x10
push ecx
push 0
push dword [ebp - 0x74]
call eax
test eax, eax
je 0x47b0ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.0047c020
push 0
lea eax, [ebp - 0x84]
jmp 0x47b043
lea eax, [ebp - 0x80]
push eax
push 0
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
call fcn.0047e630
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x70]
add esp, 0x1c
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
push ecx
add eax, ebx
push eax
sub edx, ebx
sbb dword [ebp - 0x6c], 0
push edx
push dword [ebp - 0x6c]
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x47b157
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.0047c020
push 0
lea eax, [ebp - 0x84]
jmp 0x47b043
add eax, ebx
mov dword [edi], eax
mov eax, dword [ebp - 0x7c]
push 0xffffffffffffffff
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [edi + 0x10]
push eax
call esi
push eax
push dword [ebp - 0x74]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x47b1cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0047c020
mov ecx, edi
call fcn.0047cbb0
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0047c060
push 0x54f01c
lea eax, [ebp - 0x68]
jmp 0x47b054
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493d56
mov esp, ebp
pop ebp
ret 0x1c