Function at 0x49d7be
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x38
push 0x54
mov eax, 0x50eff5
call fcn.004d0de3
mov ebx, ecx
lea ecx, [ebx + 0x20]
call fcn.00493345
and dword [ebx + 0x38], 0
lea ecx, [ebx + 0x40]
call fcn.0045265f
mov edi, dword [ebp + 0x44]
test edi, edi
je 0x49d7ee
mov dword [ebx + 0x38], edi
mov eax, dword [ebx + 0x10]
and dword [ebp + 0x34], 0
mov dword [ebx + 0x70], edi
mov eax, dword [eax + 8]
mov dword [ebp + 0x28], eax
test eax, eax
jle 0x49d857
mov edi, dword [ebp + 0x34]
push edi
mov ecx, ebx
call fcn.0049d557
cmp eax, 2
jne 0x49d84e
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.00484ed0
lea ecx, [ebp + 0x34]
mov esi, eax
call fcn.0040c77f
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.00493028
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.0040ca45
inc edi
cmp edi, dword [ebp + 0x28]
jl 0x49d805
mov edi, dword [ebp + 0x44]
lea ecx, [ebp + 0x2c]
call fcn.0040c77f
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test edi, edi
je 0x49d88f
mov ecx, dword [ebx + 0x10]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.00484db6
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 2
call fcn.0044d0c3
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.0040ca45
lea ecx, [ebx + 0x20]
mov esi, dword [ecx + 4]
mov dword [ebp], esi
test edi, edi
je 0x49d8a9
mov eax, dword [edi]
mov ecx, edi
push 0
push esi
call dword [eax + 4]
lea ecx, [ebx + 0x20]
xor eax, eax
mov dword [ebp + 0x38], eax
test esi, esi
jle 0x49dcd9
push eax
call fcn.00485027
mov esi, eax
mov dword [ebp + 0x10], esi
test edi, edi
je 0x49d959
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
test al, al
jne 0x49dc99
lea ecx, [ebp + 0x30]
call fcn.0040c77f
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 0x10]
push dword [esi + 0x14]
add ecx, 4
call fcn.00484ed0
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x34], eax
cmp dword [eax - 4], 1
jle 0x49d912
push dword [eax - 0xc]
lea ecx, [ebp + 0x2c]
call fcn.0040cf6c
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x34], eax
mov ecx, dword [ebp + 0x14]
call fcn.00410e9b
push eax
push dword [ebp + 0x34]
lea eax, [ebp + 0x30]
push eax
call fcn.00410eb2
mov eax, dword [ebp + 0x30]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x49d941
push dword [eax - 0xc]
lea ecx, [ebp + 0x30]
call fcn.0040cf6c
mov eax, dword [ebp + 0x30]
mov edx, dword [edi]
mov ecx, edi
push 0
push 9
push eax
call dword [edx + 0x28]
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 1
call fcn.0040ca45
cmp byte [0x5735e0], 0
je 0x49d9b2
lea ecx, [ebp + 0x24]
call fcn.0040c77f
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x10]
push dword [esi + 0x14]
add ecx, 4
call fcn.00484ed0
push str.Starting_download_of:
lea ecx, [ebp + 0x24]
mov esi, dword [eax]
call fcn.0041069b
push esi
lea ecx, [ebp + 0x24]
call fcn.00490d37
push eax
mov ecx, 0x5735ac
call fcn.0049abcf
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 7
call fcn.0040ca45
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0x38]
lea ecx, [ebx + 0x1c]
call fcn.004930d1
push dword [ebp + 0x38]
lea ecx, [ebx + 0x20]
call fcn.00485027
cmp dword [eax + 0x10], 0
jne 0x49dbc7
cmp byte [0x5735e0], 0
je 0x49da12
lea ecx, [ebp + 0x20]
call fcn.0040c77f
push str.Download_completed_succesfully.
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 8
call fcn.0041069b
lea eax, [ebp + 0x20]
mov ecx, 0x5735ac
push eax
call fcn.0049abcf
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 9
call fcn.0040ca45
mov byte [ebp - 4], 1
lea eax, [esi + 0x18]
push eax
push esi
lea edx, [ebx + 0x1c]
lea ecx, [ebp + 0x44]
call fcn.004931d6
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0x38], 2
je 0x49da43
cmp dword [eax + 0x38], 5
je 0x49da43
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebx + 0x40]
call fcn.0046c410
cmp dword [esi + 4], 0
je 0x49da56
lea ecx, [ebp + 0x44]
call fcn.004958ba
cmp dword [esi + 4], eax
jne 0x49da84
mov ecx, dword [ebx + 0x10]
push dword [esi + 0x14]
add ecx, 4
call fcn.00484ed0
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x49db58
mov ecx, dword [ebp + 0x44]
push 0
call fcn.0049ccbe
pop ecx
test al, al
jne 0x49db58
mov eax, dword [ebp + 0x44]
cmp dword [eax - 4], 1
jle 0x49da9b
push dword [eax - 0xc]
lea ecx, [ebp + 0x44]
call fcn.0040cf6c
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 0x44]
call fcn.004d3e4b
pop ecx
pop ecx
test eax, eax
jne 0x49dab7
or eax, 0xffffffff
jmp 0x49dabc
sub eax, dword [ebp + 0x44]
sar eax, 1
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x44]
call fcn.0040666a
lea edx, [ebx + 0x1c]
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.00475860
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
call fcn.0040ca45
cmp byte [0x5735e0], 0
je 0x49db23
lea ecx, [ebp + 0x1c]
call fcn.0040c77f
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.0041069b
lea eax, [ebp + 0x1c]
mov ecx, 0x5735ac
push eax
call fcn.0049abcf
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xf
call fcn.0040ca45
mov byte [ebp - 4], 0xa
test edi, edi
je 0x49dbb6
lea edx, [ebp + 0x44]
lea ecx, [ebp + 8]
call fcn.00474920
push 0
mov byte [ebp - 4], 0x10
mov ecx, edi
mov edx, dword [edi]
push 0xe0000022
push dword [eax]
call dword [edx + 0x24]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.0040ca45
jmp 0x49dbb6
cmp byte [0x5735e0], 0
je 0x49db98
lea ecx, [ebp + 0x18]
call fcn.0040c77f
push str.Downloaded_file_was_accepted.
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xb
call fcn.0041069b
lea eax, [ebp + 0x18]
mov ecx, 0x5735ac
push eax
call fcn.0049abcf
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
call fcn.0040ca45
mov byte [ebp - 4], 0xa
push dword [ebp + 0x38]
lea ecx, [ebx + 0x20]
call fcn.00485027
mov ecx, dword [ebx + 0x10]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.00484ed0
mov byte [eax + 0x68], 1
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 1
call fcn.0040ca45
jmp 0x49dc85
cmp byte [0x5735e0], 0
je 0x49dc2a
mov edx, dword [ebx + 0x3c]
push ecx
lea ecx, [ebp + 4]
call fcn.004728f0
pop ecx
mov esi, eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040c77f
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
mov esi, dword [esi]
push 0x538768
call fcn.0041069b
push esi
lea ecx, [ebp + 0x28]
call fcn.00490d37
push eax
mov ecx, 0x5735ac
call fcn.0049abcf
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0x13
call fcn.0040ca45
lea ecx, [ebp + 4]
mov byte [ebp - 4], 1
call fcn.0040ca45
push dword [ebp + 0x38]
mov esi, dword [ebx + 0x10]
lea ecx, [ebx + 0x20]
call fcn.00485027
lea ecx, [esi + 4]
mov eax, dword [eax + 0x14]
push eax
call fcn.00484ed0
push eax
lea ecx, [ebp - 0x60]
call fcn.00485158
push 0
push 0x52d31c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
call fcn.00435a56
test eax, eax
js 0x49dc79
test edi, edi
je 0x49dc79
mov eax, dword [edi]
mov ecx, edi
push 0
push 0xe0000024
push dword [ebp - 0x60]
call dword [eax + 0x24]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0045224e
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
cmp eax, dword [ebp]
jge 0x49dcd9
lea ecx, [ebx + 0x20]
jmp 0x49d8b6
cmp byte [0x5735e0], 0
je 0x49dcd9
lea ecx, [ebp + 0x44]
call fcn.0040c77f
push str.Download_was_canceled.
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 3
call fcn.0041069b
lea eax, [ebp + 0x44]
mov ecx, 0x5735ac
push eax
call fcn.0049abcf
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 4
call fcn.0040ca45
mov byte [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.0040ca45
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x3c]
pop ebp
ret 4