Function at 0x405210
Capabilities:
Check if file exists
Hide graphical window
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5a3d41
mov eax, dword fs:[0]
push eax
mov eax, 0x5eb0
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x5ea8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x5ec4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5ed4]
xor eax, eax
mov dword [esp + 0x2c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x5ecc], eax
mov edi, dword [0x62bc28]
lea eax, [esp + 0x2c]
add edi, 0x10
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x65e390]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
call fcn.00406b60
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004066b0
lea ebx, [esp + 0x18]
mov byte [esp + 0x5ecc], 1
call fcn.00406ec0
mov ebx, eax
call fcn.00406f40
lea ecx, [esp + 0x108c]
push ecx
call fcn.0041b9a0
mov byte [esp + 0x5ecc], 2
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.004049c0
add esp, 4
test eax, eax
je 0x40557e
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x4053e8
push str._quietuninstall
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x4053e8
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x4053e8
call fcn.00404ba0
test eax, eax
je 0x4053e8
lea esi, [esp + 0x104]
call fcn.0043ecb0
lea edx, [esp + 0x91c]
mov bl, 3
push edx
mov byte [esp + 0x5ed0], bl
call fcn.0043bfa0
mov esi, ebp
lea eax, [esp + 0x91c]
mov byte [esp + 0x5ecc], 4
call fcn.0043dda0
lea ecx, [esp + 0x91c]
call fcn.0043db40
lea eax, [esp + 0x104]
push eax
call fcn.0043f5c0
lea ecx, [esp + 0x91c]
push ecx
mov byte [esp + 0x5ed0], bl
call fcn.00405dc0
lea eax, [esp + 0x104]
mov byte [esp + 0x5ecc], 2
call fcn.00405c70
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405804
lea edx, [esp + 0x1ac]
push edx
call fcn.0043bfa0
mov byte [esp + 0x5ecc], 5
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x405424
push str.ignorechoose
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x405424
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40547a
test ebp, ebp
jne 0x40542c
xor eax, eax
jmp 0x405440
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405431
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x918]
call fcn.004072f0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x1b0]
call fcn.00406df0
cmp eax, 1
je 0x40547a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
push eax
jmp 0x40555d
lea esi, [esp + 0x74]
call fcn.0043ecb0
mov byte [esp + 0x5ecc], 6
test ebp, ebp
jne 0x405493
xor eax, eax
jmp 0x4054af
mov eax, ebp
lea edx, [eax + 2]
jmp 0x4054a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054a0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x100]
call fcn.004072f0
lea ebx, [esp + 0x74]
call fcn.0043fb60
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
test eax, eax
je 0x4054e9
push 0x41021
push 0x5d7c08
push 0x5d7c20
push 0
call esi
cmp eax, 1
jne 0x405544
lea ecx, [esp + 0x1ac]
call fcn.0043db40
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x78]
call fcn.00406cf0
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5d7c5c
call fcn.004066b0
mov eax, dword [esp + 0x1c]
push 0x40
push 0x5d7c08
push eax
push 0
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405544
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x74]
mov byte [esp + 0x5ecc], 5
call fcn.00405c70
lea ecx, [esp + 0x1ac]
push ecx
mov byte [esp + 0x5ed0], 2
call fcn.00405dc0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405804
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jl 0x405808
push str._update
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40568a
sub eax, ecx
sar eax, 1
js 0x40568a
push 0x104
lea edx, [esp + 0x5cb8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x5cb4]
push eax
call esi
lea ecx, [esp + 0x5cb4]
push ecx
call esi
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x5cb4]
push ecx
mov bl, 7
push str._sSafeLive.dll
lea edi, [esp + 0x24]
mov byte [esp + 0x5ed4], bl
call fcn.00407710
mov esi, dword [esp + 0x24]
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40565d
lea edx, [esp + 0x104]
push edx
call fcn.00441720
mov byte [esp + 0x5ecc], 8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x108]
call fcn.00406d70
mov ecx, edi
mov byte [esp + 0x5ecc], bl
call fcn.004417e0
lea eax, [esi - 0x10]
mov byte [esp + 0x5ecc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405804
cmp dword [ecx - 0xc], 0
jl 0x405808
push str._downloadcustom
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40574e
sub eax, ecx
sar eax, 1
jne 0x40574e
push 0x5d74e0
push str._downloadcustom
lea ecx, [esp + 0x20]
push ecx
call fcn.00406840
mov eax, dword [esp + 0x18]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x5ed4], 9
call fcn.0040b980
push eax
mov byte [esp + 0x5ed8], 2
call fcn.0040c110
lea edx, [esp + 0x108c]
push edx
mov byte [esp + 0x5ed0], 1
call fcn.0041bdc0
mov byte [esp + 0x5ecc], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40573e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c]
call fcn.00405c30
xor eax, eax
jmp 0x405c08
cmp dword [ecx - 0xc], 0
jl 0x405808
push str._download
push ecx
call fcn.004f7373
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4057dd
sub eax, ecx
sar eax, 1
js 0x4057dd
push ecx
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x5ed0], 0xa
call fcn.0040b980
mov edi, eax
mov byte [esp + 0x5ed0], 2
call fcn.004048f0
call fcn.0040b980
push eax
call fcn.0040bde0
lea ecx, [esp + 0x108c]
push ecx
mov byte [esp + 0x5ed0], 1
call fcn.0041bdc0
lea ecx, [esp + 0x18]
call fcn.00406760
lea esi, [esp + 0x2c]
call fcn.00405c30
xor eax, eax
jmp 0x405c08
cmp dword [ecx - 0xc], 0
jl 0x405808
push str._activate1
push ecx
call fcn.004f7373
add esp, 8
test eax, eax
je 0x405804
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
js 0x405808
call fcn.004957d0
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0x10]
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x28], eax
lea edx, [esp + 0x28]
mov byte [esp + 0x5ecc], 0xb
mov eax, dword [esp + 0x18]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.00404cd0
add esp, 8
test eax, eax
je 0x405985
push 0x5d79d4
call fcn.00403fa0
push eax
push 0x65fa18
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x65fa18
call fcn.004066b0
xor ebp, ebp
push ebp
mov bl, 0xc
mov byte [esp + 0x5ed0], bl
mov esi, dword [esp + 0x2c]
push 5
push 1
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x5edc], 0xd
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x5ee0], bl
call fcn.0049daf3
mov byte [esp + 0x5ee0], 0xb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5ecc], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405913
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [esp + 0x108c]
push eax
mov byte [esp + 0x5ed0], 1
call fcn.0041bdc0
mov byte [esp + 0x5ecc], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x405965
push eax
call fcn.004f6d01
add esp, 4
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
cmp eax, ebp
je 0x40597e
push eax
call fcn.004f6d01
add esp, 4
xor eax, eax
jmp 0x405c08
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
lea eax, [edi - 0x1dc]
mov dword [esp + 0x64], eax
add eax, 0x164
mov dword [esp + 0x68], 0x78
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0xf1
test ebp, ebp
je 0x4059f0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059c1
sub eax, edx
sar eax, 1
je 0x4059f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, ebp
call fcn.004066b0
call fcn.00404a50
add esp, 4
mov dword [esp + 0x10f8], eax
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], 0
mov eax, esp
lea edx, [esp + 0x6c]
lea esi, [esp + 0x1094]
mov dword [esp + 0x2c], esp
mov dword [eax], edx
call fcn.00406c60
test eax, eax
jne 0x405a8f
mov byte [esp + 0x5ecc], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x108c]
push ecx
mov byte [esp + 0x5ed0], 1
call fcn.0041bdc0
mov byte [esp + 0x5ecc], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c]
call fcn.00405c30
xor eax, eax
jmp 0x405c08
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, 0x5d7d04
call fcn.004066b0
push ecx
mov byte [esp + 0x5ed4], 0xe
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, str.showioswnd
call fcn.004066b0
lea esi, [esp + 0x28]
mov byte [esp + 0x5ed4], 0xb
call fcn.0049d696
mov eax, esi
push eax
mov ecx, 0x5d7d28
mov byte [esp + 0x5ed8], 0xf
call fcn.00406a80
add esp, 0xc
test al, al
je 0x405b50
test ebp, ebp
je 0x405b50
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405af1
sub eax, edx
sar eax, 1
je 0x405b50
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004066b0
mov byte [esp + 0x5ecc], 0x10
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x405b47
push 0x5d7d2c
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x405b47
sub eax, dword [esp + 0x1c]
sar eax, 1
js 0x405b47
lea edx, [esp + 0x108c]
push edx
call fcn.0042a760
lea ecx, [esp + 0x1c]
call fcn.00406760
mov eax, dword [esp + 0x1090]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x5ecc], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x2c]
call fcn.00403950
mov edi, eax
call fcn.00403bc0
mov byte [esp + 0x5ecc], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x108c]
push ecx
mov byte [esp + 0x5ed0], 1
call fcn.0041bdc0
mov byte [esp + 0x5ecc], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c]
call fcn.00405c30
mov eax, edi
mov ecx, dword [esp + 0x5ec4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5ea8]
xor ecx, esp
call fcn.004f673f
add esp, 0x5ebc
ret