Function at 0x48e840
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov esi, dword [edi + 0xc]
test ecx, ecx
jne 0x48e8d1
lea eax, [ebp + 0x18]
push 5
push eax
call fcn.004481a0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004492c0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x48e8bd
cmp eax, 0xffffffff
je 0x48eadc
mov eax, dword [ebp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x48eadc
push 4
push 2
push dword [ebp + 0x18]
call fcn.004016c0
add esp, 0xc
jmp 0x48eadc
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
jne 0x48e93e
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x48e93e
lea eax, [ebp + 0xc]
push 0x57
push eax
call fcn.004481a0
add esp, 8
push eax
push 8
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004492c0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x48e92a
cmp eax, 0xffffffff
je 0x48eadc
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x48eadc
push 4
push 2
push dword [ebp + 0xc]
call fcn.004016c0
add esp, 0xc
jmp 0x48eadc
xor ebx, ebx
test byte [ebp + 0x18], 1
je 0x48e94d
mov ebx, 1
jmp 0x48e964
test cl, 2
je 0x48e959
mov ebx, 2
jmp 0x48e964
test cl, 1
mov eax, 4
cmovne ebx, eax
cmp dword [edi + 0x68], 0
jne 0x48ea15
mov ecx, dword [edi + 0x64]
cmp ecx, 0xffffffff
jne 0x48e9bf
mov eax, dword [edi + 0x60]
test eax, eax
je 0x48e993
push eax
call fcn.0052f5ef
push eax
call fcn.0052f219
mov ecx, eax
add esp, 8
cmp ecx, 0xffffffff
jne 0x48e9bf
lea eax, [ebp + 0x14]
push 5
push eax
call fcn.004481a0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004492c0
lea ecx, [ebp + 0x14]
call fcn.004011e0
jmp 0x48eadc
test byte [edi + 0x20], 2
mov eax, 0
push 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 + 0x68], eax
test eax, eax
jne 0x48ea15
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call fcn.004481a0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004492c0
lea ecx, [ebp - 0x10]
call fcn.004011e0
jmp 0x48eadc
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
dec eax
mov edx, ecx
and edx, eax
mov dword [ebp + 0x18], edx
je 0x48ea33
not eax
and ecx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
push eax
push ecx
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x48ea78
mov ebx, dword [ebp + 0x18]
lea ecx, [edi + 0x6c]
lea esi, [eax + ebx]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
call fcn.0048d8e0
mov dword [eax], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
cmp eax, 5
je 0x48eaa7
lea eax, [ebp - 0x18]
push eax
call fcn.004481a0
add esp, 8
push eax
push 8
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.004492c0
lea ecx, [ebp - 0x18]
jmp 0x48eac7
lea eax, [ebp - 0x1c]
push eax
call fcn.004481a0
add esp, 8
push eax
push 0xd
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.004492c0
lea ecx, [ebp - 0x1c]
call fcn.004011e0
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x68], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14