Function at 0x4093f5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x410
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409432
mov eax, 0
jmp 0x409637
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jae 0x409622
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0x1c
lea edx, [ebp - 0x68]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x409611
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
and eax, 0x1000
test eax, eax
je 0x409617
mov eax, dword [ebp - 0x54]
and eax, 0x100
test eax, eax
jne 0x409617
mov ebx, dword [ebp - 0x5c]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x6c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
test eax, eax
setne al
test al, al
je 0x4095ea
mov dword [esp + 4], 0x44d000
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x409562
mov eax, dword [ebp - 0x24]
add eax, 0x400
mov dword [esp + 4], 0x44d800
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x409562
mov eax, 1
jmp 0x409567
mov eax, 0
test al, al
je 0x4095ea
mov eax, dword [ebp - 0xc]
add eax, 0x800
mov dword [0x44cfd8], eax
mov eax, dword [ebp - 0x24]
add eax, 0x800
mov dword [0x44cfdc], eax
mov eax, dword [0x44cfdc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test al, al
jne 0x4095b1
mov eax, dword [ebp - 0x28]
add eax, 1
movzx eax, byte [eax]
test al, al
je 0x4095cb
add dword [ebp - 0x18], 1
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test al, al
je 0x4095cb
jmp 0x4095b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
jmp 0x409637
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
jmp 0x409617
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
jmp 0x40945d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret