Function at 0x40ef50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x43f004]
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 0x40ef92
cmp ax, 0xc
je 0x40ef92
lea eax, [esi + 0x10]
mov dword [ebp - 0x3c], 0x40
jmp 0x40ef9e
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.0041d603
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40f317
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push 1
push eax
mov dword [ebp - 0x50], eax
call fcn.0041d603
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40f317
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 0x40f1e2
push 0x30
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0041a3d0
mov eax, dword [0x44152c]
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40f0a7
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x40f069
cmp word [0x4403d8], 0x20
jb 0x40f03e
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0040ffe0
add esp, 4
jmp 0x40f069
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f069
mov cx, word [0x4403d8]
movzx eax, cx
inc cx
mov word [0x4403d8], cx
mov dword [eax*4 + 0x441ca0], edi
push str.NtWow64QueryInformationProcess64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44152c], eax
test eax, eax
jne 0x40f0a1
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.0040ffe0
add esp, 0x10
jmp 0x40f317
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [0x4414fc], esi
jne 0x40f141
push str.NtDll
call ecx
mov edi, eax
test edi, edi
jne 0x40f104
cmp word [0x4403d8], 0x20
jb 0x40f0d9
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0040ffe0
add esp, 4
jmp 0x40f104
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f104
mov cx, word [0x4403d8]
movzx eax, cx
inc cx
mov word [0x4403d8], cx
mov dword [eax*4 + 0x441ca0], edi
push str.NtWow64ReadVirtualMemory64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4414fc], eax
test eax, eax
jne 0x40f13c
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.0040ffe0
add esp, 0x10
jmp 0x40f317
mov eax, dword [0x44152c]
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 0x40f317
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
call dword [0x4414fc]
test eax, eax
js 0x40f317
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 [0x4414fc]
test eax, eax
js 0x40f317
mov eax, dword [ebp - 0x3c]
push 2
movzx eax, word [eax + ebx]
inc eax
push eax
call fcn.0041d603
mov esi, eax
add esp, 8
test esi, esi
je 0x40f317
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 [0x4414fc]
test eax, eax
jns 0x40f317
jmp 0x40f30c
mov eax, dword [0x4414ec]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
test eax, eax
jne 0x40f28b
push str.NtDll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40f250
cmp word [0x4403d8], 0x20
jb 0x40f225
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0040ffe0
add esp, 4
jmp 0x40f250
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f250
mov cx, word [0x4403d8]
movzx eax, cx
inc cx
mov word [0x4403d8], cx
mov dword [eax*4 + 0x441ca0], edi
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4414ec], eax
test eax, eax
jne 0x40f288
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.0040ffe0
add esp, 0x10
jmp 0x40f317
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 0x40f317
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 0x40f317
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 0x40f317
mov ecx, dword [ebp - 0x3c]
mov edx, 0x200
movzx eax, word [ecx + ebx]
cmp ax, dx
jb 0x40f2df
mov eax, edx
mov word [ecx + ebx], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.0041d603
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 0x40f317
push esi
call fcn.0041d78b
add esp, 4
xor esi, esi
push dword [ebp - 0x40]
call fcn.0041d78b
add esp, 4
push ebx
call fcn.0041d78b
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00418e9d
mov esp, ebp
pop ebp
ret