Function at 0x417d7d
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x40
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea esi, [ebx + 0x1c]
mov dword [esp + 0x28], ebx
lea ecx, [esi + 4]
mov dword [esp + 0x4c], esi
call fcn.00418fa7
xor ebp, ebp
lea ecx, [esi + 0x24]
mov dword [esi + 0x1c], ebp
call fcn.0040972d
mov esi, dword [esp + 0x54]
test esi, esi
je 0x417dbc
mov ecx, ebx
lea eax, [ebx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x38], ecx
mov eax, dword [ebx + 0xc]
mov edi, ebp
mov dword [ebx + 0x70], esi
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x417e2c
push edi
mov ecx, ebx
call fcn.00417bdb
cmp eax, 2
jne 0x417e1f
mov ecx, dword [ebx + 0xc]
push edi
add ecx, 4
call fcn.00409eeb
mov esi, eax
call fcn.0040522e
push eax
lea ecx, [esp + 0x28]
call fcn.004028b4
lea ecx, [esi + 0x2c]
push ecx
push ecx
push edi
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00418ccc
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.004052ff
inc edi
cmp edi, dword [esp + 0x20]
jl 0x417dcf
mov esi, dword [esp + 0x54]
xor ebp, ebp
call fcn.0040522e
push eax
lea ecx, [esp + 0x24]
call fcn.004028b4
test esi, esi
je 0x417e63
mov edx, 0xc7
lea ecx, [esp + 0x24]
call fcn.0041aa2c
push eax
lea ecx, [esp + 0x24]
call fcn.00409e7f
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov edi, dword [esp + 0x20]
lea ecx, [ebx + 0x20]
mov edx, dword [ecx + 4]
mov eax, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
test edx, edx
jle 0x418262
push eax
call fcn.0040a44c
mov dword [esp + 0x14], eax
test esi, esi
je 0x417f1f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
test al, al
jne 0x4181b9
call fcn.0040522e
push eax
lea ecx, [esp + 0x28]
call fcn.004028b4
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
add ecx, 4
push dword [eax + 0x14]
call fcn.00409eeb
cmp dword [edi - 4], 1
mov esi, eax
jle 0x417ed9
push dword [edi - 0xc]
lea ecx, [esp + 0x24]
call fcn.00404d3d
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.0040280d
push eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040a5cf
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x417f09
push dword [esi - 0xc]
lea ecx, [esp + 0x28]
call fcn.00404d3d
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [esi - 0x10]
call fcn.004052ff
mov eax, dword [esp + 0x14]
cmp byte [0x449ac4], 0
je 0x417f72
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x14]
add ecx, 4
call fcn.00409eeb
lea ecx, [esp + 0x2c]
mov ebx, dword [eax]
call fcn.00415236
mov esi, eax
push str.Starting_download_of:
mov ecx, esi
call fcn.004028da
push ebx
mov ecx, esi
call fcn.0041524a
push eax
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
lea ecx, [ebx + 0x1c]
push esi
call fcn.00418d76
push esi
lea ecx, [ebx + 0x20]
call fcn.0040a44c
cmp dword [eax + 0x10], ebp
jne 0x418122
cmp byte [0x449ac4], 0
je 0x417fc8
lea ecx, [esp + 0x30]
call fcn.00415236
mov esi, eax
push str.Download_completed_succesfully.
mov ecx, esi
call fcn.004028da
push esi
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov esi, dword [esp + 0x14]
lea edx, [ebx + 0x1c]
lea ecx, [esp + 0x1c]
lea eax, [esi + 0x18]
push eax
push esi
call fcn.00418e59
mov eax, dword [ebx + 0xc]
pop ecx
pop ecx
cmp dword [eax + 0x34], 2
je 0x417ffb
cmp dword [eax + 0x34], 5
je 0x417ffb
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x40]
call fcn.00409766
cmp dword [esi + 4], ebp
mov esi, dword [esp + 0x1c]
je 0x418097
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
or eax, 0xffffffff
mov dword [esp + 0x34], ecx
cmp ecx, eax
jne 0x418036
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
jmp 0x418057
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x418057
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], ecx
je 0x41809b
cmp dword [esi - 4], 1
jle 0x418076
push dword [esi - 0xc]
lea ecx, [esp + 0x20]
call fcn.00404d3d
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push esi
call fcn.00426705
pop ecx
pop ecx
test eax, eax
jne 0x4181f6
or eax, 0xffffffff
jmp 0x4181fa
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x14]
add ecx, 4
call fcn.00409eeb
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], ebp
je 0x4180be
push ebp
mov ecx, esi
call fcn.0041abea
pop ecx
test al, al
je 0x418060
cmp byte [0x449ac4], 0
je 0x4180f9
lea ecx, [esp + 0x3c]
call fcn.00415236
mov ebx, eax
push str.Downloaded_file_was_accepted.
mov ecx, ebx
call fcn.004028da
push ebx
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ebx, dword [esp + 0x28]
push dword [esp + 0x18]
lea ecx, [ebx + 0x20]
call fcn.0040a44c
mov ecx, dword [ebx + 0xc]
add ecx, 4
mov eax, dword [eax + 0x14]
push eax
call fcn.00409eeb
lea ecx, [esi - 0x10]
mov byte [eax + 0x6c], 1
call fcn.004052ff
jmp 0x41819a
cmp byte [0x449ac4], 0
je 0x418185
mov edx, dword [ebx + 0x3c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0041a559
pop ecx
lea ecx, [esp + 0x40]
mov ebx, dword [eax]
call fcn.00415236
mov esi, eax
push 0x443b20
mov ecx, esi
call fcn.004028da
push ebx
mov ecx, esi
call fcn.0041524a
push eax
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ecx, dword [esp + 0x44]
lea ecx, [ecx - 0x10]
call fcn.004052ff
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
push ebp
push esi
lea ecx, [ebx + 0x20]
call fcn.0040a44c
mov ecx, dword [ebx + 0xc]
push dword [eax + 0x14]
call fcn.00413470
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x48]
jge 0x418262
mov esi, dword [esp + 0x54]
lea ecx, [ebx + 0x20]
jmp 0x417e7f
cmp byte [0x449ac4], 0
je 0x418262
lea ecx, [esp + 0x54]
call fcn.00415236
mov esi, eax
push str.Download_was_canceled.
mov ecx, esi
call fcn.004028da
push esi
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.004052ff
jmp 0x418262
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.0040995a
mov edx, dword [esp + 0x4c]
mov ecx, eax
call fcn.0040b25a
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.004052ff
cmp byte [0x449ac4], 0
je 0x418257
lea ecx, [esp + 0x54]
call fcn.00415236
mov ebx, eax
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
mov ecx, ebx
call fcn.004028da
push ebx
mov ecx, 0x449a94
call fcn.0041466e
mov ecx, dword [esp + 0x54]
lea ecx, [ecx - 0x10]
call fcn.004052ff
lea ecx, [esi - 0x10]
call fcn.004052ff
push 5
pop ebp
lea ecx, [edi - 0x10]
call fcn.004052ff
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret 4