Function at 0x40b7e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
mov dword [ebp - 0x48], esi
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x78]
cmp ax, 9
je 0x40b822
cmp ax, 0xc
je 0x40b822
lea eax, [edi + 0x10]
mov dword [ebp - 0x3c], 0x40
jmp 0x40b82e
mov eax, 0x20
mov dword [ebp - 0x3c], 0x70
mov dword [ebp - 0x44], eax
add eax, 8
push 1
push eax
mov dword [ebp - 0x4c], eax
call fcn.00414910
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40bb5f
mov eax, dword [ebp - 0x3c]
add eax, 0x10
push 1
push eax
mov dword [ebp - 0x50], eax
call fcn.00414910
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40bb5f
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], edi
je 0x40ba26
push 0x2c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], edi
push 0
push eax
call fcn.004198c0
mov eax, dword [0x430114]
add esp, 0xc
test eax, eax
jne 0x40b935
push str.NtDll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40b8fa
cmp word [0x430110], 0x20
jb 0x40b8cf
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0040c4e0
add esp, 4
jmp 0x40b8fa
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40b8fa
mov cx, word [0x430110]
movzx eax, cx
inc cx
mov word [0x430110], cx
mov dword [eax*4 + 0x432980], esi
push str.NtWow64QueryInformationProcess64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x430114], eax
test eax, eax
jne 0x40b932
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.0040c4e0
add esp, 0x10
jmp 0x40bb5f
mov esi, dword [ebp - 0x48]
cmp dword [0x430100], edi
jne 0x40b988
push str.NtWow64ReadVirtualMemory64
push ecx
mov ecx, str.NtDll
call fcn.0040b0e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x430100], eax
test eax, eax
jne 0x40b983
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.0040c4e0
add esp, 0x10
jmp 0x40bb5f
mov eax, dword [0x430114]
push 0
push 0x30
lea ecx, [ebp - 0x38]
push ecx
push 0
push esi
call eax
test eax, eax
js 0x40bb5f
push 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call dword [0x430100]
test eax, eax
js 0x40bb5f
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push 0
push 0
push dword [ebp - 0x50]
push ebx
push dword [ecx + eax + 4]
push dword [ecx + eax]
push esi
call dword [0x430100]
test eax, eax
js 0x40bb5f
mov eax, dword [ebp - 0x3c]
push 2
movzx eax, word [eax + ebx]
inc eax
push eax
call fcn.00414910
mov edi, eax
add esp, 8
test edi, edi
je 0x40bb5f
mov ecx, dword [ebp - 0x3c]
push 0
movzx eax, word [ecx + ebx]
cdq
push edx
push eax
push edi
push dword [ecx + ebx + 0xc]
push dword [ecx + ebx + 8]
push esi
call dword [0x430100]
test eax, eax
jns 0x40bb5f
jmp 0x40bb54
mov eax, dword [0x430118]
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], edi
movdqu xmmword [ebp - 0x1c], xmm0
test eax, eax
jne 0x40bad1
push str.NtDll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40ba96
cmp word [0x430110], 0x20
jb 0x40ba6b
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0040c4e0
add esp, 4
jmp 0x40ba96
push str.NtDll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40ba96
mov cx, word [0x430110]
movzx eax, cx
inc cx
mov word [0x430110], cx
mov dword [eax*4 + 0x432980], esi
push str.NtQueryInformationProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x430118], eax
test eax, eax
jne 0x40bace
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.0040c4e0
add esp, 0x10
jmp 0x40bb5f
mov esi, dword [ebp - 0x48]
push 0
push 0x18
lea ecx, [ebp - 0x20]
push ecx
push 0
push esi
call eax
test eax, eax
js 0x40bb5f
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40bb5f
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push 0
push dword [ebp - 0x50]
push ebx
push dword [ecx + eax]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40bb5f
mov ecx, dword [ebp - 0x3c]
mov edx, 0x200
movzx eax, word [ecx + ebx]
cmp ax, dx
jb 0x40bb25
mov eax, edx
movzx esi, ax
mov word [ecx + ebx], ax
push 2
lea eax, [esi + 1]
push eax
call fcn.00414910
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x3c]
push 0
push esi
push edi
push dword [eax + ebx + 4]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40bb5f
push edi
call fcn.00413ba8
add esp, 4
xor edi, edi
push dword [ebp - 0x40]
call fcn.00413ba8
add esp, 4
push ebx
call fcn.00413ba8
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004136c0
mov esp, ebp
pop ebp
ret