Function at 0x477d22
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 + 0x24], edi
call fcn.00478dc5
and dword [edi + 0x1c], 0
lea esi, [edi + 0x24]
call fcn.00444784
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x477d61
test ebx, ebx
je 0x477d5c
lea eax, [ebx + 4]
jmp 0x477d5e
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x6c], ecx
mov eax, dword [eax + 8]
xor esi, esi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x477da7
push esi
mov eax, ebx
call fcn.00477a62
cmp eax, 2
jne 0x477da0
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0046a41f
lea ecx, [eax + 0x2c]
push ecx
push esi
push dword [eax + 0x28]
add eax, 0xc
push eax
push edi
call fcn.00478b0e
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x477d74
lea eax, [esp + 0x20]
push eax
call fcn.004441b6
cmp dword [ebp + 0xc], 0
je 0x477dd6
push 0xc7
lea esi, [esp + 0x20]
call fcn.0047dae7
pop ecx
lea edi, [esp + 0x20]
call fcn.004432a9
mov ecx, esi
call fcn.00402907
and dword [esp + 0xc], 0
lea ecx, [ebx + 0x1c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x4780a0
mov eax, dword [esp + 0xc]
call fcn.004887a7
mov ecx, dword [ebp + 0xc]
mov edi, eax
test ecx, ecx
je 0x477e6d
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x47806e
lea eax, [esp + 0x18]
push eax
call fcn.004441b6
mov ecx, dword [ebx + 0xc]
mov eax, dword [edi + 0x10]
add ecx, 4
call fcn.0046a41f
mov esi, eax
call fcn.00411f01
push eax
lea esi, [esp + 0x24]
call fcn.00411f01
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004492b5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 0x10
add esp, 0xc
lea esi, [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.00411f01
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x2c]
call dword [eax]
mov ecx, esi
call fcn.00402907
cmp byte [0x523354], 0
je 0x477eb9
mov ecx, dword [ebx + 0xc]
mov eax, dword [edi + 0x10]
add ecx, 4
call fcn.0046a41f
push dword [eax]
lea eax, [esp + 0x30]
push str.Starting_download_of:
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.00474819
push eax
mov esi, 0x523324
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x2c]
call fcn.00402907
jmp 0x477ebe
mov esi, 0x523324
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
call fcn.00478b78
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.004887a7
cmp dword [eax + 0xc], 0
jne 0x477fec
cmp byte [0x523354], 0
je 0x477f11
push str.Download_completed_succesfully.
lea eax, [esp + 0x34]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x30]
call fcn.00402907
push edi
push dword [esp + 0x28]
lea ecx, [esp + 0x18]
lea eax, [edi + 0x14]
push ecx
call fcn.00478c2c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x34]
add esp, 0xc
cmp eax, 2
je 0x477f4a
cmp eax, 5
je 0x477f4a
lea esi, [ebx + 0x3c]
lea ebx, [esp + 0x10]
call fcn.0045b3f0
mov ebx, dword [ebp + 8]
mov esi, 0x523324
cmp dword [edi + 4], 0
je 0x477f62
lea eax, [esp + 0x10]
call fcn.0046e0f8
cmp dword [edi + 4], eax
jne 0x4780b6
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx + 0xc]
add ecx, 4
mov eax, edi
call fcn.0046a41f
add eax, 0x24
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x477f93
mov ecx, dword [esp + 0x10]
push 0
push eax
call fcn.0047e16d
pop ecx
pop ecx
test al, al
je 0x4780b6
cmp byte [0x523354], 0
je 0x477fc2
push str.Downloaded_file_was_accepted.
lea eax, [esp + 0x38]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x34]
call fcn.00402907
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.004887a7
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0046a41f
lea ecx, [esp + 0x10]
mov byte [eax + 0x68], 1
call fcn.00402907
jmp 0x478057
cmp byte [0x523354], 0
je 0x47803d
mov ebx, dword [ebx + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.0045c1f0
pop ecx
push dword [eax]
lea eax, [esp + 0x3c]
push str.Download_failed._Error:
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.00474819
push eax
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x38]
call fcn.00402907
lea ecx, [esp + 0x3c]
call fcn.00402907
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
call fcn.004887a7
push dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
call fcn.00469a1a
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jge 0x4780a0
mov ecx, dword [esp + 0x14]
jmp 0x477df1
cmp byte [0x523354], 0
je 0x4780a0
push str.Download_was_canceled.
lea eax, [esp + 0x40]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [esp + 0x3c]
call fcn.00402907
xor esi, esi
lea ecx, [esp + 0x20]
call fcn.00402907
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [esp + 0x10]
call fcn.00411f01
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x24]
push 0x5c
call fcn.00443314
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.00438242
push eax
call fcn.0045cf40
pop ecx
pop ecx
lea ecx, [esp + 0x3c]
call fcn.00402907
cmp byte [0x523354], 0
je 0x478123
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea eax, [esp + 0x40]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [esp + 0x3c]
call fcn.00402907
lea ecx, [esp + 0x10]
call fcn.00402907
push 5
pop esi
jmp 0x4780a2