Function at 0x40d6ed
Capabilities:
Delete file
Get file size

Disassembly:
push 0x78
mov eax, 0x43314d
call fcn.0041e986
mov esi, ecx
mov dword [ebp - 0x44], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x1c]
lea ecx, [edi + 4]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], edi
call fcn.0040eda4
and dword [edi + 0x1c], 0
lea ecx, [edi + 0x24]
call fcn.00403283
test ebx, ebx
je 0x40d725
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [esi + 0x70], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], eax
test eax, eax
jle 0x40d79a
mov ebx, esi
push edi
mov ecx, ebx
call fcn.0040d4c6
cmp eax, 2
jne 0x40d78e
mov ecx, dword [ebx + 0x10]
push edi
add ecx, 4
call fcn.004088b1
mov esi, eax
call fcn.00404409
push eax
lea ecx, [ebp - 0x48]
call fcn.0040385f
and dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
push ecx
push ecx
push edi
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0x1c]
call fcn.0040e9eb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.004045ed
inc edi
cmp edi, dword [ebp - 0x4c]
jl 0x40d739
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x44]
call fcn.00404409
push eax
lea ecx, [ebp - 0x54]
call fcn.0040385f
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40d7db
mov ecx, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004087a5
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00403643
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
lea ecx, [esi + 0x20]
xor eax, eax
mov edi, dword [ecx + 4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edi
test ebx, ebx
je 0x40d7fd
mov eax, dword [ebx]
mov ecx, ebx
push 0
push edi
call dword [eax + 4]
lea ecx, [esi + 0x20]
xor eax, eax
test edi, edi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
jle 0x40dcaa
mov dword [ebp - 0x74], 5
push eax
call fcn.00408a64
mov dword [ebp - 0x3c], eax
test ebx, ebx
je 0x40d8b0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x20]
test al, al
jne 0x40db87
call fcn.00404409
push eax
lea ecx, [ebp - 0x48]
call fcn.0040385f
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.004088b1
cmp dword [edi - 4], 1
mov esi, eax
jle 0x40d86d
push dword [edi - 0xc]
lea ecx, [ebp - 0x54]
call fcn.00403fdd
mov edi, dword [ebp - 0x54]
mov ecx, esi
call fcn.004036c3
push eax
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040795c
mov esi, dword [ebp - 0x48]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x40d899
push dword [esi - 0xc]
lea ecx, [ebp - 0x48]
call fcn.00403fdd
mov esi, dword [ebp - 0x48]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x18]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.004045ed
mov esi, dword [ebp - 0x44]
cmp byte [0x44be08], 0
je 0x40d90d
lea ecx, [ebp - 0x68]
call fcn.0040d2f1
mov ebx, eax
push 5
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 0x10]
add ecx, 4
push dword [eax + 0x14]
call fcn.004088b1
push str.Starting_download_of:
mov ecx, ebx
mov esi, dword [eax]
call fcn.004036da
push esi
mov ecx, ebx
call fcn.0040d305
push eax
mov ecx, 0x44bdd8
call fcn.0040f355
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
push esi
call fcn.0040eafb
mov ecx, dword [ebp - 0x4c]
push esi
call fcn.00408a64
cmp dword [eax + 0x10], 0
jne 0x40dae5
cmp byte [0x44be08], 0
je 0x40d969
lea ecx, [ebp - 0x6c]
call fcn.0040d2f1
mov esi, eax
push str.Download_completed_succesfully.
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004036da
push esi
mov ecx, 0x44bdd8
call fcn.0040f355
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x64]
lea eax, [ecx + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040ebf8
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x38], 2
je 0x40d9a2
push 5
pop ecx
cmp dword [eax + 0x38], ecx
je 0x40d9a2
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x40]
call fcn.004032bc
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
cmp dword [eax + 4], ecx
je 0x40da06
push ecx
push 0x80
push 3
push ecx
push ecx
push 0x80000000
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
or eax, 0xffffffff
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
jne 0x40d9db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
jmp 0x40d9fa
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], ecx
test eax, eax
je 0x40d9fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], ecx
jne 0x40dbc9
mov ecx, dword [esi + 0x10]
push dword [eax + 0x14]
add ecx, 4
call fcn.004088b1
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x3c], eax
cmp dword [eax - 0xc], 0
je 0x40da77
push ecx
push ecx
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00416e88
pop ecx
pop ecx
test al, al
je 0x40dbc9
mov dl, byte [ebp - 0x34]
test dl, dl
je 0x40da77
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
lea eax, [ecx - 0x41]
cmp ax, word [ebp - 0x74]
ja 0x40da56
add ecx, 0x20
movzx ecx, cx
movsx eax, dl
cmp eax, ecx
jne 0x40dbc9
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x3c], 2
inc eax
mov dword [ebp - 0x5c], eax
mov al, byte [eax]
mov dl, al
test al, al
jne 0x40da44
cmp byte [0x44be08], 0
je 0x40dab3
lea ecx, [ebp - 0x78]
call fcn.0040d2f1
mov esi, eax
push str.Downloaded_file_was_accepted.
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004036da
push esi
mov ecx, 0x44bdd8
call fcn.0040f355
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x50]
lea ecx, [esi + 0x20]
call fcn.00408a64
mov ecx, dword [esi + 0x10]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.004088b1
mov byte [ebp - 4], 1
mov byte [eax + 0x68], 1
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.004045ed
jmp 0x40db6c
cmp byte [0x44be08], 0
je 0x40db4c
mov edx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x80]
mov edx, dword [edx + 0x3c]
call fcn.0040f9cc
pop ecx
mov esi, eax
lea ecx, [ebp - 0x7c]
call fcn.0040d2f1
mov ebx, eax
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov esi, dword [esi]
push str.Download_failed._Error:
call fcn.004036da
push esi
mov ecx, ebx
call fcn.0040d305
push eax
mov ecx, 0x44bdd8
call fcn.0040f355
mov ecx, dword [ebp - 0x7c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
push 0
push esi
mov dword [ebp - 0x58], 0x643
call fcn.00408a64
mov esi, dword [ebp - 0x44]
push dword [eax + 0x14]
mov ecx, dword [esi + 0x10]
call fcn.00407dea
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x40]
jge 0x40dcaa
mov ebx, dword [ebp - 0x60]
lea ecx, [esi + 0x20]
jmp 0x40d814
cmp byte [0x44be08], 0
je 0x40dcb0
lea ecx, [ebp - 0x40]
call fcn.0040d2f1
mov esi, eax
push str.Download_was_canceled.
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004036da
push esi
mov ecx, 0x44bdd8
call fcn.0040f355
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.004045ed
jmp 0x40dcb0
mov eax, dword [ebp - 0x38]
cmp dword [eax - 4], 1
jle 0x40dbe0
push dword [eax - 0xc]
lea ecx, [ebp - 0x38]
call fcn.00403fdd
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp - 0x38]
call fcn.00420a94
pop ecx
pop ecx
test eax, eax
jne 0x40dbfc
or eax, 0xffffffff
jmp 0x40dc01
sub eax, dword [ebp - 0x38]
sar eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040762c
mov edx, dword [ebp - 0x64]
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00406e01
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.004045ed
cmp byte [0x44be08], 0
je 0x40dc68
lea ecx, [ebp - 0x40]
call fcn.0040d2f1
mov esi, eax
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.004036da
push esi
mov ecx, 0x44bdd8
call fcn.0040f355
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.004045ed
test ebx, ebx
je 0x40dc96
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x40]
call fcn.00406a47
push 0
mov byte [ebp - 4], 0xb
mov ecx, ebx
mov edx, dword [ebx]
push 0xe0000022
push dword [eax]
call dword [edx + 0x28]
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov dword [ebp - 0x58], 0x643
jmp 0x40dcb0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
lea ecx, [edi - 0x10]
call fcn.004045ed
mov eax, dword [ebp - 0x58]
call fcn.0041e941
ret 4