Function at 0x643784
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x643ba4
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x749dc0]
mov eax, dword [eax]
call fcn.00489e3c
mov eax, dword [0x748f54]
mov eax, dword [eax]
dec eax
je 0x6437e7
dec eax
je 0x643871
jmp case.default.0x643a48
mov eax, dword [0x749278]
mov eax, dword [eax]
sub eax, 0xa
jb 0x6437ff
sub eax, 0x50
jb 0x64382b
je 0x64386a
jmp case.default.0x643a48
mov eax, dword [ebp - 4]
mov edx, 0x643bc0
call fcn.004a7ee0
je 0x64381d
mov eax, dword [ebp - 4]
mov edx, 0x643bd0
call fcn.004a7ee0
jne 0x643824
mov bl, 2
jmp case.default.0x643a48
mov bl, 1
jmp case.default.0x643a48
cmp dword [0x75106c], 0x4005a
jne 0x64383e
mov bl, 5
jmp case.default.0x643a48
mov eax, dword [ebp - 4]
mov edx, 0x643be0
call fcn.004a7ee0
je 0x64385c
mov eax, dword [ebp - 4]
mov edx, 0x643bc0
call fcn.004a7ee0
jne 0x643863
mov bl, 4
jmp case.default.0x643a48
mov bl, 3
jmp case.default.0x643a48
mov bl, 5
jmp case.default.0x643a48
mov eax, dword [0x749274]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x643a48
jmp dword [eax*4 + 0x64388b]
mov eax, dword [0x749278]
mov eax, dword [eax]
dec eax
je 0x6438c4
sub eax, 4
je 0x6438cb
sub eax, 0x2e
je 0x6438d2
jmp case.default.0x643a48
mov bl, 6
jmp case.default.0x643a48
mov bl, 7
jmp case.default.0x643a48
mov bl, 8
jmp case.default.0x643a48
mov bl, 9
jmp case.default.0x643a48
mov eax, dword [0x749278]
mov eax, dword [eax]
sub eax, 1
jb 0x6438f6
je 0x6438fd
dec eax
je 0x643904
jmp case.default.0x643a48
mov bl, 0xa
jmp case.default.0x643a48
mov bl, 0xb
jmp case.default.0x643a48
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.00644020
push 0x59
call sub.USER32.DLL_GetSystemMetrics
test eax, eax
je 0x64392d
mov bl, 0xe
jmp case.default.0x643a48
cmp word [ebp - 0x2c], 0
je 0x643951
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643951
cmp byte [ebp - 0x2e], 1
jne 0x643951
mov bl, 0xd
jmp case.default.0x643a48
mov bl, 0xc
jmp case.default.0x643a48
mov eax, dword [0x749278]
cmp dword [eax], 2
jne 0x643a38
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x643bf0
mov edx, 0x643c14
mov eax, SysStringLen
call fcn.0063ff90
lea edx, [ebp - 0x14c]
mov eax, dword [0x749f68]
call fcn.004aaa60
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 8]
call fcn.004a8084
dec eax
je 0x6439c2
lea edx, [ebp - 0x150]
mov eax, dword [0x749f6c]
call fcn.004aaa60
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.004a8084
dec eax
jne 0x6439c9
mov eax, 3
jmp 0x643a3f
lea edx, [ebp - 0x154]
mov eax, dword [0x749f60]
call fcn.004aaa60
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004a8084
dec eax
je 0x643a0b
lea edx, [ebp - 0x158]
mov eax, dword [0x749f64]
call fcn.004aaa60
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004a8084
dec eax
jne 0x643a12
mov eax, 2
jmp 0x643a3f
call fcn.00643c70
mov esi, eax
cmp esi, 6
jne 0x643a25
mov eax, 4
jmp 0x643a3f
cmp esi, 0xa
jne 0x643a2f
or eax, 0xffffffff
jmp 0x643a3f
mov eax, dword [0x749278]
mov eax, dword [eax]
jmp 0x643a3f
mov eax, dword [0x749278]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x643a48
jmp dword [eax*4 + 0x643a4f]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643a8a
cmp byte [ebp - 0x2e], 1
jne 0x643a8a
mov bl, 0xf
jmp case.default.0x643a48
mov bl, 0x10
jmp case.default.0x643a48
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643ab8
cmp byte [ebp - 0x2e], 1
jne 0x643ab8
mov bl, 0x11
jmp case.default.0x643a48
mov bl, 0x12
jmp case.default.0x643a48
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643ae3
cmp byte [ebp - 0x2e], 1
jne 0x643ae3
mov bl, 0x13
jmp case.default.0x643a48
mov bl, 0x15
jmp case.default.0x643a48
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643b0b
cmp byte [ebp - 0x2e], 1
jne 0x643b0b
mov bl, 0x16
jmp case.default.0x643a48
mov bl, 0x18
jmp case.default.0x643a48
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643b33
cmp byte [ebp - 0x2e], 1
jne 0x643b33
mov bl, 0x19
jmp case.default.0x643a48
mov bl, 0x1a
jmp case.default.0x643a48
mov esi, dword [0x749274]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x643b79
sub esi, 0xa
jne 0x643b79
call fcn.00643e48
sub eax, 1
jae 0x643b79
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x643b77
cmp byte [ebp - 0x2e], 1
jne 0x643b77
mov bl, 0x19
jmp 0x643b79
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x643bab
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004a6ce0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a6ce0
ret