Function at 0x4131a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x446004]
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 0x4131e2
cmp ax, 0xc
je 0x4131e2
lea eax, [esi + 0x10]
mov dword [ebp - 0x3c], 0x40
jmp 0x4131ee
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.00420f90
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x413567
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push 1
push eax
mov dword [ebp - 0x50], eax
call fcn.00420f90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x413567
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 0x413432
push 0x30
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00420360
mov eax, dword [0x448ed8]
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4132f7
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x4132b9
cmp word [0x4473f8], 0x20
jb 0x41328e
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414230
add esp, 4
jmp 0x4132b9
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4132b9
mov cx, word [0x4473f8]
movzx eax, cx
inc cx
mov word [0x4473f8], cx
mov dword [eax*4 + 0x449660], edi
push str.NtWow64QueryInformationProcess64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x448ed8], eax
test eax, eax
jne 0x4132f1
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.00414230
add esp, 0x10
jmp 0x413567
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [0x448ea8], esi
jne 0x413391
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x413354
cmp word [0x4473f8], 0x20
jb 0x413329
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414230
add esp, 4
jmp 0x413354
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413354
mov cx, word [0x4473f8]
movzx eax, cx
inc cx
mov word [0x4473f8], cx
mov dword [eax*4 + 0x449660], edi
push str.NtWow64ReadVirtualMemory64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x448ea8], eax
test eax, eax
jne 0x41338c
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.00414230
add esp, 0x10
jmp 0x413567
mov eax, dword [0x448ed8]
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 0x413567
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
call dword [0x448ea8]
test eax, eax
js 0x413567
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 [0x448ea8]
test eax, eax
js 0x413567
mov eax, dword [ebp - 0x3c]
push 2
movzx eax, word [eax + ebx]
inc eax
push eax
call fcn.00420f90
mov esi, eax
add esp, 8
test esi, esi
je 0x413567
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 [0x448ea8]
test eax, eax
jns 0x413567
jmp 0x41355c
mov eax, dword [0x448e98]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
test eax, eax
jne 0x4134db
push str.NtDll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4134a0
cmp word [0x4473f8], 0x20
jb 0x413475
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.00414230
add esp, 4
jmp 0x4134a0
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4134a0
mov cx, word [0x4473f8]
movzx eax, cx
inc cx
mov word [0x4473f8], cx
mov dword [eax*4 + 0x449660], edi
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x448e98], eax
test eax, eax
jne 0x4134d8
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.00414230
add esp, 0x10
jmp 0x413567
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 0x413567
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 0x413567
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 0x413567
mov ecx, dword [ebp - 0x3c]
mov edx, 0x200
movzx eax, word [ecx + ebx]
cmp ax, dx
jb 0x41352f
mov eax, edx
mov word [ecx + ebx], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.00420f90
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 0x413567
push esi
call fcn.004235fd
add esp, 4
xor esi, esi
push dword [ebp - 0x40]
call fcn.004235fd
add esp, 4
push ebx
call fcn.004235fd
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041ee2e
mov esp, ebp
pop ebp
ret