Function at 0x4cb14a
Capabilities:
Delete file

Disassembly:
mov eax, 0x672afc
call fcn.006313fc
sub esp, 0x84
push ebx
mov eax, ecx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x40], eax
lea ebp, [eax + 0x23c]
mov dword [esp + 0xc], ebx
push edi
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0041fe38
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x2c]
or ebx, 1
push eax
mov ecx, ebp
mov dword [esp + 0x14], ebx
call fcn.0041fe4c
cmp edi, dword [eax + 8]
je 0x4cb1c8
test esi, esi
jne 0x4cb1a4
xor eax, eax
jmp 0x4cb1a6
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.00638078
pop ecx
pop ecx
test eax, eax
je 0x4cb1c8
mov al, 1
jmp 0x4cb1ca
xor al, al
test bl, 1
je 0x4cb1d6
and ebx, 0xfffffffe
mov dword [esp + 0x10], ebx
test al, al
je 0x4cb1dd
inc edi
jmp 0x4cb184
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0041fe4c
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4cb209
mov ecx, dword [esp + 0xa8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.004249e7
jmp 0x4cb521
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0045ddbc
and dword [esp + 0x9c], 0
xor eax, eax
and dword [esp + 0x58], 0
push 7
pop ebp
mov dword [esp + 0x5c], ebp
mov word [esp + 0x48], ax
mov byte [esp + 0x9c], 1
test esi, esi
je 0x4cb240
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
cmp byte [esp + 0xb4], 0
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 8]
je 0x4cb279
test esi, esi
jne 0x4cb261
xor eax, eax
jmp 0x4cb263
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.00468509
mov edx, eax
test esi, esi
jne 0x4cb281
xor eax, eax
jmp 0x4cb283
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
cmp dword [esp + 0x28], 8
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x14]
jae 0x4cb29e
lea eax, [esp + 0x14]
push edx
push dword [ecx + 4]
push eax
call fcn.0046111c
test al, al
je 0x4cb4c3
push 0x64
call fcn.00630af1
pop ecx
mov dword [esp + 0x60], eax
mov byte [esp + 0x9c], 2
test eax, eax
je 0x4cb2d3
mov ecx, eax
call fcn.004ca7eb
mov esi, eax
jmp 0x4cb2d5
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [esp + 0x9c], 1
lea eax, [esp + 0x14]
cmp ecx, eax
je 0x4cb2f2
push 0xffffffffffffffff
push 0
push eax
call fcn.0042358a
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4cb301
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [esp + 0x44]
add eax, 0x324
push eax
call fcn.004f66ea
mov eax, dword [esp + 0xac]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x4c]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4cb32e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
and dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
mov word [esp + 0x2c], ax
mov ebp, dword [esp + 0xb8]
mov byte [esp + 0x9c], 3
test ebp, ebp
je 0x4cb37b
push ebp
lea eax, [esp + 0x68]
push eax
call fcn.0047a1e1
mov edi, eax
or ebx, 4
mov byte [esp + 0x9c], 4
cmp dword [edi + 0x14], 8
mov dword [esp + 0x10], ebx
jb 0x4cb37d
mov edi, dword [edi]
jmp 0x4cb37d
xor edi, edi
push dword [esp + 0xb0]
lea eax, [esp + 0x80]
push eax
call fcn.004cba91
cmp dword [eax + 0x14], 8
mov dword [esp + 0x9c], 5
jb 0x4cb3a4
mov eax, dword [eax]
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x4cb3b3
lea ecx, [esp + 0x14]
push eax
xor edx, edx
lea eax, [esp + 0x30]
push edx
push eax
test ebp, ebp
setne al
lea eax, [eax*2 + 1]
push eax
push edx
push edi
push edx
push esi
push 0x4d339d
push edx
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push ecx
call fcn.004f1166
push 0
push 1
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.0042341c
mov dword [esp + 0x9c], 3
test bl, 4
je 0x4cb416
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0042341c
test esi, esi
jne 0x4cb482
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4cb429
lea eax, [esp + 0x2c]
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x4cb438
lea ecx, [esp + 0x14]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.004790ad
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 8
jae 0x4cb456
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push str.Cant_add_torrent:__s
push eax
call fcn.0047224d
add esp, 0xc
lea ecx, [esp + 0x48]
push eax
call fcn.0044dbe6
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0042341c
jmp 0x4cb49e
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4cb491
lea eax, [esp + 0x14]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.004790ad
pop ecx
pop ecx
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4cb4ad
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.0042341c
jmp 0x4cb4f6
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4cb4d2
lea eax, [esp + 0x14]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.004790ad
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.004236bc
add esp, 0xc
lea ecx, [esp + 0x48]
push eax
push esi
call fcn.00434a57
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x48]
push eax
call fcn.00422ed9
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.0042341c
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0042341c
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14