Function at 0x490388
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x50cea0
call fcn.004d0cf3
mov ebx, ecx
lea edi, [ebx + 0x18]
lea ecx, [edi + 4]
mov dword [ebp - 0x40], edi
call fcn.00491615
xor esi, esi
lea ecx, [edi + 0x24]
mov dword [edi + 0x1c], esi
call fcn.00452170
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4903c4
lea eax, [ebx + 4]
test ebx, ebx
jne 0x4903c1
mov eax, esi
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xc]
mov edi, esi
mov dword [ebx + 0x6c], ecx
mov eax, dword [eax + 8]
test eax, eax
jle 0x49040a
mov esi, eax
push edi
mov ecx, ebx
call fcn.004900a1
cmp eax, 2
jne 0x490403
mov ecx, dword [ebx + 0xc]
push edi
add ecx, 4
call fcn.0047fd28
lea ecx, [eax + 0x2c]
push ecx
push ecx
push edi
push dword [eax + 0x28]
add eax, 0xc
lea ecx, [ebx + 0x18]
push eax
call fcn.00491385
inc edi
cmp edi, esi
jl 0x4903d5
xor esi, esi
call fcn.00406cde
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
je 0x490447
mov edx, 0xc7
lea ecx, [ebp - 0x30]
call fcn.00495030
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx + 0x1c]
mov edx, dword [ecx + 4]
mov eax, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], eax
test edx, edx
jle 0x490866
push eax
call fcn.00491268
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x490504
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
test al, al
jne 0x490763
call fcn.00406cde
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0xc]
add ecx, 4
push dword [edx + 0x10]
call fcn.0047fd28
cmp dword [edi - 4], 1
mov esi, eax
jle 0x4904be
push dword [edi - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00406931
mov edi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041e88d
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004575ca
mov esi, dword [ebp - 0x20]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4904ea
push dword [esi - 0xc]
lea ecx, [ebp - 0x20]
call fcn.00406931
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
mov edx, dword [ebp - 0x14]
xor esi, esi
cmp byte [0x5706cc], 0
je 0x49056c
mov ecx, dword [ebx + 0xc]
push dword [edx + 0x10]
add ecx, 4
call fcn.0047fd28
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call fcn.00406cde
push eax
lea ecx, [ebp - 0x24]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push str.Starting_download_of:
call fcn.004072a1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x49054f
push eax
lea ecx, [ebp - 0x24]
call fcn.004072a1
lea eax, [ebp - 0x24]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push dword [ebp - 0x18]
lea ecx, [ebx + 0x18]
call fcn.0049141f
push dword [ebp - 0x18]
lea ecx, [ebx + 0x1c]
call fcn.00491268
cmp dword [eax + 0xc], esi
jne 0x4906be
cmp byte [0x5706cc], 0
je 0x4905d0
call fcn.00406cde
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push str.Download_completed_succesfully.
call fcn.004072a1
lea eax, [ebp - 0x2c]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov ecx, dword [ebp - 0x14]
lea edx, [ebx + 0x18]
lea eax, [ecx + 0x14]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004914ae
mov eax, dword [ebx + 0xc]
pop ecx
pop ecx
cmp dword [eax + 0x34], 2
je 0x490600
cmp dword [eax + 0x34], 5
je 0x490600
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x3c]
call fcn.0046e350
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], esi
je 0x49061e
lea ecx, [ebp - 0x10]
call fcn.00485ec3
mov edx, dword [ebp - 0x14]
cmp dword [edx + 4], eax
jne 0x4907b1
mov eax, edx
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x10]
add ecx, 4
call fcn.0047fd28
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x490647
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0049532c
pop ecx
test al, al
je 0x4907b1
cmp byte [0x5706cc], 0
je 0x49068c
call fcn.00406cde
push eax
lea ecx, [ebp - 0x30]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
push str.Downloaded_file_was_accepted.
call fcn.004072a1
lea eax, [ebp - 0x30]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push dword [ebp - 0x18]
lea ecx, [ebx + 0x1c]
call fcn.00491268
mov ecx, dword [ebx + 0xc]
add ecx, 4
mov eax, dword [eax + 0x10]
push eax
call fcn.0047fd28
mov byte [eax + 0x6c], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x49074b
cmp byte [0x5706cc], 0
je 0x490734
mov edx, dword [ebx + 0x38]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0046de60
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call fcn.00406cde
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0x534570
call fcn.004072a1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x490708
push eax
lea ecx, [ebp - 0x28]
call fcn.004072a1
lea eax, [ebp - 0x28]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push esi
push dword [ebp - 0x18]
lea ecx, [ebx + 0x1c]
call fcn.00491268
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x10]
call fcn.0048065c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x3c]
jge 0x490866
lea ecx, [ebx + 0x1c]
jmp 0x490460
cmp byte [0x5706cc], 0
je 0x490866
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Download_was_canceled.
call fcn.004072a1
lea eax, [ebp + 8]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x490866
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4907c8
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406931
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
jne 0x4907e4
or eax, 0xffffffff
jmp 0x4907e9
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004450c5
mov edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.00470d60
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp byte [0x5706cc], 0
je 0x490854
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.004072a1
lea eax, [ebp + 8]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push 5
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00406dd3
mov eax, esi
call fcn.004d0cbc
ret 4