Function at 0x41bd03
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x3c], ecx
push eax
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x78], 9
je 0x41bd3c
cmp word [ebp - 0x78], 0xc
je 0x41bd3c
push 0x10
pop eax
push 0x40
jmp 0x41bd41
push 0x20
pop eax
push 0x70
pop edi
mov dword [ebp - 0x44], eax
add eax, 8
push 1
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
call fcn.0047b53f
mov dword [ebp - 0x40], eax
pop ecx
pop ecx
test eax, eax
je 0x41bfa4
lea eax, [edi + 0x10]
push 1
push eax
mov dword [ebp - 0x54], eax
call fcn.0047b53f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41bfa4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x50], ebx
je 0x41bed1
push 0x30
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00478bc0
mov eax, dword [0x51d5d8]
add esp, 0xc
test eax, eax
jne 0x41bdf2
push str.NtWow64QueryInformationProcess64
mov ecx, str.NtDll
call fcn.004078b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51d5d8], eax
test eax, eax
jne 0x41bdf2
call fcn.0042fc51
push eax
mov edi, str.NtDll
push edi
push str.NtWow64QueryInformationProcess64
push str.Unable_to_locate__s___in__s.dll:__s_n
call fcn.0042ed57
add esp, 0x10
jmp 0x41bfa4
cmp dword [0x51d598], ebx
jne 0x41be31
push str.NtWow64ReadVirtualMemory64
mov ecx, str.NtDll
call fcn.004078b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51d598], eax
test eax, eax
jne 0x41be2c
call fcn.0042fc51
push eax
mov edi, str.NtDll
push edi
push str.NtWow64ReadVirtualMemory64
jmp 0x41bde0
mov eax, dword [0x51d5d8]
push 0
push 0x30
lea ecx, [ebp - 0x38]
push ecx
push 0
push dword [ebp - 0x3c]
call eax
test eax, eax
js 0x41bfa4
push 0
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
call dword [0x51d598]
test eax, eax
js 0x41bfa4
mov ecx, dword [ebp - 0x44]
lea eax, [edi + 0x10]
push 0
push 0
push eax
mov eax, dword [ebp - 0x40]
push esi
push dword [ecx + eax + 4]
push dword [ecx + eax]
push dword [ebp - 0x3c]
call dword [0x51d598]
test eax, eax
js 0x41bfa4
movzx eax, word [edi + esi]
inc eax
push 2
push eax
call fcn.0047b53f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41bfa4
movzx eax, word [edi + esi]
push 0
cdq
push edx
push eax
push ebx
push dword [edi + esi + 0xc]
push dword [edi + esi + 8]
push dword [ebp - 0x3c]
call dword [0x51d598]
test eax, eax
jns 0x41bfa4
jmp 0x41bf9b
push 6
xor eax, eax
lea edi, [ebp - 0x20]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [0x51d588]
test eax, eax
jne 0x41bf16
mov edi, str.NtDll
push str.NtQueryInformationProcess
mov ecx, edi
call fcn.004078b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51d588], eax
test eax, eax
jne 0x41bf16
call fcn.0042fc51
push eax
push edi
push str.NtQueryInformationProcess
jmp 0x41bde0
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push 0
push 0x18
push ecx
push 0
push edi
call eax
test eax, eax
js 0x41bfa4
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x40]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41bfa4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
push 0
push eax
mov eax, dword [ebp - 0x40]
push esi
push dword [ecx + eax]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41bfa4
mov edi, dword [ebp - 0x4c]
mov eax, 0x200
movzx ecx, word [edi + esi]
cmp cx, ax
jae 0x41bf6e
mov eax, ecx
mov word [edi + esi], ax
movzx eax, ax
inc eax
push 2
push eax
call fcn.0047b53f
pop ecx
pop ecx
push 0
mov ebx, eax
movzx eax, word [edi + esi]
push eax
push ebx
push dword [edi + esi + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41bfa4
push ebx
call fcn.004812c6
xor ebx, ebx
pop ecx
push dword [ebp - 0x40]
call fcn.004812c6
push esi
call fcn.004812c6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret