Function at 0x4c8ca0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x40
push 0xffffffffffffffff
push 0x560930
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5cf024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x2c], esi
lea eax, [esi + 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [esi + 0x20]
mov ecx, eax
mov dword [ebp + 0x24], eax
call fcn.004b6d60
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], 0
call fcn.0047e930
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x4c8cfe
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 + 0x20], eax
test eax, eax
jle 0x4c8dab
xor ebx, ebx
push edi
mov ecx, esi
call fcn.004c8ab0
cmp eax, 2
jne 0x4c8d9e
mov eax, dword [esi + 0x10]
test ebx, ebx
js 0x4c95bd
cmp edi, dword [eax + 8]
jge 0x4c95bd
mov eax, dword [eax + 4]
add eax, ebx
mov dword [ebp + 0x38], eax
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x1c], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x38]
lea eax, [ecx + 0x2c]
push eax
push ecx
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ecx + 0x28]
lea eax, [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004b66d0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c8d9b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x2c]
inc edi
add ebx, 0x74
cmp edi, dword [ebp + 0x20]
jl 0x4c8d16
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x30], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x4c8e58
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 0x38]
push 1
push eax
call fcn.0049ab60
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov esi, dword [ebp + 0x30]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4c8e36
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4c8e2a
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4c8e2a
call fcn.00408ad0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4c8e22
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp + 0x30], eax
jmp 0x4c8e36
push dword [edx - 0xc]
lea ecx, [ebp + 0x30]
push edx
call fcn.00408e30
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c8e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x24]
mov edi, dword [ebx + 4]
mov dword [ebp + 0x14], edi
test ecx, ecx
je 0x4c8e70
mov eax, dword [ecx]
push 0
push edi
call dword [eax + 4]
mov ecx, dword [ebp + 0x48]
xor esi, esi
mov dword [ebp + 0x34], esi
test edi, edi
jle 0x4c9407
mov edi, dword [ebp + 0x2c]
xor eax, eax
mov dword [ebp + 0x28], eax
test eax, eax
js 0x4c95bd
cmp esi, dword [ebx + 4]
jge 0x4c95bd
mov ebx, dword [ebx]
add ebx, eax
test ecx, ecx
je 0x4c8f6d
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x4c93a4
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x4c95bd
cmp eax, dword [ecx + 8]
jge 0x4c95bd
imul esi, eax, 0x74
add esi, dword [ecx + 4]
mov edi, dword [esi]
cmp dword [edi - 4], 1
jle 0x4c8f00
push dword [edi - 0xc]
mov ecx, esi
call fcn.00408c30
mov edi, dword [esi]
mov eax, dword [ebp + 0x30]
cmp dword [eax - 4], 1
jle 0x4c8f17
push dword [eax - 0xc]
lea ecx, [ebp + 0x30]
call fcn.00408c30
mov eax, dword [ebp + 0x30]
push edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00408670
mov eax, dword [ebp + 0x48]
add esp, 0xc
mov esi, dword [ebp + 0x18]
mov eax, dword [eax]
cmp dword [esi - 4], 1
mov edi, dword [eax + 0x28]
jle 0x4c8f44
push dword [esi - 0xc]
lea ecx, [ebp + 0x18]
call fcn.00408c30
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x48]
push 0
push 9
push esi
call edi
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c8f6a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x34]
cmp byte [0x5d5588], 0
je 0x4c9124
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0x24]
push 0x15
push str.Starting_download_of:
call fcn.00418fe0
mov edi, dword [ebp + 0x2c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x4c95bd
cmp eax, dword [ecx + 8]
jge 0x4c95bd
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax]
test edx, edx
je 0x4c8feb
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8fd2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x24]
call fcn.00418fe0
lea eax, [ebp + 0x24]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
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 0x4c9018
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x34]
push esi
lea ecx, [edi + 0x1c]
call fcn.004b68a0
cmp esi, dword [edi + 0x24]
jge 0x4c95bd
mov eax, dword [edi + 0x20]
mov edx, dword [ebp + 0x28]
cmp dword [eax + edx + 0x10], 0
jne 0x4c925b
cmp byte [0x5d5588], 0
je 0x4c90a1
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x1c]
push 0x1f
push str.Download_completed_succesfully.
call fcn.00418fe0
lea eax, [ebp + 0x1c]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c90a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x18]
push eax
push ebx
lea edx, [edi + 0x1c]
lea ecx, [ebp + 0x3c]
call fcn.004b6a60
add esp, 8
mov byte [ebp - 4], 0x19
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x38]
cmp eax, 2
je 0x4c90d4
cmp eax, 5
je 0x4c90d4
lea eax, [ebp + 0x3c]
lea ecx, [edi + 0x40]
push eax
call fcn.0048e870
cmp dword [ebx + 4], 0
je 0x4c9163
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0x57cb58
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 0x1a
cmp esi, 0xffffffff
jne 0x4c912c
mov byte [ebp - 4], 0x19
push eax
mov dword [ebp + 8], 0x57cb58
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4c914d
mov edi, dword [ebp + 0x2c]
jmp 0x4c901b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov byte [ebp - 4], 0x19
mov dword [ebp + 8], 0x57cb58
test esi, esi
je 0x4c9154
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0xc], 0
cmp dword [ebx + 4], edi
jne 0x4c9442
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x34]
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x4c95bd
cmp eax, dword [ecx + 8]
jge 0x4c95bd
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x4c919e
mov ecx, dword [ebp + 0x3c]
push 0
call fcn.004c7e30
add esp, 4
test al, al
je 0x4c9442
cmp byte [0x5d5588], 0
je 0x4c9201
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x38], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x38]
push 0x1d
push str.Downloaded_file_was_accepted.
call fcn.00418fe0
lea eax, [ebp + 0x38]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov edx, dword [ebp + 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c9201
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ebx, [edi + 0x20]
mov ecx, dword [edi + 0x10]
cmp esi, dword [ebx + 4]
jge 0x4c95bd
mov eax, dword [ebx]
add eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x4c95bd
cmp eax, dword [ecx + 8]
jge 0x4c95bd
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 + 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c938a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c938a
cmp byte [0x5d5588], 0
je 0x4c931f
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 0x2d
lea ecx, [ebp + 0x20]
push 0x17
push 0x58f2b4
call fcn.00418fe0
mov edx, dword [edi + 0x3c]
push ecx
lea ecx, [ebp + 4]
call fcn.004956e0
add esp, 4
mov byte [ebp - 4], 0x2e
mov edx, dword [eax]
test edx, edx
je 0x4c92cf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c92b3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x20]
call fcn.00418fe0
mov esi, dword [ebp + 0x34]
lea eax, [ebp + 0x20]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov byte [ebp - 4], 0x2d
or ebx, 0xffffffff
mov edx, dword [ebp + 4]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c92fe
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 + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c931c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x28]
lea ebx, [edi + 0x20]
mov ecx, dword [edi + 0x10]
cmp esi, dword [ebx + 4]
jge 0x4c95bd
mov eax, dword [ebx]
mov eax, dword [eax + edx + 0x14]
test eax, eax
js 0x4c95bd
cmp eax, dword [ecx + 8]
jge 0x4c95bd
imul eax, eax, 0x74
add eax, dword [ecx + 4]
lea ecx, [ebp - 0x60]
push eax
call fcn.0049b150
mov byte [ebp - 4], 0x32
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
jl 0x4c937e
push 0x5837d4
push eax
call fcn.0051f31f
add esp, 8
test eax, eax
je 0x4c937e
sub eax, dword [ebp - 0x40]
sar eax, 1
jns 0x4c9587
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.0047e2b0
mov eax, dword [ebp + 0x28]
inc esi
add eax, 0x1c
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x28], eax
cmp esi, dword [ebp + 0x14]
jge 0x4c9407
mov ecx, dword [ebp + 0x48]
jmp 0x4c8e85
cmp byte [0x5d5588], 0
je 0x4c9407
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x48]
push 0x16
push str.Download_was_canceled.
call fcn.00418fe0
lea eax, [ebp + 0x48]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c9407
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4c942b
mov ecx, dword [eax]
push eax
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 + 0x40]
pop ebp
ret 4
mov eax, dword [ebp + 0x3c]
cmp dword [eax - 4], 1
jle 0x4c9459
push dword [eax - 0xc]
lea ecx, [ebp + 0x3c]
call fcn.00408c30
mov eax, dword [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 0x3c]
call fcn.0051f59b
add esp, 8
test eax, eax
jne 0x4c9476
or eax, 0xffffffff
jmp 0x4c947b
sub eax, dword [ebp + 0x3c]
sar eax, 1
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0040d130
mov byte [ebp - 4], 0x20
mov ecx, eax
mov edx, dword [ebp + 0x10]
call fcn.00491c30
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp + 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c94b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5d5588], 0
je 0x4c9519
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4c95b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x38], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp + 0x38]
push 0x33
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.00418fe0
lea eax, [ebp + 0x38]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c9519
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x48]
test ebx, ebx
je 0x4c955f
mov eax, dword [ebx]
lea edx, [ebp + 0x3c]
lea ecx, [ebp + 0x48]
mov esi, dword [eax + 0x24]
call fcn.00491450
mov byte [ebp - 4], 0x27
mov ecx, ebx
push 0
push 0xe0000022
push dword [eax]
call esi
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c955f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp + 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c957d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0x643
jmp 0x4c940c
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x4c959d
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.0047e2b0
mov esi, 0x643
jmp 0x4c9409
push 0x80004005
call fcn.00408f80
push 1
push 0xc000008c
call fcn.00411100
int3