Function at 0x4d5210
Capabilities:
Delete file

Disassembly:
mov eax, 0x6ba2a7
call fcn.0066bd6c
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 0x4d5275
test esi, esi
je 0x4d524c
mov eax, dword [esi]
jmp 0x4d524e
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.0067fb68
pop ecx
pop ecx
test eax, eax
je 0x4d526f
inc edi
jmp 0x4d5232
mov ecx, dword [ebx + 0x274]
mov eax, dword [ebx + 0x270]
add eax, ecx
cmp edi, eax
jne 0x4d52aa
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.00427613
mov eax, esi
jmp 0x4d55d4
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0045e7b8
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 0x4d52db
mov eax, dword [esi]
jmp 0x4d52dd
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 0x4d5312
test esi, esi
je 0x4d52fa
mov eax, dword [esi]
jmp 0x4d52fc
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.0046c74b
mov edx, eax
test esi, esi
je 0x4d531a
mov eax, dword [esi]
jmp 0x4d531c
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
push 8
pop edi
mov ecx, dword [eax + ecx*4]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4d5336
mov eax, dword [ebp - 0x28]
push edx
push dword [ecx + 4]
push eax
call fcn.00462756
test al, al
je 0x4d554c
push 0x64
call fcn.0066bada
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4d5366
mov ecx, eax
call fcn.004d48b3
mov esi, eax
jmp 0x4d5368
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4d5387
cmp dword [ebp - 0x14], edi
jb 0x4d537e
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.00427638
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4d5396
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
lea eax, [ebx + 0x36c]
push eax
call fcn.004fceb6
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x4c]
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], edi
jb 0x4d53bc
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ebx, dword [ebp + 0x18]
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4d5403
push ebx
lea eax, [ebp - 0x88]
push eax
call fcn.0047e836
mov edi, eax
mov dword [ebp - 0x10], 2
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x4d5405
mov edi, dword [edi]
jmp 0x4d5405
mov edi, edx
push dword [ebp + 0x10]
lea eax, [ebp - 0x70]
push eax
call fcn.004d5bfe
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4d5420
mov eax, dword [eax]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4d542c
mov ecx, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
test ebx, ebx
push eax
setne al
xor ebx, ebx
lea eax, [eax*2 + 1]
push eax
push ebx
push edi
push ebx
push esi
push 0x4dd387
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004cfe26
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0042756c
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 3
je 0x4d547a
lea ecx, [ebp - 0x88]
call fcn.0042756c
push 8
pop edi
test esi, esi
jne 0x4d54e6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jb 0x4d548c
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4d5497
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0047d3ef
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jb 0x4d54b1
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push str.Cant_add_torrent:__s
push eax
call fcn.004646d1
lea ecx, [ebp - 0x58]
add esp, 0xc
cmp ecx, eax
je 0x4d54d9
mov byte [ebp + 0x14], bl
push dword [ebp + 0x14]
push eax
call fcn.00427543
lea ecx, [ebp - 0x88]
call fcn.0042756c
jmp 0x4d54fe
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4d54f1
mov eax, dword [ebp - 0x28]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0047d3ef
pop ecx
pop ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4d5509
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jb 0x4d5573
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4d5541
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
jmp 0x4d5573
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4d5557
mov eax, dword [ebp - 0x28]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.0047d3ef
pop ecx
pop ecx
push str.Unable_to_save_temp_file
lea ecx, [ebp - 0x58]
call fcn.00427613
xor ebx, ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.00427263
mov eax, dword [ebp - 0x44]
cmp eax, edi
jb 0x4d55b9
mov ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
cmp eax, 0x1000
jb 0x4d55b0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x48], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0042756c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14