Function at 0x494b23
Capabilities:
Delete file

Disassembly:
push 0x38
mov eax, 0x509a38
call fcn.004cc273
mov ebx, ecx
lea esi, [ebx + 0x1c]
lea ecx, [esi + 4]
mov dword [ebp - 0x44], esi
call fcn.0048d37e
and dword [esi + 0x1c], 0
lea ecx, [esi + 0x24]
call fcn.00454743
mov edi, dword [ebp + 8]
test edi, edi
je 0x494b55
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 0x494bbe
mov edi, dword [ebp - 0x38]
push edi
mov ecx, ebx
call fcn.004948c9
cmp eax, 2
jne 0x494bb5
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.0047f2a0
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00406bcb
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.0048d061
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004068bc
inc edi
cmp edi, dword [ebp - 0x34]
jl 0x494b6c
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00406bcb
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test edi, edi
je 0x494bf6
mov ecx, dword [ebx + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0047f17c
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00446083
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004068bc
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 0x494c17
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 0x49502f
push eax
call fcn.0047f3fc
mov dword [ebp - 0x10], eax
test edi, edi
je 0x494cc4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x20]
test al, al
jne 0x494f07
lea ecx, [ebp - 0x18]
call fcn.00406bcb
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [edx + 0x14]
call fcn.0047f2a0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
cmp dword [eax - 4], 1
jle 0x494c81
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00406701
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00407a1e
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
call fcn.00407a35
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x494cb0
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00406701
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.004068bc
cmp byte [0x56f62c], 0
je 0x494d20
lea ecx, [ebp - 0x20]
call fcn.00406bcb
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.0047f2a0
push str.Starting_download_of:
lea ecx, [ebp - 0x20]
mov esi, dword [eax]
call fcn.0040706a
push esi
lea ecx, [ebp - 0x20]
call fcn.0048ada7
push eax
mov ecx, 0x56f5fc
call fcn.0049190a
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.004068bc
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebx + 0x1c]
call fcn.0048d10a
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
call fcn.0047f3fc
cmp dword [eax + 0x10], 0
jne 0x494e6c
cmp byte [0x56f62c], 0
je 0x494d80
lea ecx, [ebp - 0x24]
call fcn.00406bcb
push str.Download_completed_succesfully.
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0040706a
lea eax, [ebp - 0x24]
mov ecx, 0x56f5fc
push eax
call fcn.0049190a
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004068bc
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.0048d20f
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0x34], 2
je 0x494db4
cmp dword [eax + 0x34], 5
je 0x494db4
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x40]
call fcn.004717c0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x494dd3
lea ecx, [ebp + 8]
call fcn.0048f7fe
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], eax
jne 0x494f50
mov eax, edx
mov ecx, dword [ebx + 0x10]
push dword [eax + 0x14]
add ecx, 4
call fcn.0047f2a0
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x494dfd
mov ecx, dword [ebp + 8]
push 0
call fcn.00493b48
pop ecx
test al, al
je 0x494f50
cmp byte [0x56f62c], 0
je 0x494e3d
lea ecx, [ebp - 0x28]
call fcn.00406bcb
push str.Downloaded_file_was_accepted.
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.0040706a
lea eax, [ebp - 0x28]
mov ecx, 0x56f5fc
push eax
call fcn.0049190a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.004068bc
mov byte [ebp - 4], 0xa
push dword [ebp - 0x14]
lea ecx, [ebx + 0x20]
call fcn.0047f3fc
mov ecx, dword [ebx + 0x10]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.0047f2a0
lea ecx, [ebp + 8]
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 1
call fcn.004068bc
jmp 0x494eef
cmp byte [0x56f62c], 0
je 0x494ecf
mov edx, dword [ebx + 0x3c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00471300
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.00406bcb
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
mov esi, dword [esi]
push 0x531c5c
call fcn.0040706a
push esi
lea ecx, [ebp - 0x2c]
call fcn.0048ada7
push eax
mov ecx, 0x56f5fc
call fcn.0049190a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.004068bc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004068bc
push 0
push dword [ebp - 0x14]
mov esi, 0x643
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x34], esi
call fcn.0047f3fc
mov ecx, dword [ebx + 0x10]
push dword [eax + 0x14]
call fcn.0047e51c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x38]
jge 0x49502f
lea ecx, [ebx + 0x20]
jmp 0x494c24
cmp byte [0x56f62c], 0
je 0x49502f
lea ecx, [ebp + 8]
call fcn.00406bcb
push str.Download_was_canceled.
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040706a
lea eax, [ebp + 8]
mov ecx, 0x56f5fc
push eax
call fcn.0049190a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004068bc
mov byte [ebp - 4], 1
jmp 0x49502f
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x494f67
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406701
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 8]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x494f83
or eax, 0xffffffff
jmp 0x494f88
sub eax, dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.00447ac6
mov byte [ebp - 4], 0xd
mov ecx, eax
mov edx, dword [ebp - 0x44]
call fcn.00474350
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004068bc
cmp byte [0x56f62c], 0
je 0x494fef
lea ecx, [ebp - 0x2c]
call fcn.00406bcb
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.0040706a
lea eax, [ebp - 0x2c]
mov ecx, 0x56f5fc
push eax
call fcn.0049190a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.004068bc
mov byte [ebp - 4], 0xa
test edi, edi
je 0x49501e
lea edx, [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.004737f0
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.004068bc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004068bc
mov esi, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004068bc
mov eax, esi
call fcn.004cc23c
ret 4