Function at 0x4c8385
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b0834
call fcn.00664608
sub esp, 0x7c
and dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x270]
mov esi, dword [ebx + 0x264]
mov eax, dword [ebx + 0x270]
mov ecx, dword [ebx + 0x274]
add eax, ecx
cmp edi, eax
je 0x4c83ea
test esi, esi
je 0x4c83c1
mov eax, dword [esi]
jmp 0x4c83c3
xor eax, eax
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.0067807b
pop ecx
pop ecx
test eax, eax
je 0x4c83e4
inc edi
jmp 0x4c83a7
mov ecx, dword [ebx + 0x274]
mov eax, dword [ebx + 0x270]
add eax, ecx
cmp edi, eax
jne 0x4c841f
mov esi, dword [ebp + 8]
xor eax, eax
push str.Error___torrent_file_content_not_supplied_in_form_parameter
mov ecx, esi
and dword [esi], 0
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00427ba3
mov eax, esi
jmp 0x4c8749
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004518bd
xor ecx, ecx
mov dword [ebp - 0x44], 7
xor eax, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
test esi, esi
je 0x4c8450
mov eax, dword [esi]
jmp 0x4c8452
mov eax, ecx
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 0x4c8487
test esi, esi
je 0x4c846f
mov eax, dword [esi]
jmp 0x4c8471
xor eax, eax
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.0045f86c
mov edx, eax
test esi, esi
je 0x4c848f
mov eax, dword [esi]
jmp 0x4c8491
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
push 8
pop edi
mov ecx, dword [eax + ecx*4]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c84ab
mov eax, dword [ebp - 0x28]
push edx
push dword [ecx + 4]
push eax
call fcn.00455877
test al, al
je 0x4c86c1
push 0x64
call fcn.00664379
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4c84db
mov ecx, eax
call fcn.004c7a04
mov esi, eax
jmp 0x4c84dd
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4c84fc
cmp dword [ebp - 0x14], edi
jb 0x4c84f3
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.00427bc8
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4c850b
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
lea eax, [ebx + 0x36c]
push eax
call fcn.004f008a
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x4c]
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], edi
jb 0x4c8531
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ebx, dword [ebp + 0x18]
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4c8578
push ebx
lea eax, [ebp - 0x88]
push eax
call fcn.00471937
mov edi, eax
mov dword [ebp - 0x10], 2
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x4c857a
mov edi, dword [edi]
jmp 0x4c857a
mov edi, edx
push dword [ebp + 0x10]
lea eax, [ebp - 0x70]
push eax
call fcn.004c8d73
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4c8595
mov eax, dword [eax]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4c85a1
mov ecx, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
test ebx, ebx
push eax
setne al
xor ebx, ebx
lea eax, [eax*2 + 1]
push eax
push ebx
push edi
push ebx
push esi
push 0x4d04fc
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004c2f77
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00427afc
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 3
je 0x4c85ef
lea ecx, [ebp - 0x88]
call fcn.00427afc
push 8
pop edi
test esi, esi
jne 0x4c865b
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jb 0x4c8601
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c860c
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.004704f0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jb 0x4c8626
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push str.Cant_add_torrent:__s
push eax
call fcn.004577f2
lea ecx, [ebp - 0x58]
add esp, 0xc
cmp ecx, eax
je 0x4c864e
mov byte [ebp + 0x14], bl
push dword [ebp + 0x14]
push eax
call fcn.00427ad3
lea ecx, [ebp - 0x88]
call fcn.00427afc
jmp 0x4c8673
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c8666
mov eax, dword [ebp - 0x28]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.004704f0
pop ecx
pop ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c867e
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jb 0x4c86e8
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4c86b6
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x4c86e8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4c86cc
mov eax, dword [ebp - 0x28]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.004704f0
pop ecx
pop ecx
push str.Unable_to_save_temp_file
lea ecx, [ebp - 0x58]
call fcn.00427ba3
xor ebx, ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004277f3
mov eax, dword [ebp - 0x44]
cmp eax, edi
jb 0x4c872e
mov ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4c8725
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00427afc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14