Function at 0x4cc9b6
Capabilities:
Delete file

Disassembly:
mov eax, 0x67756b
call fcn.0062921c
sub esp, 0x80
push ebx
mov eax, ecx
xor ebx, ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [eax + 0x240]
mov dword [ebp - 0x14], ebx
call fcn.004200b1
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
or ebx, 1
lea ecx, [ecx + 0x240]
call fcn.00420099
cmp edi, dword [eax + 8]
je 0x4cca2e
test esi, esi
jne 0x4cca0a
xor eax, eax
jmp 0x4cca0c
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
push str.torrent_file
mov eax, dword [eax + ecx*4]
push dword [eax]
call fcn.0063cd3b
pop ecx
pop ecx
test eax, eax
je 0x4cca2e
mov al, 1
jmp 0x4cca30
xor al, al
and ebx, 0xfffffffe
test al, al
je 0x4cca3a
inc edi
jmp 0x4cc9e8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ecx + 0x240]
call fcn.00420099
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4cca6b
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.00424ff1
jmp 0x4ccd23
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0045b92c
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 1
test esi, esi
je 0x4cca97
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
cmp byte [ebp + 0x14], 0
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 8]
je 0x4ccacc
test esi, esi
jne 0x4ccab4
xor eax, eax
jmp 0x4ccab6
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
push dword [eax + 4]
call fcn.00467ab7
mov edx, eax
test esi, esi
jne 0x4ccad4
xor eax, eax
jmp 0x4ccad6
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
cmp dword [ebp - 0x30], 8
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x44]
jae 0x4ccaee
lea eax, [ebp - 0x44]
push edx
push dword [ecx + 4]
push eax
call fcn.0045e9f0
test al, al
je 0x4cccd0
push 0x64
call fcn.006291e1
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4ccb1e
mov ecx, eax
call fcn.004cbf7e
mov esi, eax
jmp 0x4ccb20
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4ccb38
push 0xffffffffffffffff
push 0
push eax
call fcn.004239d7
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4ccb47
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 0x340
push eax
call fcn.004f40b4
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x4c]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4ccb6f
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
and dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
cmp dword [ebp + 0x18], eax
je 0x4ccbb2
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.004785a1
mov edi, eax
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4ccbb4
mov edi, dword [edi]
jmp 0x4ccbb4
xor edi, edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004cd266
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4ccbcf
mov eax, dword [eax]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4ccbdb
lea ecx, [ebp - 0x44]
push eax
xor edx, edx
lea eax, [ebp - 0x2c]
cmp dword [ebp + 0x18], edx
push edx
push eax
setne al
lea eax, [eax*2 + 1]
push eax
push edx
push edi
push edx
push esi
push 0x4d43f0
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004c7237
push 0
push 1
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0042386b
mov dword [ebp - 4], 3
test bl, 4
je 0x4ccc30
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.0042386b
test esi, esi
jne 0x4ccc96
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4ccc40
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4ccc4c
lea ecx, [ebp - 0x44]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.00477256
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x4ccc67
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_add_torrent:__s
push eax
call fcn.004607f4
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.004232e6
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.0042386b
jmp 0x4cccaf
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4ccca2
lea eax, [ebp - 0x44]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.00477256
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4cccbb
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042386b
jmp 0x4cccff
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4cccdc
lea eax, [ebp - 0x44]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.00477256
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.00423ad9
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.004340c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.004231e5
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14