Function at 0x49a790
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8330
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov esi, dword [edi + 0xc]
test ecx, ecx
jne 0x49a81f
lea eax, [esp + 0x58]
push 5
push eax
call fcn.00410680
add esp, 8
push eax
mov dword [esp + 0x44], 0
push 0xd
mov ecx, esi
call fcn.0047c300
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
test ecx, ecx
je 0x49a80d
cmp ecx, 0xffffffff
je 0x49a9e8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49a9e8
mov eax, dword [esp + 0x58]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x49a9e8
mov ebp, dword [esp + 0x48]
mov eax, ebp
mov edx, dword [esp + 0x4c]
or eax, edx
jne 0x49a853
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
jne 0x49a853
lea eax, [esp + 0x58]
push 0x57
push eax
call fcn.00410680
add esp, 8
push eax
mov dword [esp + 0x44], 1
push 8
jmp 0x49a7dd
xor ebx, ebx
test byte [esp + 0x58], 1
je 0x49a863
mov ebx, 1
jmp 0x49a87c
mov eax, ecx
and eax, 2
je 0x49a871
mov ebx, 2
jmp 0x49a87c
and ecx, 1
mov eax, 4
cmovne ebx, eax
cmp dword [edi + 0x60], 0
jne 0x49a923
mov ecx, dword [edi + 0x5c]
cmp ecx, 0xffffffff
jne 0x49a8da
mov eax, dword [edi + 0x58]
test eax, eax
je 0x49a8ab
push eax
call fcn.004c9d00
push eax
call fcn.004c7dd9
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
jne 0x49a8da
lea eax, [esp + 0x58]
push 5
push eax
call fcn.00410680
add esp, 8
mov dword [esp + 0x40], 2
push eax
push 0xd
mov ecx, esi
call fcn.0047c300
lea ecx, [esp + 0x58]
call fcn.00467a00
jmp 0x49a9e8
mov eax, dword [edi + 0x20]
and eax, 2
push 0
mov eax, 0
setne al
push 0
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x60], eax
test eax, eax
jne 0x49a91f
lea eax, [esp + 0x58]
push 0xffffffffffffffff
push eax
call fcn.00410680
add esp, 8
mov dword [esp + 0x40], 3
jmp 0x49a8c2
mov edx, dword [esp + 0x4c]
mov eax, edx
sar eax, 0x1f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
mov ecx, ebp
dec eax
and ecx, eax
mov dword [esp + 0x58], ecx
je 0x49a946
not eax
and ebp, eax
mov eax, dword [esp + 0x50]
add eax, ecx
push eax
push ebp
push dword [esp + 0x54]
push ebx
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49a97e
mov ebx, dword [esp + 0x58]
lea ecx, [edi + 0x64]
lea esi, [eax + ebx]
lea eax, [esp + 0x58]
mov dword [esp + 0x58], esi
push eax
call fcn.004997f0
mov dword [eax], ebx
mov eax, esi
jmp 0x49a9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
cmp eax, 5
je 0x49a9b0
lea eax, [esp + 0x4c]
push eax
call fcn.00410680
add esp, 8
push eax
push 8
mov ecx, esi
mov dword [esp + 0x48], 5
call fcn.0047c300
lea ecx, [esp + 0x48]
jmp 0x49a9d3
lea eax, [esp + 0x54]
push eax
call fcn.00410680
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [esp + 0x48], 4
call fcn.0047c300
lea ecx, [esp + 0x50]
call fcn.00467a00
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x60], 0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14