Function at 0x4e7c2b
Capabilities:
Delete file

Disassembly:
mov eax, 0x6d8d57
call fcn.006899cc
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 0x4e7c90
test esi, esi
je 0x4e7c67
mov eax, dword [esi]
jmp 0x4e7c69
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.0069d697
pop ecx
pop ecx
test eax, eax
je 0x4e7c8a
inc edi
jmp 0x4e7c4d
mov ecx, dword [ebx + 0x274]
mov eax, dword [ebx + 0x270]
add eax, ecx
cmp edi, eax
jne 0x4e7cc5
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.004482e2
mov eax, esi
jmp 0x4e7fe3
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0046f6b4
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 0x4e7cf6
mov eax, dword [esi]
jmp 0x4e7cf8
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 0x4e7d2d
test esi, esi
je 0x4e7d15
mov eax, dword [esi]
jmp 0x4e7d17
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.0047d9aa
mov edx, eax
test esi, esi
je 0x4e7d35
mov eax, dword [esi]
jmp 0x4e7d37
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
cmp dword [ebp - 0x14], 8
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x28]
jb 0x4e7d52
mov eax, dword [ebp - 0x28]
push edx
push ecx
push eax
call fcn.0047369e
test al, al
je 0x4e7f5a
push 0x64
call fcn.0068973d
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4e7d80
mov ecx, eax
call fcn.004e72c0
mov esi, eax
jmp 0x4e7d82
xor esi, esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x1c]
call fcn.004480a2
cmp dword [esi + 0x48], 0x10
lea ecx, [esi + 0x34]
jb 0x4e7d9e
mov ecx, dword [esi + 0x34]
and dword [esi + 0x44], 0
lea eax, [ebx + 0x36c]
mov byte [ecx], 0
mov ecx, esi
push eax
call fcn.00511b76
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x18], eax
call fcn.0048796a
and dword [ebp - 0x40], 0
xor eax, eax
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push dword [ebp + 0x10]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
call fcn.004e85fd
mov edi, eax
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x4e7df7
mov edi, dword [edi]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
setne al
lea edx, [eax*2 + 1]
mov dword [ebp + 0x14], edx
test ecx, ecx
je 0x4e7e2e
push ecx
lea eax, [ebp - 0x70]
push eax
call fcn.0048fdc9
cmp dword [eax + 0x14], 8
push 2
pop ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], ebx
jb 0x4e7e29
mov eax, dword [eax]
mov edx, dword [ebp + 0x14]
jmp 0x4e7e33
mov ebx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4e7e3f
mov ecx, dword [ebp - 0x28]
push edi
push 0
lea edi, [ebp - 0x40]
push edi
push edx
xor edx, edx
push edx
push eax
push edx
push esi
push 0x4f02fd
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004e281a
mov dword [ebp - 4], 4
mov esi, eax
test bl, 2
je 0x4e7e75
lea ecx, [ebp - 0x70]
call fcn.0044823e
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0044823e
test esi, esi
jne 0x4e7ef1
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x4e7e94
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4e7ea0
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0048e961
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
jb 0x4e7ebb
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push str.Cant_add_torrent:__s
push eax
call fcn.00475719
lea ecx, [ebp - 0x58]
add esp, 0xc
cmp ecx, eax
je 0x4e7ee4
mov byte [ebp + 0x14], 0
push dword [ebp + 0x14]
push eax
call fcn.00448215
lea ecx, [ebp - 0x88]
call fcn.0044823e
jmp 0x4e7f0a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4e7efd
mov eax, dword [ebp - 0x28]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0048e961
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4e7f16
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4e7f80
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4e7f4f
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
jmp 0x4e7f80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4e7f66
mov eax, dword [ebp - 0x28]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.0048e961
pop ecx
pop ecx
push str.Unable_to_save_temp_file
lea ecx, [ebp - 0x58]
call fcn.004482e2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.00447f71
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4e7fc7
mov ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4e7fbe
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0044823e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14