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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b3ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x89b044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x160], ecx
mov ecx, dword [ebp - 0x160]
add ecx, 0x388
call fcn.00403b90
movzx eax, al
test eax, eax
je 0x5380d6
push 0x7f37c0
call fcn.00609060
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
xor eax, eax
jmp 0x53854d
push 0
mov ecx, dword [ebp - 0x160]
add ecx, 0x388
call fcn.00405e80
push eax
lea edx, [ebp - 0x4c]
push edx
call fcn.0060c9b0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00641f30
mov ecx, eax
call fcn.006420d0
mov byte [ebp - 4], 1
push 0x7f37bc
lea ecx, [ebp - 0x68]
call fcn.00403bf0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.0060cc10
add esp, 0xc
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x168]
push edx
lea ecx, [ebp - 0x68]
call fcn.00405350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00403c30
mov ecx, dword [ebp - 0x160]
add ecx, 0x38c
call fcn.00403b90
movzx eax, al
test eax, eax
je 0x5381a2
push 0x7f3824
lea ecx, [ebp - 0x68]
call fcn.0041edc0
jmp 0x5381bc
mov ecx, dword [ebp - 0x160]
add ecx, 0x38c
call fcn.00405e80
push eax
lea ecx, [ebp - 0x68]
call fcn.0041edc0
lea ecx, [ebp - 0x30]
call fcn.0040cd50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.006163c0
add esp, 8
lea ecx, [ebp - 0x30]
call fcn.00403c80
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00406890
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00405e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x538226
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00405e80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.004033c0
mov byte [ebp - 4], 5
push 0
push 0x2710
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
push ecx
mov edx, dword [ebp - 0x160]
add edx, 0x388
push edx
call fcn.005ffff0
add esp, 0x14
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x5382fd
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00406470
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x388
call fcn.00406470
push eax
push str.CPopMessageDlg::_DownloadImage__SyncHttpDownloadFile_failed___s_____s
call fcn.00609060
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [ebp - 0x130], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00403420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00403c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00407400
mov eax, dword [ebp - 0x130]
jmp 0x53854d
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00405e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x538398
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00406470
push eax
push str.CPopMessageDlg::_DownloadImage__saved_file__s_not_found
call fcn.00609060
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ebp - 0x134], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00403420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00403c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00407400
mov eax, dword [ebp - 0x134]
jmp 0x53854d
mov edx, dword [ebp - 0x160]
add edx, 0x3a0
push edx
call fcn.006110f0
add esp, 4
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
ja 0x5384fb
jb 0x5383d8
cmp dword [ebp - 0x170], 0x2800
jae 0x5384fb
lea ecx, [ebp - 0xa4]
call fcn.0041ca70
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x160]
add ecx, 0x3a0
call fcn.00406470
push eax
lea ecx, [ebp - 0x154]
call fcn.00403bf0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.00614780
add esp, 8
xor edx, edx
test eax, eax
setg dl
mov byte [ebp - 0x135], dl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x154]
call fcn.00403c30
movzx eax, byte [ebp - 0x135]
test eax, eax
je 0x5384ec
push 0
push str._title_404__title_
lea ecx, [ebp - 0xa4]
call fcn.00538f40
cmp eax, dword [0x82f424]
je 0x5384ec
lea ecx, [ebp - 0xa4]
call fcn.00406c00
push eax
push str.CPopMessageDlg::_DownloadImage__invalid_response__s
call fcn.00608b30
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.00407400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00403420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00403c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00407400
mov eax, dword [ebp - 0x158]
jmp 0x53854d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.00407400
mov dword [ebp - 0x15c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00403420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00403c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00407400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00407400
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0071fe0b
mov esp, ebp
pop ebp
ret 4