Function at 0x4039f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x42f034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00404910
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push str._sdownload
push eax
call fcn.00405e80
sub esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00401640
call fcn.004065d0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push str._sdownload.zip
push eax
call fcn.00405e80
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
add esp, 0x24
cmp esi, ebx
je 0x403ac8
cmp dword [esi + 0x14], 8
jb 0x403aad
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00402950
cmp dword [ebp - 0x14], 8
jb 0x403ad6
push dword [ebp - 0x28]
call edi
add esp, 4
mov ecx, esi
call fcn.00404600
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401640
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404600
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 2
setne bl
cmp dword [ebp - 0x14], 8
jb 0x403b32
push dword [ebp - 0x28]
call edi
add esp, 4
test bl, bl
je 0x403b86
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401640
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404600
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x403b86
push dword [ebp - 0x28]
call edi
add esp, 4
lea ecx, [ebp - 0x59]
call fcn.00410660
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x60], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.00401640
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401640
lea ecx, [ebp - 0x59]
mov byte [ebp - 4], 5
call fcn.00410840
test al, al
jne 0x403c0d
push str.Download_fail_
push 1
push 0x39
push 0x4225a0
push str.CUpdateTask::DownloadZip
call fcn.00412b20
add esp, 0x14
xor bl, bl
jmp 0x403c0f
mov bl, 1
lea ecx, [ebp - 0x59]
mov byte [ebp - 4], 2
call fcn.00410680
cmp dword [ebp - 0x2c], 8
jb 0x403c29
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x403c4b
push dword [ebp - 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x403c6d
push dword [ebp + 8]
call edi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d982
mov esp, ebp
pop ebp
ret 0x18