Function at 0x4246e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4f22ec]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
lea eax, [esp + 0x24]
mov ebx, ecx
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x24]
cmp ax, 9
je 0x424726
cmp ax, 0xc
je 0x424726
lea eax, [esi + 0x10]
mov dword [esp + 0xc], 0x40
jmp 0x424733
mov eax, 0x20
mov dword [esp + 0xc], 0x70
mov dword [esp + 0x14], eax
add eax, 8
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.0049570f
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4249ed
mov eax, dword [esp + 0xc]
add eax, 0x10
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x4249ed
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x20], esi
je 0x4248ea
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00493600
mov eax, dword [0x53c3bc]
add esp, 0xc
test eax, eax
jne 0x4247f0
push str.NtWow64QueryInformationProcess64
push ecx
mov ecx, str.NtDll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c3bc], eax
test eax, eax
jne 0x4247f0
call fcn.00440bb0
push eax
push str.NtDll
push str.NtWow64QueryInformationProcess64
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x4249ed
cmp dword [0x53c384], esi
jne 0x424842
push str.NtWow64ReadVirtualMemory64
push ecx
mov ecx, str.NtDll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c384], eax
test eax, eax
jne 0x42483d
call fcn.00440bb0
push eax
push str.NtDll
push str.NtWow64ReadVirtualMemory64
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x4249ed
mov eax, dword [0x53c3bc]
push 0
push 0x30
lea ecx, [esp + 0x50]
push ecx
push 0
push ebx
call eax
test eax, eax
js 0x4249ed
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push ebx
call dword [0x53c384]
test eax, eax
js 0x4249ed
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x24]
push edi
push dword [ecx + eax + 4]
push dword [ecx + eax]
push ebx
call dword [0x53c384]
test eax, eax
js 0x4249ed
mov eax, dword [esp + 0xc]
push 2
movzx eax, word [eax + edi]
inc eax
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x4249ed
mov ecx, dword [esp + 0xc]
push 0
movzx eax, word [ecx + edi]
cdq
push edx
push eax
push esi
push dword [ecx + edi + 0xc]
push dword [ecx + edi + 8]
push ebx
call dword [0x53c384]
test eax, eax
jns 0x4249ed
jmp 0x4249e2
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x53c374]
test eax, eax
jne 0x424952
push str.NtQueryInformationProcess
push ecx
mov ecx, str.NtDll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c374], eax
test eax, eax
jne 0x424952
call fcn.00440bb0
push eax
push str.NtDll
push str.NtQueryInformationProcess
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x4249ed
push 0
push 0x18
lea ecx, [esp + 0x50]
push ecx
push 0
push ebx
call eax
test eax, eax
js 0x4249ed
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4249ed
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x20]
push edi
push dword [ecx + eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4249ed
mov ecx, dword [esp + 0xc]
mov edx, 0x200
movzx eax, word [ecx + edi]
cmp ax, dx
jb 0x4249b2
mov eax, edx
mov word [ecx + edi], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.0049570f
mov ecx, dword [esp + 0x14]
add esp, 8
mov esi, eax
movzx eax, word [ecx + edi]
push 0
push eax
push esi
push dword [ecx + edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4249ed
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
push dword [esp + 0x10]
call fcn.004998ec
add esp, 4
push edi
call fcn.004998ec
mov ecx, dword [esp + 0x80]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00491940
mov esp, ebp
pop ebp
ret