Function at 0x49810e
Capabilities:
Delete file

Disassembly:
push 0x38
mov eax, 0x50c8cd
call fcn.004cea03
mov ebx, ecx
lea esi, [ebx + 0x1c]
lea ecx, [esi + 4]
mov dword [ebp - 0x44], esi
call fcn.0048df2b
and dword [esi + 0x1c], 0
lea ecx, [esi + 0x24]
call fcn.00454aaf
mov edi, dword [ebp + 8]
test edi, edi
je 0x498140
mov dword [ebx + 0x38], edi
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x38], 0
mov dword [ebx + 0x70], edi
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x4981a9
mov edi, dword [ebp - 0x38]
push edi
mov ecx, ebx
call fcn.00497eb4
cmp eax, 2
jne 0x4981a0
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.0047fa38
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00406bd2
and dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
push ecx
push ecx
push edi
push eax
push dword [esi + 0x28]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0x1c]
call fcn.0048dc0e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004068c3
inc edi
cmp edi, dword [ebp - 0x34]
jl 0x498157
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00406bd2
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test edi, edi
je 0x4981e1
mov ecx, dword [ebx + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0047f914
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00446330
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004068c3
xor esi, esi
lea ecx, [ebx + 0x20]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
test edi, edi
je 0x498202
mov eax, dword [edi]
mov ecx, edi
push esi
push edx
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
lea ecx, [ebx + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
test edx, edx
jle 0x49861a
push eax
call fcn.0047fb94
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4982af
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x20]
test al, al
jne 0x4984f2
lea ecx, [ebp - 0x18]
call fcn.00406bd2
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [edx + 0x14]
call fcn.0047fa38
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
cmp dword [eax - 4], 1
jle 0x49826c
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00406708
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00407a8e
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
call fcn.00407aa5
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x49829b
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00406708
mov eax, dword [ebp - 0x18]
mov edx, dword [edi]
mov ecx, edi
push eax
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068c3
cmp byte [0x5736d4], 0
je 0x49830b
lea ecx, [ebp - 0x20]
call fcn.00406bd2
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.0047fa38
push str.Starting_download_of:
lea ecx, [ebp - 0x20]
mov esi, dword [eax]
call fcn.004070ba
push esi
lea ecx, [ebp - 0x20]
call fcn.0048b7e8
push eax
mov ecx, 0x5736a4
call fcn.004955c1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.004068c3
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebx + 0x1c]
call fcn.0048dcb7
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
call fcn.0047fb94
cmp dword [eax + 0x10], 0
jne 0x498457
cmp byte [0x5736d4], 0
je 0x49836b
lea ecx, [ebp - 0x24]
call fcn.00406bd2
push str.Download_completed_succesfully.
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.004070ba
lea eax, [ebp - 0x24]
mov ecx, 0x5736a4
push eax
call fcn.004955c1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004068c3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea edx, [ebx + 0x1c]
lea eax, [ecx + 0x18]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.0048ddbc
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0x38], 2
je 0x49839f
cmp dword [eax + 0x38], 5
je 0x49839f
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x40]
call fcn.00471ac0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x4983be
lea ecx, [ebp + 8]
call fcn.0049032a
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], eax
jne 0x49853b
mov eax, edx
mov ecx, dword [ebx + 0x10]
push dword [eax + 0x14]
add ecx, 4
call fcn.0047fa38
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x4983e8
mov ecx, dword [ebp + 8]
push 0
call fcn.00497615
pop ecx
test al, al
je 0x49853b
cmp byte [0x5736d4], 0
je 0x498428
lea ecx, [ebp - 0x28]
call fcn.00406bd2
push str.Downloaded_file_was_accepted.
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.004070ba
lea eax, [ebp - 0x28]
mov ecx, 0x5736a4
push eax
call fcn.004955c1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.004068c3
mov byte [ebp - 4], 0xa
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
call fcn.0047fb94
mov ecx, dword [ebx + 0x10]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.0047fa38
lea ecx, [ebp + 8]
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 1
call fcn.004068c3
jmp 0x4984da
cmp byte [0x5736d4], 0
je 0x4984ba
mov edx, dword [ebx + 0x3c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00471600
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.00406bd2
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
mov esi, dword [esi]
push 0x535828
call fcn.004070ba
push esi
lea ecx, [ebp - 0x2c]
call fcn.0048b7e8
push eax
mov ecx, 0x5736a4
call fcn.004955c1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.004068c3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004068c3
push 0
push dword [ebp - 0x14]
mov esi, 0x643
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x34], esi
call fcn.0047fb94
mov ecx, dword [ebx + 0x10]
push dword [eax + 0x14]
call fcn.0047eb9d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x38]
jge 0x49861a
lea ecx, [ebx + 0x20]
jmp 0x49820f
cmp byte [0x5736d4], 0
je 0x49861a
lea ecx, [ebp + 8]
call fcn.00406bd2
push str.Download_was_canceled.
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004070ba
lea eax, [ebp + 8]
mov ecx, 0x5736a4
push eax
call fcn.004955c1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004068c3
mov byte [ebp - 4], 1
jmp 0x49861a
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x498552
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406708
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 8]
call fcn.004d18c5
pop ecx
pop ecx
test eax, eax
jne 0x49856e
or eax, 0xffffffff
jmp 0x498573
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.00447d83
mov byte [ebp - 4], 0xd
mov ecx, eax
mov edx, dword [ebp - 0x44]
call fcn.00474930
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004068c3
cmp byte [0x5736d4], 0
je 0x4985da
lea ecx, [ebp - 0x2c]
call fcn.00406bd2
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.004070ba
lea eax, [ebp - 0x2c]
mov ecx, 0x5736a4
push eax
call fcn.004955c1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.004068c3
mov byte [ebp - 4], 0xa
test edi, edi
je 0x498609
lea edx, [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00473dd0
push 0
mov byte [ebp - 4], 0x10
mov ecx, edi
mov edx, dword [edi]
push 0xe0000022
push dword [eax]
call dword [edx + 0x28]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.004068c3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004068c3
mov esi, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004068c3
mov eax, esi
call fcn.004ce9cc
ret 4