Function at 0x406020
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
push edi
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.004066b0
mov esi, dword [esp + 0x10]
mov ecx, 0x5d74e0
mov eax, esi
xor edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406078
cmp dx, di
je 0x406074
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406078
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406052
xor eax, eax
jmp 0x40607d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40612d
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x4060e9
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4060ac
lea esi, [esp + 0x14]
call fcn.004c7aec
test eax, eax
je 0x4060ac
cmp dword [esp + 0x14], edi
jne 0x4060e9
push edi
mov esi, 0x5d74e0
call fcn.00408000
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x48]
call fcn.0043ecb0
call fcn.00440e30
mov eax, esi
call fcn.00405c70
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi - 0xc], edi
jl 0x406342
push 0x5d7d44
push esi
call fcn.004f7373
mov esi, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x406245
sub eax, esi
sar eax, 1
js 0x406245
lea esi, [esp + 0x18]
call fcn.0040f1e0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
lea edi, [esp + 0x1c]
mov dword [esi], eax
call fcn.004048f0
mov esi, edi
call fcn.0040fe40
test eax, eax
je 0x4061e1
push 0x5d7d44
push 0x5d7d4c
lea ecx, [esp + 0x18]
push ecx
call fcn.00406840
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.004048f0
mov edx, edi
push edx
call fcn.0040fa10
test eax, eax
je 0x4061d5
mov ecx, edi
call fcn.0040f560
jmp 0x40620d
lea eax, [esp + 0x18]
push eax
call fcn.0040f640
jmp 0x40620d
lea ecx, [esp + 0x18]
push ecx
call fcn.0040f3d0
test eax, eax
je 0x4061fa
lea ecx, [esp + 0x18]
call fcn.0040f480
jmp 0x40620d
lea edx, [esp + 0x18]
push edx
call fcn.0040f6c0
lea esi, [esp + 0x18]
call fcn.0040f360
lea esi, [esp + 0x18]
call fcn.0040f2e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi - 0xc], edi
jl 0x406342
push str.safetab
push esi
call fcn.004f7373
mov esi, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x4062f3
sub eax, esi
sar eax, 1
js 0x4062f3
lea esi, [esp + 0x18]
call fcn.0040f1e0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
lea edi, [esp + 0x1c]
mov dword [esi], eax
call fcn.004048f0
mov ecx, edi
push ecx
call fcn.0040f3d0
test eax, eax
je 0x4062b1
mov ecx, edi
call fcn.0040f480
jmp 0x4062bb
lea edx, [esp + 0x18]
push edx
call fcn.0040f6c0
lea esi, [esp + 0x18]
call fcn.0040f2e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406503
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi - 0xc], edi
jl 0x406342
push str.elevateopen
push esi
call fcn.004f7373
mov esi, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x406342
sub eax, esi
sar eax, 1
js 0x406342
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, 0x5d79d4
call fcn.004066b0
call fcn.004080b0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00406760
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str._wccuninstall
push esi
call fcn.004f69f9
add esp, 8
test eax, eax
jne 0x40636d
call fcn.00440f90
lea ecx, [esp + 0x10]
call fcn.00406760
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x10]
push edx
mov ecx, str._pmeuninstall
call fcn.00406810
test eax, eax
jne 0x406399
call fcn.00440fd0
lea ecx, [esp + 0x10]
call fcn.00406760
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], edi
jl 0x4063e7
push str._update
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x4063c2
sub eax, ecx
sar eax, 1
jns 0x40648a
cmp dword [ecx - 0xc], edi
jl 0x4063e7
push str._download
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, edi
je 0x4063e7
sub eax, ecx
sar eax, 1
jns 0x40648a
push ecx
lea eax, [ecx - 0x10]
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.004049c0
add esp, 4
cmp eax, edi
jne 0x406443
push edi
call fcn.00404ae0
add esp, 4
test eax, eax
je 0x406422
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
mov ecx, 0x65e3a0
call fcn.0040efc0
mov eax, dword [ebp + 8]
push eax
call fcn.0049a370
add esp, 4
jmp 0x40648a
call fcn.00407fc0
test eax, eax
je 0x40646e
mov esi, dword [esp + 0x10]
push 5
call fcn.00408000
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00406760
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
call fcn.00404ae0
add esp, 4
test eax, eax
je 0x40648a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call sub.gdiplus.dll_GdiplusStartup
call fcn.00403aa0
push ebx
call fcn.00405210
add esp, 4
call fcn.00403b60
mov ecx, dword [esp + 0x2c]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x65d95c]
cmp eax, edi
je 0x4064fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00406760
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10