Function at 0x46974e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x18]
lea esi, [edi + 4]
mov dword [esp + 0x1c], edi
call fcn.0045bd8d
xor esi, esi
mov dword [edi + 0x1c], esi
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x469786
cmp ebx, esi
je 0x469781
lea eax, [ebx + 4]
jmp 0x469783
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x60], edi
mov eax, dword [eax + 8]
cmp eax, esi
mov dword [esp + 0x24], eax
jle 0x4697cd
push esi
mov eax, ebx
call fcn.00469490
cmp eax, 2
jne 0x4697c6
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0045ca95
lea ecx, [eax + 0x2c]
push ecx
push esi
push dword [eax + 0x28]
add eax, 0xc
push eax
push dword [esp + 0x2c]
call fcn.0046a49f
inc esi
cmp esi, dword [esp + 0x24]
jl 0x469797
lea ecx, [esp + 0x28]
call fcn.00409513
test edi, edi
je 0x4697fc
push 0xc7
lea esi, [esp + 0x28]
call fcn.0046ec7a
pop ecx
lea edi, [esp + 0x28]
call fcn.00438b14
mov ecx, esi
call fcn.004058e3
mov edi, dword [ebp + 0xc]
and dword [esp + 0xc], 0
lea ecx, [ebx + 0x1c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x469aa7
mov eax, dword [esp + 0xc]
call fcn.004783b5
mov esi, eax
mov dword [esp + 0x20], esi
test edi, edi
je 0x46988e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test al, al
jne 0x469a75
lea ecx, [esp + 0x18]
call fcn.00409513
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.0045ca95
mov esi, eax
call fcn.0040d3d2
push eax
lea esi, [esp + 0x2c]
call fcn.0040d3d2
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043e52f
mov edi, dword [edi]
add esp, 0xc
lea esi, [esp + 0x18]
add edi, 0xc
call fcn.0040d3d2
mov ecx, dword [ebp + 0xc]
push eax
call dword [edi]
mov ecx, esi
call fcn.004058e3
mov esi, dword [esp + 0x20]
cmp byte [0x506010], 0
je 0x4698da
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.0045ca95
push dword [eax]
lea eax, [esp + 0x30]
push str.Starting_download_of:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov esi, 0x505fe0
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x2c]
call fcn.004058e3
jmp 0x4698df
mov esi, 0x505fe0
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
call fcn.0046a507
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.004783b5
cmp dword [eax + 0xc], 0
jne 0x4699f0
cmp byte [0x506010], 0
je 0x469932
push str.Download_completed_succesfully.
lea eax, [esp + 0x34]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x30]
call fcn.004058e3
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x14]
push ecx
push eax
push edi
lea ebx, [esp + 0x1c]
call fcn.0046a5bb
mov edi, dword [esp + 0x2c]
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 4], ebx
je 0x469965
lea eax, [esp + 0x10]
call fcn.0045ffc2
cmp dword [edi + 4], eax
jne 0x469abd
mov eax, dword [edi + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
add ecx, 4
call fcn.0045ca95
add eax, 0x24
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x469995
mov ecx, dword [esp + 0x10]
push ebx
push eax
call fcn.0046f302
pop ecx
pop ecx
test al, al
je 0x469ac0
cmp byte [0x506010], bl
je 0x4699c3
push str.Downloaded_file_was_accepted.
lea eax, [esp + 0x38]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x34]
call fcn.004058e3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.004783b5
mov edi, dword [edi + 0xc]
mov eax, dword [eax + 0x10]
lea ecx, [edi + 4]
call fcn.0045ca95
lea ecx, [esp + 0x10]
mov byte [eax + 0x68], 1
call fcn.004058e3
mov ebx, dword [ebp + 8]
jmp 0x469a5b
cmp byte [0x506010], 0
je 0x469a41
mov ebx, dword [ebx + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.00460099
pop ecx
push dword [eax]
lea eax, [esp + 0x3c]
push str.Download_failed._Error:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x38]
call fcn.004058e3
lea ecx, [esp + 0x3c]
call fcn.004058e3
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
call fcn.004783b5
push dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
call fcn.0045c133
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jge 0x469aa7
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x469817
cmp byte [0x506010], 0
je 0x469aa7
push str.Download_was_canceled.
lea eax, [esp + 0x40]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [esp + 0x3c]
call fcn.004058e3
xor esi, esi
lea ecx, [esp + 0x28]
call fcn.004058e3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
lea esi, [esp + 0x10]
call fcn.0040d3d2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [edi + 0x10]
mov eax, dword [edi + 0x44]
test al, 1
je 0x469ae4
shr eax, 6
test al, 1
lea eax, [edi + 0x58]
je 0x469ae7
lea eax, [edi + 0x5c]
push eax
push 0x5c
lea esi, [esp + 0x18]
call fcn.00438b7f
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042df91
push eax
call fcn.0044fd50
pop ecx
pop ecx
lea ecx, [esp + 0x3c]
call fcn.004058e3
cmp byte [0x506010], bl
je 0x469b44
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea eax, [esp + 0x40]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [esp + 0x3c]
call fcn.004058e3
lea ecx, [esp + 0x10]
call fcn.004058e3
push 5
pop esi
jmp 0x469aa9