Function at 0x4d0d2e
Capabilities:
Delete file

Disassembly:
mov eax, 0x6b47e6
call fcn.00651da4
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.00424fd8
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.00424fc0
cmp edi, dword [eax + 8]
je 0x4d0da6
test esi, esi
jne 0x4d0d82
xor eax, eax
jmp 0x4d0d84
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.0067b962
pop ecx
pop ecx
test eax, eax
je 0x4d0da6
mov al, 1
jmp 0x4d0da8
xor al, al
and ebx, 0xfffffffe
test al, al
je 0x4d0db2
inc edi
jmp 0x4d0d60
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
lea ecx, [ecx + 0x240]
call fcn.00424fc0
cmp edi, dword [eax + 8]
sete al
test al, al
je 0x4d0de3
mov ecx, dword [ebp + 8]
push str.Error___torrent_file_content_not_supplied_in_form_parameter
call fcn.00428153
jmp 0x4d109b
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0045c940
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 0x4d0e0f
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 0x4d0e44
test esi, esi
jne 0x4d0e2c
xor eax, eax
jmp 0x4d0e2e
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.00469cbb
mov edx, eax
test esi, esi
jne 0x4d0e4c
xor eax, eax
jmp 0x4d0e4e
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 0x4d0e66
lea eax, [ebp - 0x44]
push edx
push dword [ecx + 4]
push eax
call fcn.004601c3
test al, al
je 0x4d1048
push 0x64
call fcn.00651ae6
pop ecx
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4d0e96
mov ecx, eax
call fcn.004d032d
mov esi, eax
jmp 0x4d0e98
xor esi, esi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4d0eb0
push 0xffffffffffffffff
push 0
push eax
call fcn.00428657
lea eax, [esi + 0x34]
and dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x4d0ebf
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 0x340
push eax
call fcn.004f8bcf
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 0x4d0ee7
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 0x4d0f2a
push dword [ebp + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0047aca8
mov edi, eax
or ebx, 4
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], ebx
jb 0x4d0f2c
mov edi, dword [edi]
jmp 0x4d0f2c
xor edi, edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004d15de
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x4d0f47
mov eax, dword [eax]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d0f53
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 0x4d8727
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.004cb98a
push 0
push 1
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004284eb
mov dword [ebp - 4], 3
test bl, 4
je 0x4d0fa8
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004284eb
test esi, esi
jne 0x4d100e
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d0fb8
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x4d0fc4
lea ecx, [ebp - 0x44]
push eax
push ecx
push str.uT_HTTP_cant_add_torrent__s:__s
call fcn.0047995d
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
jae 0x4d0fdf
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_add_torrent:__s
push eax
call fcn.00462014
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.004281d1
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.004284eb
jmp 0x4d1027
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d101a
lea eax, [ebp - 0x44]
push eax
push str.uT_HTTP_torrent_add_of__s_succeeded
call fcn.0047995d
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d1033
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004284eb
jmp 0x4d1077
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4d1054
lea eax, [ebp - 0x44]
push eax
push str.Cant_save_temporary_torrent_file__s
call fcn.0047995d
mov esi, str.Unable_to_save_temp_file
push esi
call fcn.004287c6
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.004286de
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.0042810c
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.004284eb
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004284eb
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