Function at 0x47c04a
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 + 0x18], edi
call fcn.0047d090
and dword [edi + 0x1c], 0
lea esi, [edi + 0x24]
call fcn.004475bc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x47c089
test ebx, ebx
je 0x47c084
lea eax, [ebx + 4]
jmp 0x47c086
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x6c], edi
mov eax, dword [eax + 8]
xor esi, esi
mov dword [esp + 0x24], eax
test eax, eax
jle 0x47c0d2
push esi
mov eax, ebx
call fcn.0047bd8a
cmp eax, 2
jne 0x47c0cb
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 4]
mov eax, esi
call fcn.0046d740
lea ecx, [eax + 0x2c]
push ecx
push esi
push dword [eax + 0x28]
add eax, 0xc
push eax
push dword [esp + 0x28]
call fcn.0047ce00
inc esi
cmp esi, dword [esp + 0x24]
jl 0x47c09c
lea eax, [esp + 0x28]
push eax
call fcn.004029ba
test edi, edi
je 0x47c102
push 0xc7
lea esi, [esp + 0x28]
call fcn.00481de6
pop ecx
lea edi, [esp + 0x28]
call fcn.0044607b
mov ecx, esi
call fcn.00402964
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 0x47c3cf
mov eax, dword [esp + 0xc]
call fcn.0048cab4
mov esi, eax
mov dword [esp + 0x20], esi
test edi, edi
je 0x47c195
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
test al, al
jne 0x47c39d
lea eax, [esp + 0x1c]
push eax
call fcn.004029ba
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.0046d740
mov esi, eax
call fcn.00412cef
push eax
lea esi, [esp + 0x2c]
call fcn.00412cef
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044bda7
mov edi, dword [edi]
add esp, 0xc
lea esi, [esp + 0x1c]
add edi, 0x10
call fcn.00412cef
mov ecx, dword [ebp + 0xc]
push eax
call dword [edi]
mov ecx, esi
call fcn.00402964
mov esi, dword [esp + 0x20]
cmp byte [0x5283d4], 0
je 0x47c1e1
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.0046d740
push dword [eax]
lea eax, [esp + 0x30]
push str.Starting_download_of:
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov esi, 0x5283a4
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x2c]
call fcn.00402964
jmp 0x47c1e6
mov esi, 0x5283a4
push dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
call fcn.0047ce6a
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0048cab4
cmp dword [eax + 0xc], 0
jne 0x47c318
cmp byte [0x5283d4], 0
je 0x47c239
push str.Download_completed_succesfully.
lea eax, [esp + 0x34]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x30]
call fcn.00402964
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea eax, [edi + 0x14]
push ecx
call fcn.0047cef7
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x34]
add esp, 0xc
cmp eax, 2
je 0x47c276
cmp eax, 5
je 0x47c276
lea esi, [ebx + 0x3c]
lea ebx, [esp + 0x10]
call fcn.0045df80
mov ebx, dword [ebp + 8]
mov esi, 0x5283a4
cmp dword [edi + 4], 0
je 0x47c28e
lea eax, [esp + 0x10]
call fcn.0047160e
cmp dword [edi + 4], eax
jne 0x47c3e5
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx + 0xc]
add ecx, 4
mov eax, edi
call fcn.0046d740
add eax, 0x24
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x47c2bf
mov ecx, dword [esp + 0x10]
push 0
push eax
call fcn.0048246c
pop ecx
pop ecx
test al, al
je 0x47c3e5
cmp byte [0x5283d4], 0
je 0x47c2ee
push str.Downloaded_file_was_accepted.
lea eax, [esp + 0x38]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x34]
call fcn.00402964
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0048cab4
mov ecx, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0046d740
lea ecx, [esp + 0x10]
mov byte [eax + 0x68], 1
call fcn.00402964
jmp 0x47c383
cmp byte [0x5283d4], 0
je 0x47c369
mov ebx, dword [ebx + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.0045ed80
pop ecx
push dword [eax]
lea eax, [esp + 0x3c]
push str.Download_failed._Error:
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x38]
call fcn.00402964
lea ecx, [esp + 0x3c]
call fcn.00402964
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push 0
call fcn.0048cab4
push dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
call fcn.0046cd0c
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jge 0x47c3cf
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
jmp 0x47c11d
cmp byte [0x5283d4], 0
je 0x47c3cf
push str.Download_was_canceled.
lea eax, [esp + 0x40]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [esp + 0x3c]
call fcn.00402964
xor esi, esi
lea ecx, [esp + 0x28]
call fcn.00402964
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [esp + 0x10]
call fcn.00412cef
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
push 0x5c
call fcn.004460e6
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0043aef2
push eax
call fcn.0045fb60
pop ecx
pop ecx
lea ecx, [esp + 0x3c]
call fcn.00402964
cmp byte [0x5283d4], 0
je 0x47c452
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea eax, [esp + 0x40]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [esp + 0x3c]
call fcn.00402964
lea ecx, [esp + 0x10]
call fcn.00402964
push 5
pop esi
jmp 0x47c3d1