Function at 0x4296c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x5512ec]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ecx
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x2c]
cmp ax, 9
je 0x42970d
cmp ax, 0xc
je 0x42970d
lea eax, [esi + 0x10]
mov dword [esp + 0x18], 0x40
jmp 0x42971a
mov eax, 0x20
mov dword [esp + 0x18], 0x70
mov dword [esp + 0x1c], eax
add eax, 8
push 1
push eax
mov dword [esp + 0x28], eax
call fcn.004b6706
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4299e4
mov eax, dword [esp + 0x18]
add eax, 0x10
push 1
push eax
mov dword [esp + 0x2c], eax
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x4299e0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x28], esi
je 0x4298dd
push 0x30
lea eax, [esp + 0x54]
push 0
push eax
call fcn.004ab0f0
mov eax, dword [0x59bd74]
add esp, 0xc
test eax, eax
jne 0x4297d7
push str.NtWow64QueryInformationProcess64
push ecx
mov ecx, str.NtDll
call fcn.00428ea0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x59bd74], eax
test eax, eax
jne 0x4297d7
call fcn.0044b6b0
push eax
push str.NtDll
push str.NtWow64QueryInformationProcess64
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x4299e0
cmp dword [0x59bd3c], esi
jne 0x429829
push str.NtWow64ReadVirtualMemory64
push ecx
mov ecx, str.NtDll
call fcn.00428ea0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x59bd3c], eax
test eax, eax
jne 0x429824
call fcn.0044b6b0
push eax
push str.NtDll
push str.NtWow64ReadVirtualMemory64
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x4299e0
mov eax, dword [0x59bd74]
push 0
push 0x30
lea ecx, [esp + 0x58]
push ecx
push 0
push dword [esp + 0x24]
call eax
test eax, eax
js 0x4299e0
push 0
push 0
push dword [esp + 0x28]
push dword [esp + 0x1c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x2c]
call dword [0x59bd3c]
test eax, eax
mov eax, dword [esp + 0x10]
js 0x4299e4
mov ecx, dword [esp + 0x1c]
push 0
push 0
push dword [esp + 0x2c]
push edi
push dword [ecx + eax + 4]
push dword [ecx + eax]
push dword [esp + 0x2c]
call dword [0x59bd3c]
test eax, eax
js 0x4299e0
mov eax, dword [esp + 0x18]
push 2
movzx eax, word [eax + edi]
inc eax
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x4299e0
mov ecx, dword [esp + 0x18]
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 dword [esp + 0x2c]
call dword [0x59bd3c]
test eax, eax
jns 0x4299e0
jmp 0x4299d5
mov eax, dword [0x59bd2c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
test eax, eax
jne 0x429939
push str.NtQueryInformationProcess
push ecx
mov ecx, str.NtDll
call fcn.00428ea0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x59bd2c], eax
test eax, eax
jne 0x429939
call fcn.0044b6b0
push eax
push str.NtDll
push str.NtQueryInformationProcess
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x4299e0
push 0
push 0x18
lea ecx, [esp + 0x58]
push ecx
push 0
push dword [esp + 0x24]
call eax
test eax, eax
js 0x4299e0
push 0
push dword [esp + 0x24]
push dword [esp + 0x18]
push dword [esp + 0x60]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4299e4
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push edi
push dword [ecx + eax]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4299e0
mov ecx, dword [esp + 0x18]
mov edx, 0x200
movzx eax, word [ecx + edi]
cmp ax, dx
jb 0x4299a2
mov eax, edx
mov word [ecx + edi], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.004b6706
mov ecx, dword [esp + 0x20]
add esp, 8
mov esi, eax
movzx eax, word [ecx + edi]
push 0
push eax
push esi
push dword [ecx + edi + 4]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4299e0
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call fcn.004d1211
add esp, 4
push edi
call fcn.004d1211
mov ecx, dword [esp + 0x90]
add esp, 4
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret