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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4183e5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x426034]
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.004048a0
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.00404de0
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.004014c0
call fcn.00403280
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.00404de0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
add esp, 0x24
cmp esi, ebx
je 0x402908
cmp dword [esi + 0x14], 8
jb 0x4028ed
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.00403170
cmp dword [ebp - 0x14], 8
jb 0x402916
push dword [ebp - 0x28]
call edi
add esp, 4
mov ecx, esi
call fcn.00404590
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.004014c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404590
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 0x402972
push dword [ebp - 0x28]
call edi
add esp, 4
test bl, bl
je 0x4029c2
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.004014c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404590
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
jb 0x4029c2
push dword [ebp - 0x28]
call edi
add esp, 4
push 3
call dword [sym.imp.libcurl.dll_curl_global_init]
sub esp, 0x14
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x5c], 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.004014c0
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.004014c0
mov byte [ebp - 4], 5
call fcn.0040b1d0
test al, al
jne 0x402a46
push str.Download_fail_
push 1
push 0x31
push 0x41bf9c
push str.CUpdateTask::DownloadZip
call fcn.0040bd30
add esp, 0x14
xor bl, bl
jmp 0x402a48
mov bl, 1
call dword [sym.imp.libcurl.dll_curl_global_cleanup]
cmp dword [ebp - 0x2c], 8
jb 0x402a5c
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 0x402a7e
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 0x402aa0
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.00417832
mov esp, ebp
pop ebp
ret 0x18