Function at 0x413800
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0x24], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413884
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push ecx
push dword [ebp - 0x130]
call eax
test eax, eax
jne 0x413879
mov eax, 2
jmp 0x413884
xor eax, eax
cmp dword [ebp - 0x12c], eax
setne al
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x124]
push pe_nt_image_headers32
push 0
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], 0
mov byte [esi + 0x34], 0
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.0041a430
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.004136d0
mov dword [esi], eax
add esp, 4
movzx eax, word [ebp - 0x14]
xorps xmm0, xmm0
mov dword [esi + 0x1c], eax
movzx eax, word [ebp - 0x12]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x158]
push eax
movups xmmword [ebp - 0x158], xmm0
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dx, word [ebp - 0x158]
movzx eax, dx
test eax, eax
je 0x41394c
cmp eax, 6
je 0x413943
cmp eax, 9
jne 0x413953
mov dword [esi + 0x24], 1
jmp 0x413953
mov dword [esi + 0x24], 2
jmp 0x413953
mov dword [esi + 0x24], 0
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x124]
cmp eax, 6
je 0x4139f7
cmp eax, 0xa
je 0x4139f7
cmp eax, 5
jne case.0x413a3a.2
mov ecx, dword [ebp - 0x120]
cmp ecx, 2
jne 0x4139d0
cmp byte [ebp - 0xe], 1
jne 0x4139b1
cmp dx, 9
jne 0x4139b1
mov dword [esi + 0x18], 1
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne case.0x413a3a.2
mov eax, dword [ebp - 0x10]
shr eax, 9
not eax
and eax, ecx
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x134]
push ecx
push 0
push 0
push dword [ebp - 0x120]
push dword [ebp - 0x124]
call eax
mov eax, dword [ebp - 0x134]
dec eax
cmp eax, 0x2f
ja case.0x413a3a.2
movzx eax, byte [eax + 0x413a80]
jmp dword [eax*4 + 0x413a74]
mov dword [esi + 0x18], 2
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [esi + 0x18], 0
xor ecx, ebp
pop esi
call fcn.00418a6b
mov esp, ebp
pop ebp
ret