Function at 0x413a30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x448004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
mov edi, ecx
push eax
mov dword [ebp - 0x44], edi
xor esi, esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x78]
cmp ax, 9
je 0x413a72
cmp ax, 0xc
je 0x413a72
lea eax, [esi + 0x10]
mov dword [ebp - 0x3c], 0x40
jmp 0x413a7e
mov eax, 0x20
mov dword [ebp - 0x3c], 0x70
mov dword [ebp - 0x48], eax
add eax, 8
push 1
push eax
mov dword [ebp - 0x4c], eax
call fcn.00421bc0
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x413df7
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push 1
push eax
mov dword [ebp - 0x50], eax
call fcn.00421bc0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x413df7
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x54], esi
je 0x413cc2
push 0x30
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00420f90
mov eax, dword [0x44aef0]
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x413b87
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x413b49
cmp word [0x4493f8], 0x20
jb 0x413b1e
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414ac0
add esp, 4
jmp 0x413b49
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413b49
mov cx, word [0x4493f8]
movzx eax, cx
inc cx
mov word [0x4493f8], cx
mov dword [eax*4 + 0x44b6a0], edi
push str.NtWow64QueryInformationProcess64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44aef0], eax
test eax, eax
jne 0x413b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NtDll
push str.NtWow64QueryInformationProcess64
push str.Unable_to_locate__s___in__s.dll:__d_n
call fcn.00414ac0
add esp, 0x10
jmp 0x413df7
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [0x44aec0], esi
jne 0x413c21
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x413be4
cmp word [0x4493f8], 0x20
jb 0x413bb9
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414ac0
add esp, 4
jmp 0x413be4
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413be4
mov cx, word [0x4493f8]
movzx eax, cx
inc cx
mov word [0x4493f8], cx
mov dword [eax*4 + 0x44b6a0], edi
push str.NtWow64ReadVirtualMemory64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44aec0], eax
test eax, eax
jne 0x413c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NtDll
push str.NtWow64ReadVirtualMemory64
push str.Unable_to_locate__s___in__s.dll:__d_n
call fcn.00414ac0
add esp, 0x10
jmp 0x413df7
mov eax, dword [0x44aef0]
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x38]
push 0
push 0x30
push ecx
push 0
push edi
call eax
test eax, eax
js 0x413df7
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
call dword [0x44aec0]
test eax, eax
js 0x413df7
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
push 0
push 0
push dword [ebp - 0x50]
push ebx
push dword [ecx + eax + 4]
push dword [ecx + eax]
push edi
call dword [0x44aec0]
test eax, eax
js 0x413df7
mov eax, dword [ebp - 0x3c]
push 2
movzx eax, word [eax + ebx]
inc eax
push eax
call fcn.00421bc0
mov esi, eax
add esp, 8
test esi, esi
je 0x413df7
mov ecx, dword [ebp - 0x3c]
push 0
movzx eax, word [ecx + ebx]
cdq
push edx
push eax
push esi
push dword [ecx + ebx + 0xc]
push dword [ecx + ebx + 8]
push edi
call dword [0x44aec0]
test eax, eax
jns 0x413df7
jmp 0x413dec
mov eax, dword [0x44aeb0]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
test eax, eax
jne 0x413d6b
push str.NtDll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x413d30
cmp word [0x4493f8], 0x20
jb 0x413d05
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414ac0
add esp, 4
jmp 0x413d30
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413d30
mov cx, word [0x4493f8]
movzx eax, cx
inc cx
mov word [0x4493f8], cx
mov dword [eax*4 + 0x44b6a0], edi
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44aeb0], eax
test eax, eax
jne 0x413d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NtDll
push str.NtQueryInformationProcess
push str.Unable_to_locate__s___in__s.dll:__d_n
call fcn.00414ac0
add esp, 0x10
jmp 0x413df7
mov edi, dword [ebp - 0x44]
push 0
push 0x18
lea ecx, [ebp - 0x20]
push ecx
push 0
push edi
call eax
test eax, eax
js 0x413df7
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call edi
test eax, eax
je 0x413df7
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
push 0
push dword [ebp - 0x50]
push ebx
push dword [ecx + eax]
push dword [ebp - 0x44]
call edi
test eax, eax
je 0x413df7
mov ecx, dword [ebp - 0x3c]
mov edx, 0x200
movzx eax, word [ecx + ebx]
cmp ax, dx
jb 0x413dbf
mov eax, edx
mov word [ecx + ebx], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.00421bc0
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov esi, eax
movzx eax, word [ecx + ebx]
push 0
push eax
push esi
push dword [ecx + ebx + 4]
push dword [ebp - 0x44]
call edi
test eax, eax
jne 0x413df7
push esi
call fcn.0042422d
add esp, 4
xor esi, esi
push dword [ebp - 0x40]
call fcn.0042422d
add esp, 4
push ebx
call fcn.0042422d
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret