Function at 0x415120
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x487e31
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ab13c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.0040cff0
mov eax, dword [esp + 0xd0]
push eax
push str.uiTaskID:
push 0x491ec0
lea ecx, [esp + 0x4c]
push str.CDownloadDispatcher::RemoveTorrent
push ecx
mov dword [esp + 0xdc], 0
call fcn.0040ccb0
add esp, 8
push eax
call fcn.0040ccb0
add esp, 8
push eax
call fcn.0040ccb0
add esp, 8
mov ecx, eax
call fcn.0040f030
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040cec0
mov ecx, esi
call fcn.0040cb30
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.0040c680
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x4151d3
mov eax, dword [eax + 4]
jmp 0x4151d6
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x3c], esi
jb 0x4151f0
mov eax, dword [esp + 0x28]
push eax
call fcn.00451909
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0xc8], 0xffffffff
call fcn.00407ad0
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], 0x491650
call fcn.0047623c
mov ecx, dword [edi + 0x6c]
add esp, 4
test ecx, ecx
je 0x415232
mov edx, dword [edi + 8]
push edx
call fcn.00405590
lea ebp, [edi + 0x3c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x18], 0
call fcn.00410380
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x20]
lea esi, [edi + 0x30]
push ecx
mov ecx, esi
call fcn.004101c0
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebx, dword [esi + 4]
je 0x41526d
cmp eax, esi
je 0x415272
call fcn.0045c182
cmp dword [esp + 0x20], ebx
jne 0x4152e4
cmp byte [esp + 0x18], 0
mov dword [esp + 0xc8], 0xffffffff
je 0x4153c4
mov eax, dword [esp + 0x14]
add dword [eax], 0xffffffff
jne 0x4153c4
xor edx, edx
lea ecx, [eax + 4]
xchg dword [ecx], edx
lea ecx, [eax + 8]
mov eax, SysReAllocString
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x4153c4
cmp eax, 0x80000000
jle 0x4153c4
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x4153c4
call fcn.0040bb70
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4153c4
or ebx, 0xffffffff
cmp byte [esp + 0x18], 0
mov dword [esp + 0xc8], ebx
je 0x415335
mov eax, dword [esp + 0x14]
add dword [eax], ebx
jne 0x415335
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
lea ecx, [eax + 8]
mov eax, SysReAllocString
mov edx, ecx
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x415335
cmp eax, 0x80000000
jle 0x415335
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x415335
call fcn.0040bb70
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 8], 0
je 0x4153c4
mov edi, dword [edi + 8]
mov edx, dword [esp + 0xd0]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xa4]
push edx
push edi
call eax
test eax, eax
jl 0x4153c4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x18], 0
call fcn.00410380
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0xd0], 2
call fcn.004101c0
mov edi, dword [esp + 0x1c]
test edi, edi
mov ebp, dword [esi + 4]
je 0x415399
cmp edi, esi
je 0x41539e
call fcn.0045c182
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4153b4
push eax
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004133a0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc8], ebx
call fcn.00410330
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 8