Function at 0x4090fb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x2c], 0
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 - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40913d
mov eax, dword [ebp - 0x2c]
jmp 0x4093f0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov dword [ebp - 0x18], 0x7ffdf000
mov dword [ebp - 0x54], 0
mov ebx, dword [ebp - 0x4c]
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 - 0x1c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4091d7
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x4093f0
mov eax, dword [ebp - 0x1c]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0xc], 0x1c
lea eax, [ebp - 0x70]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x14]
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 0x4093b8
mov eax, dword [ebp - 0x60]
and eax, 0x1000
test eax, eax
je 0x4093b8
mov eax, dword [ebp - 0x5c]
and eax, 0x100
test eax, eax
jne 0x4093b8
mov ebx, dword [ebp - 0x64]
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 eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
mov ecx, edx
lea edx, [ebp - 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x14]
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 0x4093b8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x44d000
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x4092e1
mov eax, dword [ebp - 0xc]
add eax, 0x200
mov dword [esp + 4], eax
mov dword [esp], 0x44d800
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x4092e1
mov eax, 1
jmp 0x4092e6
mov eax, 0
test al, al
je 0x4092f2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x409305
add dword [ebp - 0xc], 2
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x24]
add eax, edx
cmp eax, dword [ebp - 0xc]
jbe 0x409305
jmp 0x4092a7
cmp dword [ebp - 0x10], 0
je 0x4093b8
mov eax, dword [ebp - 0x10]
add eax, 0x400
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
lea edx, [eax + 0x10]
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x409376
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
lea eax, [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
call eax
sub esp, 8
test eax, eax
setne al
test al, al
je 0x409376
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x2c]
movzx eax, ax
movzx eax, al
shr eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x2c]
shr ax, 8
movzx eax, ax
mov dword [0x44cfe0], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov edx, ecx
add eax, edx
add eax, 0x434
mov dword [0x44cfd8], eax
mov eax, dword [ebp - 0x10]
add eax, 0x434
mov dword [0x44cfdc], eax
mov dword [ebp - 0x2c], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov edx, eax
mov eax, dword [ebp - 0x1c]
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
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 4]
leave
ret