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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x16c
mov eax, dword [0x46a264]
xor eax, esp
mov dword [esp + 0x168], 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 [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401921
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push dword [esp + 0xc]
call eax
test eax, eax
jne 0x401918
mov eax, 2
jmp 0x401921
xor eax, eax
cmp dword [esp + 4], eax
setne al
mov dword [esi + 0x30], eax
lea eax, [esp + 0x4c]
push 0x118
push 0
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x44], 0
mov byte [esi + 0x34], 0
push eax
mov dword [esp + 0x54], 0x11c
call fcn.004305d0
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.00401780
mov dword [esi], eax
add esp, 4
movzx eax, word [esp + 0x15c]
mov ecx, esi
mov dword [esi + 0x1c], eax
movzx eax, word [esp + 0x15e]
mov dword [esi + 0x20], eax
call fcn.00401b60
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push eax
movaps xmmword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov dx, word [esp + 0x10]
movzx eax, dx
test eax, eax
je 0x4019e2
cmp eax, 6
je 0x4019d9
cmp eax, 9
jne 0x4019e9
mov dword [esi + 0x24], 1
jmp 0x4019e9
mov dword [esi + 0x24], 2
jmp 0x4019e9
mov dword [esi + 0x24], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x4c]
cmp eax, 6
je 0x401aa1
cmp eax, 0xa
je 0x401aa1
cmp eax, 5
jne case.0x401adc.2
mov ecx, dword [esp + 0x50]
cmp ecx, 2
jne 0x401a72
cmp byte [esp + 0x162], 1
jne 0x401a4b
cmp dx, 9
jne 0x401a4b
mov dword [esi + 0x18], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042d2b3
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x160]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042d2b3
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne case.0x401adc.2
mov eax, dword [esp + 0x160]
shr eax, 9
not eax
and eax, ecx
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042d2b3
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, [esp + 0xc]
push ecx
push 0
push 0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call eax
mov eax, dword [esp + 0xc]
dec eax
cmp eax, 0x2f
ja case.0x401adc.2
movzx eax, byte [eax + 0x401b28]
jmp dword [eax*4 + 0x401b1c]
mov dword [esi + 0x18], 2
mov eax, esi
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042d2b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16c]
mov eax, esi
mov dword [esi + 0x18], 0
pop esi
xor ecx, esp
call fcn.0042d2b3
mov esp, ebp
pop ebp
ret