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

Disassembly:
push 0x864
mov eax, 0x655921
call fcn.004ce655
mov esi, ecx
mov dword [ebp - 0x864], esi
call fcn.004ad570
xor ebx, ebx
test al, al
je 0x4076e4
mov eax, dword [0x6fff18]
test eax, eax
je 0x4076e4
cmp dword [eax + 4], 4
jl 0x4076e4
push str.1011
call fcn.004ad35f
mov ebx, eax
mov dword [esp], str.1130
call fcn.004ad35f
push ecx
push ecx
push 0x76
push str.CDoUpdateTask::DoTask
push ecx
lea ecx, [ebp - 0x6d4]
mov esi, eax
call fcn.0040589a
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.00403805
test ebx, ebx
mov eax, str._null_
cmovne eax, ebx
push eax
push esi
call fcn.00403805
mov ecx, dword [0x6fff18]
add esp, 0x10
push edi
call fcn.0040597a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6d4]
call fcn.00403ac0
mov esi, dword [ebp - 0x864]
xor ebx, ebx
lea ecx, [ebp - 0x870]
mov byte [ebp - 0x864], bl
call fcn.004b6d40
lea ecx, [ebp - 0x5b4]
mov dword [ebp - 4], 1
call fcn.004b9420
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 2
call fcn.004b93f0
push ebx
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 3
call fcn.004bc6a0
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x86c], esp
push eax
call fcn.004b0217
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
push 0x6dac18
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
call fcn.004056f8
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 3
call fcn.004bb910
call fcn.00407ece
sub esp, 0x18
mov dword [ebp - 0x868], 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 0xf
pop edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edi
push 0x6dac1c
mov byte [ecx], bl
call fcn.004056f8
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 3
call fcn.004bb910
call fcn.00407ece
sub esp, 0x18
mov dword [ebp - 0x868], esp
lea ecx, [eax + 4]
mov eax, esp
push eax
mov eax, dword [ecx]
call dword [eax + 0x38]
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str.insd
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edi
mov byte [ecx], bl
call fcn.004056f8
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 3
call fcn.004bb910
push ebx
lea eax, [ebp - 0x4fc]
push eax
lea eax, [ebp - 0x5b4]
push eax
call fcn.00407f4d
mov ecx, eax
call fcn.004bc990
cmp dword [esi], ebx
je 0x407877
cmp dword [esi + 4], 0
je 0x40781b
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]
cmp byte [esi + 8], 0
mov dword [esi + 4], eax
je 0x407846
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
lea edx, [ebp - 0x4f8]
push edx
mov eax, dword [ecx]
call dword [eax]
jmp 0x407877
cmp dword [ebp - 0x4e8], 0
jbe 0x407861
cmp dword [ebp - 0x4d0], 0
jbe 0x407861
lea edx, [ebp - 0x4f8]
push edx
jmp 0x407862
push ebx
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x407877
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x4d0], 0
je 0x407cae
cmp dword [ebp - 0x4b8], 0
je 0x407cae
push 1
push 1
call fcn.00407285
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
push ebx
push eax
call fcn.004e5a10
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e5a10
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.004030a8
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4e0]
cmp dword [ebp - 0x4cc], 8
cmovae eax, dword [ebp - 0x4e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x438]
call fcn.00405ad6
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
push ebx
cmovae ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x4e0]
cmp dword [ebp - 0x4cc], 8
push ebx
cmovae eax, dword [ebp - 0x4e0]
push ebx
push ebx
push ecx
push eax
call fcn.004b80e0
add esp, 0x18
test al, al
jne 0x407992
push ebx
push 2
call fcn.00407285
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.00402e90
jmp 0x407cb6
push 1
push 2
call fcn.00407285
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x66c]
cmovae eax, dword [ebp - 0x438]
sub esp, 0xc
push eax
call fcn.00408023
lea ecx, [ebp - 0x740]
mov byte [ebp - 4], 8
call fcn.004b083f
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x740]
call fcn.004b15e2
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x740]
call fcn.004b0e52
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4c8]
cmp dword [ebp - 0x4b4], 8
mov edi, 0x3a8
cmovae eax, dword [ebp - 0x4c8]
push eax
push edi
sub esp, 0x18
lea eax, [ebp - 0x480]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040456a
lea eax, [ebp - 0x450]
push eax
call fcn.004ab540
add esp, 0x20
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x407a42
mov eax, dword [eax]
push eax
call fcn.004ab47d
pop ecx
pop ecx
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 9
mov bl, al
call fcn.00402e90
test bl, bl
jne 0x407a9f
xor ebx, ebx
push ebx
push 3
call fcn.00407285
lea ecx, [ebp - 0x480]
call fcn.00405619
lea ecx, [ebp - 0x5fc]
call fcn.00407fe0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x5fc]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0040c3f5
pop ecx
jmp 0x40797e
mov ecx, dword [esi]
test ecx, ecx
je 0x407aaa
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 3
call fcn.00407285
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.00405b04
lea eax, [ebp - 0x52c]
push eax
call fcn.004ab6b5
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 0xc
cmp dword [edi + 0x14], 0x10
jb 0x407aea
mov edi, dword [edi]
lea eax, [ebp - 0x514]
push eax
call fcn.0040356d
mov ecx, eax
call fcn.004aa597
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x407b09
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004ab627
pop ecx
pop ecx
lea ecx, [ebp - 0x514]
call fcn.00402e90
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push ebx
cmovae eax, dword [ebp - 0x450]
push 0x4075bf
push 0x6dabf0
push eax
push edi
call fcn.004c2b90
lea ecx, [ebp - 0x450]
call fcn.00405619
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.00405619
push 1
push 4
call fcn.00407285
call fcn.0040740f
mov ecx, dword [esi]
test ecx, ecx
je 0x407b7c
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x7c8]
call fcn.004bd2b0
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x868], esp
push str._soft_i4
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
call fcn.004056f8
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
push 0xf
pop edi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edi
push 0x6dac34
mov byte [ecx], bl
call fcn.004056f8
lea ecx, [ebp - 0x7c8]
mov byte [ebp - 4], 0xf
call fcn.004bb910
push ebx
lea eax, [ebp - 0x7c8]
push ebx
push eax
call fcn.00407f4d
mov ecx, eax
call fcn.004bc990
call fcn.004ad570
test al, al
jne 0x407c12
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.0040356d
mov ecx, eax
call fcn.004aa597
push 0x6dac38
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x11
call fcn.00405ad6
mov byte [ebp - 0x864], 1
call fcn.004af668
test eax, eax
je 0x407c70
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push ebx
cmovae eax, dword [ebp - 0x468]
push 0xffffffffffffffff
push 1
push eax
push str._4455312381
call fcn.004afb75
add esp, 0x14
push 1
push 5
call fcn.00407285
lea ecx, [ebp - 0x468]
call fcn.00402e90
lea ecx, [ebp - 0x7c8]
call fcn.004bb410
lea ecx, [ebp - 0x480]
call fcn.00405619
lea ecx, [ebp - 0x5fc]
call fcn.00407fe0
mov byte [ebp - 4], 0x12
jmp 0x407a83
push ebx
push 1
call fcn.00407285
mov ecx, dword [esi]
test ecx, ecx
je 0x407cc7
mov eax, dword [ecx]
push dword [ebp - 0x864]
call dword [eax + 0xc]
cmp dword [esi + 4], 0
je 0x407cd9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
call fcn.004ad570
test al, al
je 0x407d7e
mov eax, dword [0x6fff18]
test eax, eax
je 0x407d7e
cmp dword [eax + 4], 4
jl 0x407d7e
push str.1012
call fcn.004ad35f
mov dword [ebp - 0x864], eax
mov dword [esp], str.1130
call fcn.004ad35f
push ecx
push ecx
push 0xee
push str.CDoUpdateTask::DoTask
push ecx
lea ecx, [ebp - 0x860]
mov edi, eax
call fcn.0040589a
mov ebx, eax
test edi, edi
mov byte [ebp - 4], 0x13
mov ecx, str._null_
lea esi, [ebx + 0x30]
cmovne ecx, edi
push ecx
push esi
call fcn.00403805
mov eax, dword [ebp - 0x864]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00403805
mov ecx, dword [0x6fff18]
add esp, 0x10
push ebx
call fcn.0040597a
lea ecx, [ebp - 0x860]
call fcn.00403ac0
lea ecx, [ebp - 0x4f8]
mov dword [ebp - method.CParseUpdateData.virtual_0], vtable.CParseUpdateData.0
call fcn.004096b1
lea ecx, [ebp - 0x5b4]
call fcn.004bb410
lea ecx, [ebp - 0x870]
call fcn.004b6f70
call fcn.004ce5ff
ret