Function at 0x4d410b
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a5e7b
call fcn.00640244
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.00424a38
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.00424a20
cmp edi, dword [eax + 8]
je 0x4d4183
test esi, esi
jne 0x4d415f
xor eax, eax
jmp 0x4d4161
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.00669dfe
pop ecx
pop ecx
test eax, eax
je 0x4d4183
mov al, 1
jmp 0x4d4185
xor al, al
and ebx, 0xfffffffe
test al, al
je 0x4d418f
inc edi
jmp 0x4d413d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ecx + 0x240]
call fcn.00424a20
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4d41c0
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.00429973
jmp 0x4d4478
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0046059a
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 0x4d41ec
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 0x4d4221
test esi, esi
jne 0x4d4209
xor eax, eax
jmp 0x4d420b
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.0046d05a
mov edx, eax
test esi, esi
jne 0x4d4229
xor eax, eax
jmp 0x4d422b
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 0x4d4243
lea eax, [ebp - 0x44]
push edx
push dword [ecx + 4]
push eax
call fcn.004636dd
test al, al
je 0x4d4425
push 0x64
call fcn.0063ffa4
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4d4273
mov ecx, eax
call fcn.004d368a
mov esi, eax
jmp 0x4d4275
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4d428d
push 0xffffffffffffffff
push 0
push eax
call fcn.0042835e
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4d429c
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 0x340
push eax
call fcn.004fc0e5
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 0x4d42c4
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 0x4d4307
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0047dfcb
mov edi, eax
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4d4309
mov edi, dword [edi]
jmp 0x4d4309
xor edi, edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004d49bb
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4d4324
mov eax, dword [eax]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d4330
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 0x4dbb45
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004cec6a
push 0
push 1
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004281f2
mov dword [ebp - 4], 3
test bl, 4
je 0x4d4385
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004281f2
test esi, esi
jne 0x4d43eb
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d4395
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d43a1
lea ecx, [ebp - 0x44]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0047cc80
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x4d43bc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_add_torrent:__s
push eax
call fcn.004654e1
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004281f2
jmp 0x4d4404
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d43f7
lea eax, [ebp - 0x44]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0047cc80
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d4410
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004281f2
jmp 0x4d4454
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d4431
lea eax, [ebp - 0x44]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.0047cc80
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.00428460
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.00438cfb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.00427b6c
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004281f2
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