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

Disassembly:
push 0xffffffffffffffff
push 0x10122aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
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.1008eb10
lea eax, [esp + 0x104]
push eax
call fcn.1005f940
mov ebx, 1
mov dword [esp + 0x244], ebx
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x1009791c
lea eax, [esp + 0x1cc]
mov ecx, str.magnet:
call fcn.10039b40
test al, al
je 0x10097985
lea ecx, [esp + 0x104]
push ecx
mov ecx, esi
lea edi, [esp + 0x1cc]
call fcn.1005fb30
mov edx, dword [esi]
add esp, 4
neg edx
sbb edx, edx
test edx, fcn.1009bff0
je 0x10097978
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.10001e40
mov eax, ebp
jmp 0x100983b8
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 0x100979df
cmp dword [ecx + 0x94], ebx
jle 0x100979df
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x100979ab
mov edx, dword [ecx + 0x10]
sub edx, eax
sar edx, 5
jne 0x100979df
mov esi, dword [esp + 0x20]
push 0x10
call fcn.10034120
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.10001e40
mov eax, ebp
jmp 0x100983b8
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xba0], bl
je 0x10097a4a
test byte [0x10154fc8], 1
jne 0x10097a12
or dword [0x10154fc8], 1
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov eax, 0x12
mov dword [esi], eax
mov ecx, 0x10154fcc
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.10001e40
mov eax, ebp
jmp 0x100983b8
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 0x10097a7e
add ecx, 0x140
jmp 0x10097b1f
mov ecx, dword [esp + 0x1dc]
cmp ecx, ebx
je 0x10097b18
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x10097aa5
lea eax, [esp + 0x1cc]
push ecx
push eax
lea eax, [esp + 0x88]
call fcn.10027230
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.100a6930
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 0x10097b23
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.10097430
lea esi, [esp + 0x18]
mov edi, eax
call fcn.10007b70
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10097b64
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10097b64
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10097be9
cmp dword [esp + 0x1f8], esi
je 0x10097d36
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1e4]
lea edi, [esp + 0x34]
call fcn.100974c0
lea esi, [esp + 0x2c]
mov edi, eax
call fcn.10007b70
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 4
call fcn.10030600
mov eax, esi
mov byte [esp + 0x244], 3
call fcn.10086b50
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10097bdd
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10097bdd
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10097d36
mov eax, dword [esp + 0x21c]
and eax, 0x80
xor ecx, ecx
or eax, ecx
jne 0x10097ce8
cmp dword [esp + 0x1f8], eax
je 0x10097c24
cmp dword [esi + 0x3d4], eax
jne 0x10097c24
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esi + 0x3c0]
call dword [0x1012717c]
cmp dword [esp + 0x1dc], 0
je 0x10097c4b
cmp dword [esi + 0x3b8], 0
jne 0x10097c4b
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esi + 0x3a4]
call dword [0x1012717c]
cmp dword [esp + 0x214], 0
je 0x10097c72
cmp dword [esi + 0x3f0], 0
jne 0x10097c72
lea edx, [esp + 0x200]
push edx
lea ecx, [esi + 0x3dc]
call dword [0x1012717c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10097c86
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 0x10097c9c
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
test ecx, ecx
mov ebx, 1
mov dword [esp + 0x28], ebx
je 0x10097cbc
lea eax, [ecx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10097cbc
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea eax, [esp + 0x18]
mov byte [esp + 0x244], bl
call fcn.10086b50
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x248], 0
call fcn.10001e40
mov eax, ebp
jmp 0x100983b8
mov esi, dword [esp + 0x20]
push 0x13
call fcn.10034120
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.10086b50
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x248], 0
call fcn.10001e40
mov eax, ebp
jmp 0x100983b8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x9ac]
mov eax, dword [eax]
mov ebx, dword [ecx + 0x9ac]
xor ebp, ebp
add ecx, 0x9a8
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 0x10097d68
cmp esi, ecx
je 0x10097d6e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x10097dae
test esi, esi
jne 0x10097d7c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x10097d87
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x4c0]
cmp eax, ebp
jl 0x10097d97
lea ebp, [eax + 1]
lea esi, [esp + 0x34]
call fcn.10009610
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
jmp 0x10097d60
push 0x530
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 0x10097deb
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x104]
push ecx
push ebp
push ebx
lea ecx, [ebx + 0xa18]
push eax
call fcn.100b98d0
jmp 0x10097ded
xor eax, eax
mov ecx, eax
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 2
call fcn.1009f250
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.100bb310
mov eax, dword [ebx + 0x11d4]
mov ebp, dword [eax]
lea edi, [ebx + 0x11d0]
mov edx, eax
mov dword [esp + 0x40], edx
nop
cmp edi, edi
je 0x10097e2a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x40]
je 0x10097ee3
cmp ebp, dword [edi + 4]
jne 0x10097e3f
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.1009bda0
mov byte [esp + 0x244], 6
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10097e92
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 0x10097e8b
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.100bc8a0
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10097ecc
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10097ecc
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 0x10097ecc
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp ebp, dword [edi + 4]
jne 0x10097ed7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x18]
jmp 0x10097e20
mov eax, dword [ebx + 0x11e0]
mov ebp, dword [eax]
lea edi, [ebx + 0x11dc]
mov dword [esp + 0x40], eax
mov bl, 7
cmp edi, edi
je 0x10097f01
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x40]
je 0x10097fbb
cmp ebp, dword [edi + 4]
jne 0x10097f16
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 0x10097f6a
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 0x10097f63
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.100bc8a0
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10097fa4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10097fa4
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 0x10097fa4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp ebp, dword [edi + 4]
jne 0x10097faf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov esi, dword [esp + 0x18]
jmp 0x10097ef7
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 0x10097fe1
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.1009f2b0
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 0x10098067
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.1009ad60
mov byte [esp + 0x244], 8
mov esi, dword [esp + 0xf4]
test esi, esi
je 0x100980c3
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100980c3
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 0x100980c3
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 0x100980fd
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100980fd
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 0x100980fd
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x1f8], 0
jne 0x1009811e
cmp dword [esp + 0x1dc], 0
je 0x100981ed
lea edx, [esp + 0x1c8]
jmp 0x10098125
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 0x10098143
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.1009f3b0
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 0x100981a5
add esi, 4
mov eax, 1
lock xadd dword [esi], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
add edx, 0x9b4
push edx
lea ebx, [esp + 0x44]
mov byte [esp + 0x24c], 0xc
call fcn.1009b1f0
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x248], 0xb
call fcn.10098430
lea ecx, [esp + 0xdc]
push ecx
mov byte [esp + 0x248], 2
call fcn.10098430
mov esi, dword [esp + 0x14]
add esi, 0x368
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 0x10098215
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100982fc
mov ebx, dword [esi + 0x2c]
shr ebx, 6
and bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x100982fc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.100cc330
mov ecx, dword [0x101556f0]
mov edx, dword [0x101556f4]
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 0x10098282
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
mov ecx, esi
mov byte [esp + 0x248], 0xe
call fcn.1000dc40
mov byte [esp + 0x244], 0xf
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x100982cc
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x100982cc
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 0x100982fc
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x100982fc
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 0x1009831a
mov eax, dword [esp + 0x14]
mov dword [eax + 0xbb0], 2
test ebp, ebp
je 0x1009832a
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 0x10098347
lea ecx, [ebp + 8]
mov edx, 1
lock xadd dword [ecx], edx
test ebp, ebp
mov dword [esp + 0x28], 1
je 0x10098369
lea eax, [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10098369
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
test ebp, ebp
mov byte [esp + 0x244], 1
je 0x100983a1
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100983a1
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 0x100983a1
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.10001e40
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.1010defb
add esp, 0x234
ret 0xc