Function at 0x486d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x529490
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x250]
mov ebp, dword [esp + 0x24c]
mov esi, dword [esp + 0x254]
mov eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 0
call fcn.0047dc20
lea eax, [esp + 0x104]
push eax
call fcn.00421190
mov ebx, 1
mov dword [esp + 0x244], ebx
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x486dcc
lea eax, [esp + 0x1cc]
mov ecx, str.magnet:
call fcn.0044c710
test al, al
je 0x486e35
lea ecx, [esp + 0x104]
push ecx
mov ecx, esi
lea edi, [esp + 0x1cc]
call fcn.004e7ec0
mov edx, dword [esi]
add esp, 4
neg edx
sbb edx, edx
test edx, fcn.004b2590
je 0x486e28
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov byte [esp + 0x244], al
lea eax, [esp + 0x104]
push eax
mov dword [esp + 0x2c], ebx
call fcn.00401880
mov eax, ebp
jmp 0x487867
lea ecx, [esp + 0x1c8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, dword [esp + 0x108]
xor ebx, ebx
cmp ecx, ebx
je 0x486e8f
cmp dword [ecx + 0x94], ebx
jle 0x486e8f
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x486e5b
mov edx, dword [ecx + 0x10]
sub edx, eax
sar edx, 5
jne 0x486e8f
mov esi, dword [esp + 0x20]
push 0x10
call fcn.0042e810
lea eax, [esp + 0x104]
mov dword [ebp], ebx
push eax
mov dword [ebp + 4], ebx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x248], bl
call fcn.00401880
mov eax, ebp
jmp 0x487867
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xbb8], bl
je 0x486efa
test byte [0x55daa8], 1
jne 0x486ec2
or dword [0x55daa8], 1
push 0x52ce60
mov dword [0x55daac], 0x52fbdc
call fcn.005150d5
add esp, 4
mov eax, 0x12
mov dword [esi], eax
mov ecx, 0x55daac
mov dword [esi + 4], ecx
lea eax, [esp + 0x104]
mov dword [ebp], ebx
push eax
mov dword [ebp + 4], ebx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x248], bl
call fcn.00401880
mov eax, ebp
jmp 0x487867
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
je 0x486f2e
add ecx, 0x140
jmp 0x486fcf
mov ecx, dword [esp + 0x1dc]
cmp ecx, ebx
je 0x486fc8
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x486f55
lea eax, [esp + 0x1cc]
push ecx
push eax
lea eax, [esp + 0x88]
call fcn.0044df60
xor edx, edx
mov ecx, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
call fcn.004a3d20
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xe4], eax
lea eax, [esp + 0xdc]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0x24], eax
jmp 0x486fd3
lea ecx, [esp + 0x130]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x54]
call fcn.00486c00
lea esi, [esp + 0x18]
mov edi, eax
call fcn.004af7a0
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x58]
test eax, eax
je 0x487014
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x487014
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x487099
cmp dword [esp + 0x1f8], esi
je 0x4871e6
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1e4]
lea edi, [esp + 0x34]
call fcn.00486c90
lea esi, [esp + 0x2c]
mov edi, eax
call fcn.004af7a0
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 4
call fcn.0040a3d0
mov eax, esi
mov byte [esp + 0x244], 3
call fcn.004e0b50
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x48708d
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x48708d
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4871e6
mov eax, dword [esp + 0x21c]
and eax, 0x80
xor ecx, ecx
or eax, ecx
jne 0x487198
cmp dword [esp + 0x1f8], eax
je 0x4870d4
cmp dword [esi + 0x3f0], eax
jne 0x4870d4
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esi + 0x3dc]
call dword [0x52e398]
cmp dword [esp + 0x1dc], 0
je 0x4870fb
cmp dword [esi + 0x3d4], 0
jne 0x4870fb
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esi + 0x3c0]
call dword [0x52e398]
cmp dword [esp + 0x214], 0
je 0x487122
cmp dword [esi + 0x40c], 0
jne 0x487122
lea edx, [esp + 0x200]
push edx
lea ecx, [esi + 0x3f8]
call dword [0x52e398]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x487136
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
test ecx, ecx
mov dword [ebp], esi
mov dword [ebp + 4], ecx
je 0x48714c
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
test ecx, ecx
mov ebx, 1
mov dword [esp + 0x28], ebx
je 0x48716c
lea eax, [ecx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x48716c
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea eax, [esp + 0x18]
mov byte [esp + 0x244], bl
call fcn.004e0b50
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x248], 0
call fcn.00401880
mov eax, ebp
jmp 0x487867
mov esi, dword [esp + 0x20]
push 0x13
call fcn.0042e810
mov eax, 1
mov dword [esp + 0x28], eax
mov byte [esp + 0x244], al
mov dword [ebp], 0
lea eax, [esp + 0x18]
mov dword [ebp + 4], 0
call fcn.004e0b50
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x248], 0
call fcn.00401880
mov eax, ebp
jmp 0x487867
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x9c4]
mov eax, dword [eax]
mov ebx, dword [ecx + 0x9c4]
xor ebp, ebp
add ecx, 0x9c0
mov esi, ecx
mov edi, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
test esi, esi
je 0x487218
cmp esi, ecx
je 0x48721e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x48725e
test esi, esi
jne 0x48722c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x487237
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x4e0]
cmp eax, ebp
jl 0x487247
lea ebp, [eax + 1]
lea esi, [esp + 0x34]
call fcn.0046dec0
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
jmp 0x487210
push 0x560
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x244], 5
je 0x48729b
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x104]
push ecx
push ebp
push ebx
lea ecx, [ebx + 0xa30]
push eax
call fcn.00452050
jmp 0x48729d
xor eax, eax
mov ecx, eax
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 2
call fcn.0048ca50
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.00453930
mov eax, dword [ebx + 0x11bc]
mov ebp, dword [eax]
lea edi, [ebx + 0x11b8]
mov edx, eax
mov dword [esp + 0x40], edx
nop
cmp edi, edi
je 0x4872da
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x40]
je 0x487393
cmp ebp, dword [edi + 4]
jne 0x4872ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1a4]
push eax
push esi
lea edx, [esp + 0x34]
lea ecx, [ebp + 8]
push edx
call fcn.0046bd10
mov byte [esp + 0x244], 6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x487342
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x3c], esp
je 0x48733b
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.00454f70
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x30]
test esi, esi
je 0x48737c
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x48737c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48737c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp ebp, dword [edi + 4]
jne 0x487387
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x18]
jmp 0x4872d0
mov eax, dword [ebx + 0x11c8]
mov ebp, dword [eax]
lea edi, [ebx + 0x11c4]
mov dword [esp + 0x40], eax
mov bl, 7
cmp edi, edi
je 0x4873b1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x40]
je 0x48746b
cmp ebp, dword [edi + 4]
jne 0x4873c6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1a4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push esi
lea eax, [esp + 0x34]
push eax
call edx
mov byte [esp + 0x244], bl
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x48741a
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x3c], esp
je 0x487413
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.00454f70
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x30]
test esi, esi
je 0x487454
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x487454
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x487454
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp ebp, dword [edi + 4]
jne 0x48745f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x18]
jmp 0x4873a7
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
sub esp, 8
test ebp, ebp
mov eax, esp
mov dword [eax], edi
mov dword [esp + 0x3c], esp
mov dword [eax + 4], ebp
je 0x487491
lea eax, [ebp + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
lea esi, [esp + 0x78]
mov dword [eax + 0x10], ecx
call fcn.0046fe90
add esp, 0x1c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xe0], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], eax
je 0x487517
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0x250], 9
call fcn.0046b130
mov byte [esp + 0x244], 8
mov esi, dword [esp + 0xf4]
test esi, esi
je 0x487573
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x487573
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x487573
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x74]
test esi, esi
je 0x4875ad
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4875ad
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4875ad
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x1f8], 0
jne 0x4875ce
cmp dword [esp + 0x1dc], 0
je 0x48769d
lea edx, [esp + 0x1c8]
jmp 0x4875d5
lea edx, [esp + 0x1e4]
sub esp, 8
test ebp, ebp
mov eax, esp
mov dword [eax], edi
mov dword [esp + 0x3c], esp
mov dword [eax + 4], ebp
je 0x4875f3
lea eax, [ebp + 4]
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x26c], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edi, [esp + 0x100]
mov byte [esp + 0x268], 2
call fcn.0046fda0
add esp, 0x24
mov esi, eax
push esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x248], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x78], edx
mov esi, dword [esi + 0x20]
test esi, esi
mov dword [esp + 0x7c], esi
je 0x487655
add esi, 4
mov eax, 1
lock xadd dword [esi], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
add edx, 0x9cc
push edx
lea ebx, [esp + 0x44]
mov byte [esp + 0x24c], 0xc
call fcn.0046b2b0
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x248], 0xb
call fcn.00405200
lea ecx, [esp + 0xdc]
push ecx
mov byte [esp + 0x248], 2
call fcn.00405200
mov esi, dword [esp + 0x14]
add esi, 0x380
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push edi
jb 0x4876c5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4877ab
mov ebx, dword [esi + 0x2c]
shr ebx, 6
and bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x4877ab
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.004644a0
mov ecx, dword [0x55dcc8]
mov edx, dword [0x55dccc]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xdc], vtable.libtorrent::torrent_alert.0
mov ecx, dword [eax]
mov dword [esp + 0xec], ecx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0xf0], eax
je 0x487732
add eax, 8
mov edx, 1
lock xadd dword [eax], edx
mov dword [esp + 0xdc], vtable.libtorrent::torrent_added_alert.0
lea eax, [esp + 0xdc]
push eax
push esi
mov byte [esp + 0x24c], 0xe
call fcn.004cd100
mov byte [esp + 0x244], 0xf
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x48777b
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x48777b
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0xdc], vtable.libtorrent::alert.0
je 0x4877ab
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4877ab
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esp + 0x21c]
and eax, 0x40
xor ecx, ecx
or eax, ecx
je 0x4877c9
mov eax, dword [esp + 0x14]
mov dword [eax + 0xbc8], 2
test ebp, ebp
je 0x4877d9
lea ecx, [ebp + 8]
mov edx, 1
lock xadd dword [ecx], edx
test ebp, ebp
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ebp
je 0x4877f6
lea ecx, [ebp + 8]
mov edx, 1
lock xadd dword [ecx], edx
test ebp, ebp
mov dword [esp + 0x28], 1
je 0x487818
lea eax, [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x487818
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
test ebp, ebp
mov byte [esp + 0x244], 1
je 0x487850
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x487850
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x487850
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x248], 0
call fcn.00401880
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00515015
add esp, 0x234
ret 0xc