Function at 0x1008a700
Capabilities:
Access peb ldr_data
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1011680b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
xor ebx, ebx
mov dword [esp + 0x94], ebx
mov esi, ecx
mov dword [esp + 0x2c], ebx
push str.libtorrent_0.16.0.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1b], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x30]
push eax
mov edi, 1
push esi
mov dword [esp + 0x9c], edi
call fcn.1008ad10
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], edi
mov byte [esp + 0x94], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp + 4]
sub esp, 0x20
mov dword [esp + 0x3c], esp
mov dword [esp + 0x3c], esp
mov eax, 0x1001cfa0
mov edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edi, ebx
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
call fcn.1008d410
mov eax, dword [ebp + 4]
lea edx, [eax + 0x10]
push edx
add eax, 0x28
push eax
lea eax, [esp + 0x3f]
push eax
lea ecx, [esp + 0x78]
push esi
push ecx
call fcn.1008c4b0
mov dword [esp + 0xc8], 2
mov edx, dword [eax]
mov edi, dword [ebp + 4]
push ecx
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x14], edx
lea esi, [ecx + 0x18]
lea ecx, [eax + 0x18]
mov dword [esp + 0x54], esp
call fcn.100459d0
mov esi, dword [edi + 0x364]
call fcn.1008d460
mov byte [esp + 0x94], bl
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x1008a844
test al, 1
jne 0x1008a844
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x1008a844
lea ecx, [esp + 0x6c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, dword [ebp + 4]
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esp + 0x17], bl
mov byte [esp + 0x20], 1
jne 0x1008a8a2
mov esi, dword [ebp + 4]
add dword [esi + 0x44], 1
cmp byte [esp + 0x20], bl
je 0x1008a874
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x20], bl
mov eax, dword [esi + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esp + 0x20], bl
jne 0x1008a892
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
add dword [esi + 0x44], 0xffffffff
cmp byte [esp + 0x17], bl
je 0x1008a85c
cmp byte [esp + 0x20], bl
je 0x1008a8a9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 4