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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011e8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x30c]
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x100c0037
mov ecx, dword [ebx + 0x310]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x100c0037
mov al, byte [ebx + 0x50c]
test al, 1
je 0x100bf4ff
mov dword [ebp + 8], 3
jmp 0x100bf530
mov ecx, dword [ebp + 8]
cmp ecx, 3
je 0x100bf50f
test al, 4
je 0x100c0037
test ecx, ecx
jne 0x100bf530
mov ecx, ebx
call fcn.1001d090
test al, al
je 0x100bf530
mov ecx, ebx
call fcn.1001d040
test al, al
jne 0x100bf530
mov dword [ebp + 8], 4
lea edx, [esp + 0xf4]
push edx
call fcn.100b5f60
mov dword [esp + 0x218], 0
test byte [ebx + 0x51d], 0x40
je 0x100bf568
mov eax, dword [ebx + 0x2e0]
cmp byte [eax + 0x29a], 0
mov byte [esp + 0x1e9], 1
jne 0x100bf570
mov byte [esp + 0x1e9], 0
mov eax, dword [ebx + 0xa0]
mov ecx, dword [eax + 0x140]
mov dword [esp + 0xf8], ecx
mov edx, dword [eax + 0x144]
mov dword [esp + 0xfc], edx
mov ecx, dword [eax + 0x148]
mov dword [esp + 0x100], ecx
mov edx, dword [eax + 0x14c]
mov esi, dword [ebx + 0x4b8]
mov dword [esp + 0x104], edx
mov ecx, dword [eax + 0x150]
mov dword [esp + 0x108], ecx
mov ecx, dword [ebx + 0x2e0]
mov edx, dword [ecx + 0x9fc]
add ecx, 0x9fc
mov dword [esp + 0x10c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x110], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x114], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x118], edx
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebx + 0x144]
mov dword [esp + 0x11c], ecx
mov ecx, dword [ebx + 0x140]
xor edi, edi
sub ecx, esi
sbb edx, edi
mov dword [esp + 0x124], ecx
mov ecx, dword [ebx + 0x114]
mov dword [esp + 0x128], edx
mov edx, dword [ebx + 0x110]
mov dword [esp + 0x130], ecx
xor ecx, ecx
mov dword [esp + 0x12c], edx
mov dword [esp + 0x13c], esi
mov dword [esp + 0x140], edi
cmp dword [eax + 0x94], ecx
jg 0x100bf657
or esi, 0xffffffff
or edi, esi
jmp 0x100bf66f
mov esi, dword [eax + 0x88]
mov edi, dword [eax + 0x8c]
push ebx
call fcn.100c1960
sub esi, eax
sbb edi, edx
xor ecx, ecx
mov dword [esp + 0x134], esi
and esi, edi
cmp esi, 0xffffffff
mov dword [esp + 0x138], edi
jne 0x100bf696
mov dword [esp + 0x134], 0x4000
mov dword [esp + 0x138], ecx
mov edx, dword [ebx + 0x2e0]
cmp byte [edx + 0x215], 0
jne 0x100bf6b9
mov eax, dword [ebx + 0x4bc]
sub dword [esp + 0x124], eax
sbb dword [esp + 0x128], ecx
cmp dword [esp + 0x128], ecx
jg 0x100bf6db
jl 0x100bf6cd
cmp dword [esp + 0x124], ecx
jae 0x100bf6db
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0x150], edx
mov dword [esp + 0x14], ecx
call fcn.1010d600
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2e0]
cmp byte [eax + 0x222], 0
jne 0x100bf89c
lea esi, [eax + 0xa34]
xor eax, eax
mov dword [esp + 0xd8], eax
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
mov dword [esp + 0xf0], eax
mov word [esp + 0xda], ax
mov dword [esp + 0xdc], eax
mov ecx, 7
lea edi, [esp + 0x1ec]
lea eax, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x1f0]
push ecx
mov word [esp + 0xe0], 2
call fcn.10015520
add esp, 8
test al, al
jne 0x100bf7cc
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0xdc]
call fcn.10015480
lea ecx, [esp + 0x14]
lea edx, [esp + 0x5c]
mov eax, esi
call fcn.10014d50
push eax
lea ecx, [esp + 0x198]
mov byte [esp + 0x21c], 1
call dword [0x1012717c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x218], 0
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 eax, dword [ebx + 0x2e0]
lea esi, [eax + 0xa50]
xor eax, eax
mov dword [esp + 0xd8], eax
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
mov dword [esp + 0xf0], eax
mov word [esp + 0xda], ax
mov dword [esp + 0xdc], eax
mov ecx, 7
lea edi, [esp + 0x1ec]
lea eax, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x1f0]
push ecx
mov word [esp + 0xe0], 2
call fcn.10015520
add esp, 8
test al, al
jne 0x100bf89c
lea edx, [esp + 0x1ec]
push edx
lea esi, [esp + 0x60]
call fcn.10015480
lea ecx, [esp + 0x14]
lea edx, [esp + 0xd8]
mov eax, esi
call fcn.10014d50
push eax
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x21c], 2
call dword [0x1012717c]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x218], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x150], 3
jne 0x100bf8b3
mov dword [esp + 0x190], 0
jmp 0x100bf8c6
mov eax, dword [ebx + 0x2e0]
mov ecx, dword [eax + 0xe8]
mov dword [esp + 0x190], ecx
mov ecx, dword [ebx + 0x2e0]
call fcn.10098cd0
mov edx, dword [ebx + 0x2e0]
mov word [esp + 0x14c], ax
mov eax, dword [edx + 0xa10]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x190], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edi, edi
mov esi, accept
mov dword [esp + 0x20], esi
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
nop
mov eax, dword [ebx + 0x30c]
test eax, eax
je 0x100bf935
mov ecx, dword [ebx + 0x310]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x100c000f
mov eax, dword [ebx + 0x30c]
test eax, eax
je 0x100bf966
mov ecx, dword [ebx + 0x310]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100bf96c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x30c]
add edi, dword [esp + 0x28]
lea eax, [ebx + 0x324]
cmp dword [edi + 0x30], 0
mov dword [esp + 0x2c], edi
je 0x100bf989
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x174]
call dword [0x1012717c]
mov eax, dword [ebx + 0x2e0]
mov cl, byte [eax + 0x1aa]
test cl, cl
je 0x100bf9cf
cmp byte [eax + 0x1a9], 0
jne 0x100bf9cf
cmp byte [esp + 0x12], 0
je 0x100bf9cf
movzx edx, byte [edi + 0x70]
cmp edx, esi
jg 0x100bf9cf
cmp esi, 0x7fffffff
jne 0x100bfff4
mov esi, dword [esp + 0x20]
movzx eax, byte [edi + 0x70]
cmp eax, esi
jle 0x100bf9e6
cmp byte [esp + 0x12], 0
je 0x100bf9e6
test cl, cl
je 0x100c000f
mov cl, byte [edi + 0x72]
and cl, 0x7f
mov byte [esp + 0x13], cl
jne 0x100bf9fb
mov dword [esp + 0x20], eax
mov byte [esp + 0x12], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.1001d040
push eax
mov eax, edi
call fcn.100e8df0
test al, al
jne 0x100bfa3e
cmp byte [esp + 0x13], al
jne 0x100bfff4
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov byte [esp + 0x12], 1
jmp 0x100bf910
push edi
lea ecx, [esp + 0x158]
call dword [0x1012717c]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x150], eax
jne 0x100bfa88
mov al, byte [edi + 0x73]
test al, 0x20
jne 0x100bfa6e
mov dword [esp + 0x150], 2
jmp 0x100bfa88
test al, 0x40
jne 0x100bfa88
mov ecx, ebx
call fcn.1001d040
test al, al
je 0x100bfa88
mov dword [esp + 0x150], 1
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.1001ad40
test al, al
jne 0x100bfade
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x1cc], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x1d0], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1d4], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x1d8], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x1e0], ecx
mov dword [esp + 0x1e4], edx
jmp 0x100bfb58
mov eax, dword [ebx + 0x2e0]
add eax, 0xa18
push eax
lea esi, [esp + 0xdc]
call fcn.10015480
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x1d0], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x1d4], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0x1e0], edx
mov dword [esp + 0x1e4], eax
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x222], 0
je 0x100bfd07
push 0
push 0x3a
lea ecx, [esp + 0x15c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
push eax
push 0
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x218], 3
mov eax, dword [ebx + 0x2e0]
mov esi, dword [eax + 0xb98]
lea ecx, [esp + 0xd8]
push str.http
push ecx
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x100bfbe0
lea edx, [esp + 0xd8]
push str.https
push edx
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x100bfcc1
test esi, esi
jne 0x100bfcc1
push esi
push 0x23c34600
call fcn.100b5be0
mov ecx, dword [esp + 0x1c]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov esi, dword [ebx + 0x2e0]
add esi, 0x368
call fcn.100d5710
test al, al
je 0x100bfc95
lea eax, [esp + 0x54]
push eax
mov ecx, ebx
call fcn.100cc330
lea ecx, [esp + 0x154]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x224], 4
call fcn.100b9120
mov byte [esp + 0x218], 5
mov ecx, dword [ebx + 0x2e0]
push eax
add ecx, 0x368
call fcn.1000dc40
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x21c], 4
call fcn.100b9320
mov byte [esp + 0x218], 3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100bfc95
mov ecx, eax
or edx, 0xffffffff
add eax, 8
lock xadd dword [eax], edx
jne 0x100bfc95
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x218], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
jmp 0x100bf910
lea eax, [esp + 0xd8]
push 0x10129604
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x100bfe6c
cmp esi, 2
je 0x100bfcf2
cmp esi, 3
je 0x100bfcf2
cmp esi, 6
jne 0x100bfe6c
lea ecx, [esp + 0xd8]
mov byte [esp + 0x218], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add ebx, 0x1c
lea edi, [esp + 0x40]
call fcn.100d2250
mov edx, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x50], esp
mov dword [ecx + 4], eax
je 0x100bfd36
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0xf8
mov byte [esp + 0x318], 9
mov edx, esp
mov dword [esp + 0x134], esp
push edx
lea edi, [esp + 0x1f8]
call fcn.100c0060
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x15c]
push eax
mov ecx, esi
mov byte [esp + 0x31c], 0xa
call fcn.100c41e0
mov byte [esp + 0x318], 0xb
mov eax, dword [esi + 0x2e0]
lea edx, [eax + 0x840]
lea ecx, [eax + 0x35c]
add eax, 0x978
push eax
mov byte [esp + 0x31c], 0xc
call fcn.100edbb0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x218], 8
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 byte [esp + 0x218], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100bfdf3
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100bfdf3
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 0x100bfdf3
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, dword [esp + 0x2c]
or byte [edi + 0x72], 0x80
push 0
push 0x1312d00
call fcn.100b5be0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
push 0
push 0x989680
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
call fcn.100b5be0
add esp, 0x10
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x68], ecx
mov esi, dword [eax + 0x2e0]
add esi, 0x368
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x100bff0a
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100bffc9
push 0
push 0x23c34600
call fcn.100b5be0
mov ecx, dword [esp + 0x1c]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov esi, dword [ebx + 0x2e0]
add esi, 0x368
call fcn.100d5710
test al, al
je 0x100bfc95
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.100cc330
lea edx, [esp + 0x154]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x224], 6
call fcn.100b9120
mov byte [esp + 0x218], 7
mov ecx, dword [ebx + 0x2e0]
push eax
add ecx, 0x368
call fcn.1000dc40
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x21c], 6
call fcn.100b9320
mov byte [esp + 0x218], 3
mov eax, dword [esp + 0x50]
jmp 0x100bfc7c
mov eax, dword [esi + 0x2c]
shr eax, 4
and al, 1
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x100bffc9
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call fcn.100cc330
lea edx, [esp + 0x154]
push edx
push eax
lea eax, [esp + 0x9c]
mov byte [esp + 0x220], 0xd
mov esi, dword [esp + 0x158]
push eax
call fcn.100b6570
mov dword [esp + 0x94], vtable.libtorrent::tracker_announce_alert.0
mov dword [esp + 0xcc], esi
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x21c], 0xe
mov ecx, dword [ebx + 0x2e0]
add ecx, 0x368
call fcn.1000dc40
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x21c], 0xd
call fcn.100b6610
mov byte [esp + 0x218], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100bffc9
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x100bffc9
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test byte [edi + 0x72], 0x7f
mov byte [esp + 0x12], 1
jne 0x100bfff0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2e0]
cmp byte [eax + 0x1a9], 0
jne 0x100bfff0
cmp byte [eax + 0x1aa], 0
je 0x100c000b
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
jmp 0x100bf910
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
call fcn.100cdb00
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0x21c], 0xffffffff
call fcn.10052850
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret 8