Function at 0x4ebb00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
mov esi, dword [edi + 0xc]
mov dword [esp + 8], esi
jne 0x4ebb51
lea eax, [esp + 0x3c]
push 5
push eax
call fcn.00478c90
add esp, 8
push eax
push 0xd
mov ecx, esi
call fcn.004ec2a0
mov ecx, dword [esp + 0x3c]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ebb47
mov eax, dword [esp + 0x3c]
push eax
call fcn.0047fb60
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x14
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
mov ecx, ebx
or ecx, ebp
jne 0x4ebbae
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x48]
jne 0x4ebbae
lea eax, [esp + 0x44]
push 0x57
push eax
call fcn.00478c90
add esp, 8
push eax
push 8
mov ecx, esi
call fcn.004ec2a0
mov ecx, dword [esp + 0x44]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ebd8a
mov eax, dword [esp + 0x44]
push eax
call fcn.0047fb60
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x14
cmp dword [edi + 0x60], 0
jne 0x4ebc8a
mov eax, dword [edi + 0x5c]
cmp eax, 0xffffffff
jne 0x4ebc1e
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4ebbdb
push eax
call fcn.00506caa
push eax
call fcn.005068bc
add esp, 8
cmp eax, 0xffffffff
jne 0x4ebc1e
lea ecx, [esp + 0x44]
push 5
push ecx
call fcn.00478c90
add esp, 8
push eax
push 0xd
mov ecx, esi
call fcn.004ec2a0
mov edx, dword [esp + 0x44]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ebd8a
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0047fb60
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x14
mov edx, dword [edi + 0x20]
and edx, 2
mov ecx, 0
push 0
setne cl
push 0
push 0
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x60], eax
test eax, eax
jne 0x4ebc8a
lea edx, [esp + 0x44]
push 0xffffffffffffffff
push edx
call fcn.00478c90
add esp, 8
push eax
push 0xd
mov ecx, esi
call fcn.004ec2a0
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4ebd8a
mov edx, dword [esp + 0x44]
push edx
call fcn.0047fb60
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x14
mov eax, dword [edi + 0x20]
mov dword [esp + 0x3c], 0
test al, 1
je 0x4ebca1
mov dword [esp + 0x3c], 4
test al, 2
je 0x4ebcad
mov dword [esp + 0x3c], 2
lea ecx, [esp + 0x14]
mov eax, ebp
push ecx
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x30]
dec eax
mov esi, ebx
and esi, eax
je 0x4ebcce
not eax
and eax, ebx
mov ebx, eax
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x60]
add edx, esi
push edx
push ebx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4ebd0c
lea edx, [esp + 0x44]
lea ebx, [eax + esi]
push edx
lea ecx, [edi + 0x64]
mov dword [esp + 0x48], ebx
call fcn.004eba40
pop ebp
mov dword [eax], esi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x28
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
cmp eax, 5
je 0x4ebd46
lea eax, [esp + 0x48]
push eax
call fcn.00478c90
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push 8
call fcn.004ec2a0
mov ecx, dword [esp + 0x44]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ebd79
mov eax, dword [esp + 0x44]
push eax
jmp 0x4ebd71
lea ecx, [esp + 0x40]
push ecx
call fcn.00478c90
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push 0xd
call fcn.004ec2a0
mov edx, dword [esp + 0x3c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ebd79
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0047fb60
add esp, 4
mov edx, dword [edi + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x60], 0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x14