Function at 0x4cd430
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x48]
sub esp, 0x48
push 0xffffffffffffffff
push 0x5613f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x40], esi
lea eax, [esi + 0x1c]
mov dword [ebp + 0xc], eax
lea eax, [esi + 0x20]
mov ecx, eax
mov dword [ebp + 0x38], eax
call fcn.004baf10
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], 0
call fcn.0047e6b0
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x4cd48e
mov dword [esi + 0x38], eax
mov dword [esi + 0x70], eax
xor edi, edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov dword [ebp + 0x24], eax
test eax, eax
jle 0x4cd53b
xor ebx, ebx
push edi
mov ecx, esi
call fcn.004cd1d0
cmp eax, 2
jne 0x4cd52e
mov eax, dword [esi + 0x10]
test ebx, ebx
js 0x4cdd5d
cmp edi, dword [eax + 8]
jge 0x4cdd5d
mov eax, dword [eax + 4]
add eax, ebx
mov dword [ebp + 0x30], eax
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x20], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x30]
lea eax, [ecx + 0x2c]
push eax
push ecx
push edi
lea eax, [ebp + 0x20]
push eax
push dword [ecx + 0x28]
lea eax, [ecx + 0xc]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004ba550
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cd52b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x40]
inc edi
add ebx, 0x74
cmp edi, dword [ebp + 0x24]
jl 0x4cd4a6
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x2c], edi
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x4cd5e8
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 0x30]
push 1
push eax
call fcn.0049d0a0
mov byte [ebp - 4], 5
lea esi, [edi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4cd5c6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4cd5b7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4cd5b7
call fcn.0040be70
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4cd5af
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea edi, [ebx + 0x10]
mov dword [ebp + 0x2c], edi
jmp 0x4cd5c6
push dword [edx - 0xc]
lea ecx, [ebp + 0x2c]
push edx
call fcn.004143c0
mov edi, dword [ebp + 0x2c]
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cd5e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x38]
mov edx, dword [ebx + 4]
mov dword [ebp + 0x30], edx
test ecx, ecx
je 0x4cd603
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 4]
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x30]
xor esi, esi
mov dword [ebp + 0x3c], esi
test edx, edx
jle 0x4cdba9
xor eax, eax
mov dword [ebp + 0x34], eax
test eax, eax
js 0x4cdd5d
cmp esi, dword [ebx + 4]
jge 0x4cdd5d
mov ebx, dword [ebx]
add ebx, eax
mov dword [ebp + 0x28], ebx
test ecx, ecx
je 0x4cd703
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4cdb46
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ecx + 0x10]
test eax, eax
js 0x4cdd5d
cmp eax, dword [ecx + 8]
jge 0x4cdd5d
imul esi, eax, 0x74
add esi, dword [ecx + 4]
mov ebx, dword [esi]
cmp dword [ebx - 4], 1
jle 0x4cd696
push dword [ebx - 0xc]
mov ecx, esi
call fcn.004141b0
mov ebx, dword [esi]
cmp dword [edi - 4], 1
jle 0x4cd6aa
push dword [edi - 0xc]
lea ecx, [ebp + 0x2c]
call fcn.004141b0
mov edi, dword [ebp + 0x2c]
push ebx
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.00419120
mov eax, dword [ebp + 0x50]
add esp, 0xc
mov esi, dword [ebp + 0x18]
mov eax, dword [eax]
cmp dword [esi - 4], 1
mov ebx, dword [eax + 0x28]
jle 0x4cd6d7
push dword [esi - 0xc]
lea ecx, [ebp + 0x18]
call fcn.004141b0
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x50]
push 0
push 9
push esi
call ebx
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cd6fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x28]
cmp byte [0x5d65b0], 0
je 0x4cd7b9
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x14]
push 0x15
push str.Starting_download_of:
call fcn.00418250
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx + 0x14]
test eax, eax
js 0x4cdd5d
cmp eax, dword [ecx + 8]
jge 0x4cdd5d
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax]
test edx, edx
je 0x4cd789
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cd770
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.00418250
lea eax, [ebp + 0x14]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cd7b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004ba820
mov eax, dword [ebp + 0x38]
cmp esi, dword [eax + 4]
jge 0x4cdd5d
mov eax, dword [eax]
mov edx, dword [ebp + 0x34]
cmp dword [eax + edx + 0x10], 0
jne 0x4cd9f7
cmp byte [0x5d65b0], 0
je 0x4cd841
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0x24]
push 0x1f
push str.Download_completed_succesfully.
call fcn.00418250
lea eax, [ebp + 0x24]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cd841
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 0x18]
push eax
push ebx
lea ecx, [ebp + 0x44]
call fcn.004baab0
add esp, 8
mov byte [ebp - 4], 0x1a
mov esi, dword [ebp + 0x40]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x38]
cmp eax, 2
je 0x4cd877
cmp eax, 5
je 0x4cd877
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x40]
push eax
call fcn.0048e320
cmp dword [ebx + 4], 0
je 0x4cd8fc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 4], 0x57dd44
mov dword [ebp + 8], esi
mov byte [ebp - 4], 0x1b
cmp esi, 0xffffffff
jne 0x4cd8c3
mov byte [ebp - 4], 0x1a
push eax
mov dword [ebp + 4], 0x57dd44
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x4cd8e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 0x1a
mov dword [ebp + 4], 0x57dd44
test esi, esi
je 0x4cd8eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x28]
cmp dword [eax + 4], ebx
jne 0x4cdbe1
mov esi, dword [ebp + 0x40]
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
js 0x4cdd5d
cmp eax, dword [ecx + 8]
jge 0x4cdd5d
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x4cd937
mov ecx, dword [ebp + 0x44]
push 0
call fcn.004cc260
add esp, 4
test al, al
je 0x4cdbe1
cmp byte [0x5d65b0], 0
je 0x4cd99a
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp + 0x20]
push 0x1d
push str.Downloaded_file_was_accepted.
call fcn.00418250
lea eax, [ebp + 0x20]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 0x1a
or eax, 0xffffffff
mov edx, dword [ebp + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cd99a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x38]
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp + 0x3c]
cmp esi, dword [ebx + 4]
jge 0x4cdd5d
mov eax, dword [ebx]
add eax, dword [ebp + 0x34]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x4cdd5d
cmp eax, dword [ecx + 8]
jge 0x4cdd5d
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdb2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4cdb2c
cmp byte [0x5d65b0], 0
je 0x4cdabe
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp + 0x10]
push 0x17
push 0x59011c
call fcn.00418250
mov eax, dword [ebp + 0x40]
push ecx
lea ecx, [ebp + 0x1c]
mov edx, dword [eax + 0x3c]
call fcn.00492aa0
add esp, 4
mov byte [ebp - 4], 0x30
mov edx, dword [eax]
test edx, edx
je 0x4cda6e
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cda52
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x10]
call fcn.00418250
mov esi, dword [ebp + 0x3c]
lea eax, [ebp + 0x10]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 0x2f
or ebx, 0xffffffff
mov edx, dword [ebp + 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cda9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdabb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x40]
lea ebx, [eax + 0x20]
mov ecx, dword [eax + 0x10]
cmp esi, dword [ebx + 4]
jge 0x4cdd5d
mov eax, dword [ebx]
mov eax, dword [eax + edx + 0x14]
test eax, eax
js 0x4cdd5d
cmp eax, dword [ecx + 8]
jge 0x4cdd5d
imul eax, eax, 0x74
add eax, dword [ecx + 4]
lea ecx, [ebp - 0x60]
push eax
call fcn.0049d680
mov byte [ebp - 4], 0x34
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
jl 0x4cdb20
push 0x584904
push eax
call fcn.005223f0
add esp, 8
test eax, eax
je 0x4cdb20
sub eax, dword [ebp - 0x40]
sar eax, 1
jns 0x4cdd27
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.0047e030
mov eax, dword [ebp + 0x34]
inc esi
add eax, 0x1c
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x34], eax
cmp esi, dword [ebp + 0x30]
jge 0x4cdba9
mov ecx, dword [ebp + 0x50]
jmp 0x4cd615
cmp byte [0x5d65b0], 0
je 0x4cdba9
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x50], eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x50]
push 0x16
push str.Download_was_canceled.
call fcn.00418250
lea eax, [ebp + 0x50]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdba9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4cdbca
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x48]
pop ebp
ret 4
mov eax, dword [ebp + 0x44]
cmp dword [eax - 4], 1
jle 0x4cdbf8
push dword [eax - 0xc]
lea ecx, [ebp + 0x44]
call fcn.004141b0
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 0x44]
call fcn.0052266c
add esp, 8
test eax, eax
jne 0x4cdc15
or eax, 0xffffffff
jmp 0x4cdc1a
sub eax, dword [ebp + 0x44]
sar eax, 1
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x44]
call fcn.0040ba30
mov byte [ebp - 4], 0x21
mov ecx, eax
mov edx, dword [ebp + 0xc]
call fcn.00494460
mov byte [ebp - 4], 0x1a
or ebx, 0xffffffff
mov edx, dword [ebp + 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdc56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5d65b0], 0
je 0x4cdcb8
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4cdd73
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x38], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp + 0x38]
push 0x33
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.00418250
lea eax, [ebp + 0x38]
mov ecx, 0x5d657c
push eax
call fcn.004c8170
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp + 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdcb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x4cdcff
mov eax, dword [eax]
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x1c]
mov esi, dword [eax + 0x24]
call fcn.00493cd0
mov byte [ebp - 4], 0x28
mov ecx, dword [ebp + 0x50]
push 0
push 0xe0000022
push dword [eax]
call esi
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdcff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cdd1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0x643
jmp 0x4cdbae
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x4cdd3d
mov eax, dword [ecx]
push 0
push 0xe0000024
push dword [ebp - 0x60]
call dword [eax + 0x24]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.0047e030
mov esi, 0x643
jmp 0x4cdbab
push 0x80004005
call fcn.004143a0
push 1
push 0xc000008c
call fcn.0040f790
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3