Function at 0x4d1156
Capabilities:
Delete file

Disassembly:
mov eax, 0x69ce43
call fcn.006375a8
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.00423008
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.00422ff0
cmp edi, dword [eax + 8]
je 0x4d11ce
test esi, esi
jne 0x4d11aa
xor eax, eax
jmp 0x4d11ac
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.00661182
pop ecx
pop ecx
test eax, eax
je 0x4d11ce
mov al, 1
jmp 0x4d11d0
xor al, al
and ebx, 0xfffffffe
test al, al
je 0x4d11da
inc edi
jmp 0x4d1188
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ecx + 0x240]
call fcn.00422ff0
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4d120b
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.00427f43
jmp 0x4d14c3
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0045ea02
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 0x4d1237
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 0x4d126c
test esi, esi
jne 0x4d1254
xor eax, eax
jmp 0x4d1256
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.0046ad9e
mov edx, eax
test esi, esi
jne 0x4d1274
xor eax, eax
jmp 0x4d1276
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 0x4d128e
lea eax, [ebp - 0x44]
push edx
push dword [ecx + 4]
push eax
call fcn.00461ae3
test al, al
je 0x4d1470
push 0x64
call fcn.00637305
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4d12be
mov ecx, eax
call fcn.004d06d8
mov esi, eax
jmp 0x4d12c0
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4d12d8
push 0xffffffffffffffff
push 0
push eax
call fcn.0042692e
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4d12e7
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 0x340
push eax
call fcn.004f8c1d
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 0x4d130f
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 0x4d1352
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0047af87
mov edi, eax
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4d1354
mov edi, dword [edi]
jmp 0x4d1354
xor edi, edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004d1a06
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4d136f
mov eax, dword [eax]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d137b
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 0x4d8b64
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004cba39
push 0
push 1
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004267c2
mov dword [ebp - 4], 3
test bl, 4
je 0x4d13d0
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004267c2
test esi, esi
jne 0x4d1436
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d13e0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d13ec
lea ecx, [ebp - 0x44]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.00479c3c
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x4d1407
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_add_torrent:__s
push eax
call fcn.004638e7
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.0042623d
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004267c2
jmp 0x4d144f
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d1442
lea eax, [ebp - 0x44]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.00479c3c
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d145b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004267c2
jmp 0x4d149f
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d147c
lea eax, [ebp - 0x44]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.00479c3c
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.00426a30
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.004372ba
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.0042613c
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004267c2
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004267c2
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