Function at 0x4d49b1
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a8158
call fcn.006426c4
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.00424e68
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.00424e50
cmp edi, dword [eax + 8]
je 0x4d4a29
test esi, esi
jne 0x4d4a05
xor eax, eax
jmp 0x4d4a07
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.0066c2d3
pop ecx
pop ecx
test eax, eax
je 0x4d4a29
mov al, 1
jmp 0x4d4a2b
xor al, al
and ebx, 0xfffffffe
test al, al
je 0x4d4a35
inc edi
jmp 0x4d49e3
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ecx + 0x240]
call fcn.00424e50
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4d4a66
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.00429d77
jmp 0x4d4d1e
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00460dc6
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 0x4d4a92
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 0x4d4ac7
test esi, esi
jne 0x4d4aaf
xor eax, eax
jmp 0x4d4ab1
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.0046d9a2
mov edx, eax
test esi, esi
jne 0x4d4acf
xor eax, eax
jmp 0x4d4ad1
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 0x4d4ae9
lea eax, [ebp - 0x44]
push edx
push dword [ecx + 4]
push eax
call fcn.00463f7b
test al, al
je 0x4d4ccb
push 0x64
call fcn.00642424
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4d4b19
mov ecx, eax
call fcn.004d3f30
mov esi, eax
jmp 0x4d4b1b
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4d4b33
push 0xffffffffffffffff
push 0
push eax
call fcn.00428762
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4d4b42
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 0x340
push eax
call fcn.004fc879
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 0x4d4b6a
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 0x4d4bad
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0047e93b
mov edi, eax
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4d4baf
mov edi, dword [edi]
jmp 0x4d4baf
xor edi, edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004d5261
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4d4bca
mov eax, dword [eax]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d4bd6
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 0x4dc3f3
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004cf604
push 0
push 1
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004285f6
mov dword [ebp - 4], 3
test bl, 4
je 0x4d4c2b
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004285f6
test esi, esi
jne 0x4d4c91
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d4c3b
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d4c47
lea ecx, [ebp - 0x44]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0047d5f0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x4d4c62
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_add_torrent:__s
push eax
call fcn.00465d7f
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00428071
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004285f6
jmp 0x4d4caa
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d4c9d
lea eax, [ebp - 0x44]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0047d5f0
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d4cb6
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004285f6
jmp 0x4d4cfa
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d4cd7
lea eax, [ebp - 0x44]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.0047d5f0
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.00428864
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.00439135
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.00427f9c
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004285f6
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004285f6
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