Function at 0x406d87
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x714
mov eax, 0x632257
call fcn.004d66c3
mov esi, ecx
mov dword [ebp - 0x6bc], esi
call fcn.004ad773
xor ebx, ebx
test al, al
je 0x406e4d
mov eax, dword [0x6d9390]
test eax, eax
je 0x406e4d
cmp dword [eax + 4], 4
jl 0x406e4d
push str.1011
call fcn.004ad356
mov ebx, eax
mov dword [esp], str.1130
call fcn.004ad356
pop ecx
push 0
push 0
push 0x6b2730
push 0x7d
push str.CDoUpdateTask::DoTask
push 4
lea ecx, [ebp - 0x64c]
mov esi, eax
call fcn.00405da5
mov edi, eax
and dword [ebp - 4], 0
mov ecx, str._null_
test esi, esi
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.00403a1c
test ebx, ebx
mov eax, str._null_
cmovne eax, ebx
push eax
push esi
call fcn.00403a1c
mov ecx, dword [0x6d9390]
add esp, 0x10
push edi
call fcn.00405e8a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64c]
call fcn.00403bae
mov esi, dword [ebp - 0x6bc]
xor ebx, ebx
lea ecx, [ebp - 0x6d0]
mov byte [ebp - 0x6c4], bl
call fcn.004c65d0
xor edi, edi
lea ecx, [ebp - 0x6f8]
inc edi
mov dword [ebp - 4], edi
call fcn.004c1000
lea ecx, [ebp - 0x4e4]
mov byte [ebp - 4], 2
call fcn.004c0f70
push ebx
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 3
call fcn.004c4a60
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x6c8], esp
push eax
call fcn.004b2bf8
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
push 0x6b2a20
call fcn.00404838
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 3
call fcn.004c3e00
call fcn.00406645
sub esp, 0x18
mov dword [ebp - 0x6c0], esp
lea ecx, [eax + 4]
mov eax, esp
push eax
mov eax, dword [ecx]
call dword [eax]
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push 0x6b2920
call fcn.00404838
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 3
call fcn.004c3e00
call fcn.00406645
sub esp, 0x18
mov dword [ebp - 0x6c0], esp
lea ecx, [eax + 4]
mov eax, esp
push eax
mov eax, dword [ecx]
call dword [eax + 0x34]
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str.insd
call fcn.00404838
lea ecx, [ebp - 0x6f8]
mov byte [ebp - 4], 3
call fcn.004c3e00
push ebx
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x6f8]
push eax
call fcn.004066dc
mov ecx, eax
call fcn.004c4bf0
cmp dword [esi], ebx
je 0x406fe7
cmp dword [esi + 4], 0
je 0x406f68
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x18
mov dword [esi + 4], eax
mov ecx, esp
mov dword [ebp - 0x6c0], esp
lea eax, [ebp - 0x4c8]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00401ad6
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x6c8], esp
lea eax, [ebp - 0x498]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00401ad6
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
lea eax, [ebp - 0x4e0]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00401ad6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov byte [ebp - 4], 3
call dword [eax]
test al, al
je 0x406fe7
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x4b8], 0
je 0x407469
cmp dword [ebp - 0x4a0], 0
je 0x407469
push edi
push edi
call fcn.0040696b
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.004eddc0
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004eddc0
add esp, 0x18
lea eax, [ebp - 0x218]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor eax, eax
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 7
push eax
call fcn.00401f68
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4c8]
cmp dword [ebp - 0x4b4], 8
cmovae eax, dword [ebp - 0x4c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401cb6
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
push ebx
cmovae ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x4c8]
cmp dword [ebp - 0x4b4], 8
push ebx
cmovae eax, dword [ebp - 0x4c8]
push ebx
push ecx
push eax
call fcn.004c7120
add esp, 0x14
test al, al
jne 0x4070ff
push ebx
push 2
call fcn.0040696b
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00401ce8
jmp 0x407470
push 1
push 2
call fcn.0040696b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x5e4]
cmovae eax, dword [ebp - 0x438]
sub esp, 0xc
push eax
call fcn.004076b2
lea ecx, [ebp - 0x6b8]
mov byte [ebp - 4], 0xa
call fcn.004b321f
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.004b3cf3
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.004b355e
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4b0]
cmp dword [ebp - 0x49c], 8
mov edi, 0x3a8
cmovae eax, dword [ebp - 0x4b0]
push eax
push edi
sub esp, 0x18
lea eax, [ebp - 0x4fc]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004046a0
lea eax, [ebp - 0x450]
push eax
call fcn.004b1632
add esp, 0x20
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x4071af
mov eax, dword [eax]
push eax
call fcn.004b1456
pop ecx
pop ecx
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
mov bl, al
call fcn.00401ce8
test bl, bl
jne 0x40720c
xor ebx, ebx
push ebx
push 3
call fcn.0040696b
lea ecx, [ebp - 0x4fc]
call fcn.00405aa5
lea ecx, [ebp - 0x574]
call fcn.0040766f
lea eax, [ebp - 0x574]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b8c1
pop ecx
jmp 0x4070eb
mov ecx, dword [esi]
test ecx, ecx
je 0x407217
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 3
call fcn.0040696b
push edi
sub esp, 0x18
lea eax, [ebp - 0x438]
mov ecx, esp
xor ebx, ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00401ad6
lea eax, [ebp - 0x52c]
push eax
call fcn.004b1b89
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 0xe
cmp dword [edi + 0x14], 0x10
jb 0x407257
mov edi, dword [edi]
lea eax, [ebp - 0x514]
push eax
call fcn.00401921
mov ecx, eax
call fcn.004a6b18
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x407276
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004b182b
pop ecx
pop ecx
lea ecx, [ebp - 0x514]
call fcn.00401ce8
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push ebx
cmovae eax, dword [ebp - 0x450]
push 0x406ca7
push 0x6b2a04
push eax
push edi
call fcn.004cc290
lea ecx, [ebp - 0x450]
call fcn.00405aa5
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0xb
call fcn.00405aa5
push 1
push 4
call fcn.0040696b
call fcn.00406d0f
call fcn.00406afc
mov ecx, dword [esi]
test ecx, ecx
je 0x4072ee
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x720]
call fcn.004c7d50
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x6cc], esp
push str._soft_i4
call fcn.00404838
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push 0x6b2a30
call fcn.00404838
lea ecx, [ebp - 0x720]
mov byte [ebp - 4], 0x11
call fcn.004c3e00
push ebx
lea eax, [ebp - 0x720]
push ebx
push eax
call fcn.004066dc
mov ecx, eax
call fcn.004c4bf0
call fcn.004ad773
test al, al
jne 0x40736d
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x468]
push eax
call fcn.00401921
mov ecx, eax
call fcn.004a6b18
push 0x6b2a34
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x13
call fcn.00401cb6
lea eax, [ebp - 0x480]
push 0x1d
push eax
call fcn.004a559d
mov byte [ebp - 4], 0x14
lea edi, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
lea esi, [ebp - 0x480]
cmovae edi, dword [ebp - 0x468]
cmp dword [ebp - 0x46c], 8
cmovae esi, dword [ebp - 0x480]
call fcn.004af40e
neg eax
sbb eax, eax
inc eax
push eax
push 0xffffffffffffffff
push 1
push edi
push esi
call fcn.004a73ae
add esp, 0x1c
neg eax
sbb al, al
inc al
mov byte [ebp - 0x6c4], al
push dword [ebp - 0x6c4]
push 5
call fcn.0040696b
lea ecx, [ebp - 0x480]
call fcn.00401ce8
lea ecx, [ebp - 0x468]
call fcn.00401ce8
lea ecx, [ebp - 0x720]
call fcn.004c3940
lea ecx, [ebp - 0x4fc]
call fcn.00405aa5
lea ecx, [ebp - 0x574]
call fcn.0040766f
lea eax, [ebp - 0x574]
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b8c1
pop ecx
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00401ce8
mov esi, dword [ebp - 0x6bc]
jmp 0x407470
push ebx
push edi
call fcn.0040696b
mov ecx, dword [esi]
test ecx, ecx
je 0x407481
mov eax, dword [ecx]
push dword [ebp - 0x6c4]
call dword [eax + 0xc]
cmp dword [esi + 4], 0
je 0x407493
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
call fcn.004ad773
test al, al
je 0x40753f
mov eax, dword [0x6d9390]
test eax, eax
je 0x40753f
cmp dword [eax + 4], 4
jl 0x40753f
push str.1012
call fcn.004ad356
mov dword [ebp - 0x6bc], eax
mov dword [esp], str.1130
call fcn.004ad356
pop ecx
push ebx
push ebx
push 0x6b2730
push 0xe9
push str.CDoUpdateTask::DoTask
push 4
lea ecx, [ebp - 0x130]
mov edi, eax
call fcn.00405da5
mov ebx, eax
test edi, edi
mov byte [ebp - 4], 0x16
mov ecx, str._null_
lea esi, [ebx + 0x30]
cmovne ecx, edi
push ecx
push esi
call fcn.00403a1c
mov eax, dword [ebp - 0x6bc]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00403a1c
mov ecx, dword [0x6d9390]
add esp, 0x10
push ebx
call fcn.00405e8a
lea ecx, [ebp - 0x130]
call fcn.00403bae
lea ecx, [ebp - 0x4e0]
mov dword [ebp - method.CParseUpdateData.virtual_0], vtable.CParseUpdateData.0
call fcn.00408db1
lea ecx, [ebp - 0x6f8]
call fcn.004c3940
lea ecx, [ebp - 0x6d0]
call fcn.004c6710
call fcn.004d666d
ret