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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0x38], 0xf
mov dword [esi + 0x34], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x3c], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x46826c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42051f
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0
push ecx
push ebx
call eax
test eax, eax
jne 0x420514
mov eax, 2
jmp 0x42051f
xor eax, eax
cmp dword [ebp - 0x15c], eax
setne al
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x154]
push 0x118
push 0
mov dword [esi + 0x60], 0xf
mov dword [esi + 0x5c], 0
mov byte [esi + 0x4c], 0
push eax
mov dword [ebp - 0x158], 0x11c
call fcn.004352b0
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x150]
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
call fcn.004203b0
mov dword [esi], eax
add esp, 4
movzx eax, word [ebp - 0x44]
mov dword [esi + 0x1c], eax
movzx eax, word [ebp - 0x42]
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp word [ebp - 0x144], ax
jne 0x4205b6
xor ecx, ecx
jmp 0x4205cf
lea ecx, [ebp - 0x144]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4205c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401881
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00423c60
push eax
lea ecx, [esi + 0x24]
call fcn.0041a8d0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x420639
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x420630
test cl, 0x1f
jne 0x420820
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x420825
sub ecx, eax
cmp ecx, 4
jb 0x42082a
cmp ecx, 0x23
ja 0x42082f
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x42069e
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x7fffffff
ja 0x420834
add eax, eax
cmp eax, 0x1000
jb 0x420695
test cl, 0x1f
jne 0x420839
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x42083e
sub ecx, eax
cmp ecx, 4
jb 0x420843
cmp ecx, 0x23
ja 0x420848
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0
lea eax, [ebp - 0x184]
push eax
movups xmmword [ebp - 0x184], xmm0
movups xmmword [ebp - 0x174], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x184]
movzx eax, cx
test eax, eax
je 0x4206f0
cmp eax, 6
je 0x4206e7
cmp eax, 9
jne 0x4206f7
mov dword [esi + 0x3c], 1
jmp 0x4206f7
mov dword [esi + 0x3c], 2
jmp 0x4206f7
mov dword [esi + 0x3c], 0
mov eax, dword [ebp - 0x170]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x168]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x154]
cmp eax, 6
je 0x420788
cmp eax, 0xa
je 0x420788
cmp eax, 5
jne case.0x4207cb.2
mov eax, dword [ebp - 0x150]
cmp eax, 2
jne 0x42075e
cmp byte [ebp - 0x3e], 1
jne 0x42073d
cmp cx, 9
je case.0x4207cb.1
mov eax, dword [ebp - 0x40]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.0x4207cb.2
mov eax, dword [ebp - 0x40]
shr eax, 9
not eax
and eax, 1
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
push str.GetProductInfo
push 0x46826c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x160]
push ecx
push 0
push 0
push dword [ebp - 0x150]
push dword [ebp - 0x154]
call eax
mov eax, dword [ebp - 0x160]
dec eax
cmp eax, 0x2f
ja case.0x4207cb.2
movzx eax, byte [eax + 0x42085c]
jmp dword [eax*4 + 0x420850]
mov dword [esi + 0x18], 2
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
mov dword [esi + 0x18], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
nop dword [eax]
in al, dx
pop es
inc edx
add dl, dl
pop es
inc edx
add byte [esi], al
or byte [edx], al
add byte [edx], al
add al, byte [eax]
add al, byte [eax]
add dword [ecx], eax
add dword [ecx], eax
add al, byte [ecx]
add dword [ecx], eax
add dword [edx], eax
add dword [ecx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
int3