Function at 0x40428e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
mov esi, 0x4d139c
push edi
mov ecx, esi
call fcn.0040a567
lea eax, [ebp - 0x148]
mov byte [0x4d13c8], 0
push eax
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [ebp - 0x144]
mov ecx, esi
mov dword [0x4d1390], eax
mov eax, dword [ebp - 0x140]
mov dword [0x4d1394], eax
mov eax, dword [ebp - 0x13c]
mov dword [0x4d1398], eax
lea eax, [ebp - 0x134]
push eax
call fcn.004067bd
xor eax, eax
or ecx, 0xffffffff
cmp dword [0x4d13a0], eax
ja 0x4436f4
mov eax, ecx
cmp eax, ecx
jne 0x443733
push ecx
mov esi, 0x4d139c
push 0
mov ecx, esi
call fcn.00408df2
push 0x49cb64
mov ecx, esi
call fcn.00403754
mov eax, dword [0x4d1390]
xor edx, edx
mov word [0x4d13c3], dx
mov dword [0x4d13ac], edx
mov dword [0x4d13b0], edx
mov dword [0x4d13b4], edx
mov dword [0x4d13b8], edx
mov dword [0x4d13bc], edx
mov word [0x4d13c0], dx
mov byte [0x4d13c2], dl
push 1
pop ecx
sub eax, 5
je 0x443865
sub eax, ecx
jne 0x44373a
mov eax, dword [0x4d1394]
mov byte [0x4d13ad], cl
mov byte [0x4d13af], cl
test eax, eax
je 0x4437ac
cmp eax, ecx
je 0x4437d3
cmp eax, 2
jne 0x443817
mov byte [0x4d13b7], cl
mov byte [0x4d13b5], cl
mov byte [0x4d13b1], cl
mov byte [0x4d13b9], cl
cmp byte [ebp - 0x2e], cl
jne 0x443806
mov byte [0x4d13b8], cl
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_IsWow64Process]
xor edx, edx
inc edx
cmp dword [ebp - 4], edx
jne 0x40443f
mov byte [0x4d13c4], dl
push 9
xor eax, eax
lea edi, [ebp - 0x2c]
pop ecx
rep stosd dword es:[edi], eax
test dl, dl
je 0x4438aa
push 0x49cbdc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404447
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x404447
lea ecx, [ebp - 0x2c]
push ecx
call eax
test esi, esi
je 0x40442c
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ax, word [ebp - 0x2c]
pop edi
mov word [0x4d13c6], ax
mov eax, 0x4d1390
pop esi
leave
ret
mov dl, byte [0x4d13c4]
jmp 0x4043e8
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x404421
mov esi, dword [0x4d139c]
xor edi, edi
push 0x20
xor edx, edx
movzx esi, word [esi + eax*2]
mov dword [ebp - 8], esi
pop esi
cmp word [ebp - 8], si
jne 0x44370f
inc edx
movzx esi, word [edi*2 + 0x49cb66]
inc edi
test si, si
jne 0x443708
test edx, edx
je 0x404305
inc eax
cmp eax, dword [0x4d13a0]
jb 0x4436f4
jmp 0x404303
mov ecx, eax
jmp 0x40430d
sub eax, 4
jne 0x4043c6
mov byte [0x4d13ad], cl
mov byte [0x4d13af], cl
mov byte [0x4d13bb], cl
mov byte [0x4d13b9], cl
mov byte [0x4d13b7], cl
mov byte [0x4d13b5], cl
mov byte [0x4d13b1], cl
mov byte [0x4d13bd], cl
mov byte [0x4d13bf], cl
cmp dword [0x4d1394], edx
jne 0x4043c6
mov byte [0x4d13c1], cl
cmp byte [ebp - 0x2e], cl
jne 0x44379b
mov byte [0x4d13c0], cl
jmp 0x4043c6
mov byte [0x4d13c3], cl
mov byte [0x4d13c2], cl
jmp 0x4043c6
mov byte [0x4d13b1], cl
cmp byte [ebp - 0x2e], cl
jne 0x4437c2
mov byte [0x4d13b0], cl
jmp 0x4043c6
mov byte [0x4d13b3], cl
mov byte [0x4d13b2], cl
jmp 0x4043c6
mov byte [0x4d13b1], cl
mov byte [0x4d13b3], cl
mov byte [0x4d13b5], cl
cmp byte [ebp - 0x2e], cl
jne 0x4437f5
mov byte [0x4d13b4], cl
jmp 0x4043c6
mov byte [0x4d13b7], cl
mov byte [0x4d13b6], cl
jmp 0x4043c6
mov byte [0x4d13bb], cl
mov byte [0x4d13ba], cl
jmp 0x4043c6
cmp eax, 3
jne 0x4043c6
mov byte [0x4d13bb], cl
mov byte [0x4d13b9], cl
mov byte [0x4d13b7], cl
mov byte [0x4d13b5], cl
mov byte [0x4d13b1], cl
mov byte [0x4d13bd], cl
cmp byte [ebp - 0x2e], cl
jne 0x443854
mov byte [0x4d13bc], cl
jmp 0x4043c6
mov byte [0x4d13bf], cl
mov byte [0x4d13be], cl
jmp 0x4043c6
mov eax, dword [0x4d1394]
cmp eax, ecx
jne 0x44388c
mov byte [0x4d13ad], cl
mov byte [0x4d13ac], cl
mov al, byte [ebp - 0x30]
shr al, 6
and al, cl
mov byte [0x4d13c8], al
jmp 0x4043c6
cmp eax, 2
jne 0x44387a
mov byte [0x4d13ad], cl
mov byte [0x4d13af], cl
cmp byte [ebp - 0x2e], cl
je 0x443874
mov byte [0x4d13ae], cl
jmp 0x44387a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x40442c