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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cc71f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x7df5fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0
mov esi, dword [ebx + 8]
test byte [esi + 0x6c], 8
je 0x419cb3
add esi, 0xd4
lea eax, [edi + 0xb0]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x58], eax
cmp dword [esi + 0x10], 0
je 0x419a28
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push esi
lea ecx, [edi + 0xcc]
mov byte [edi + 0xc8], 1
call fcn.0040fc60
mov esi, dword [eax]
lea eax, [edi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [edi + 0xc8], 0
test esi, esi
je 0x419a28
push 0x18
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push str.ignoring_offer_for_peer
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00414b60
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00413760
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
cmp edx, 0x10
mov esi, dword [0x822fc0]
cmovae eax, ecx
test esi, esi
je 0x4199f3
test eax, eax
je 0x4199f3
cmp byte [eax], 0
je 0x4199f3
push eax
push 0
call esi
mov edx, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x419cb0
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419ca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419d70
jmp 0x419ca6
movzx eax, word [0x8237e0]
lea ecx, [ebp - 0x2c]
movups xmm0, xmmword [0x8237e4]
mov word [ebp - 0x44], ax
movzx eax, word [0x8237e2]
mov word [ebp - 0x42], ax
mov eax, dword [0x8237f4]
push 0x8237f8
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
call fcn.0040fb90
push 0
push 1
push 0
mov byte [ebp - 4], 2
movzx ecx, word [ebp - 0x42]
movzx eax, word [ebp - 0x44]
push ecx
push eax
push 0x100000
push 1
push 0x7e0484
call dword [sym.imp.bt_datachannel.dll_BTDC_CreatePeerConnection]
movzx eax, ax
add esp, 0x20
mov dword [ebp - 0x5c], eax
test ax, ax
je 0x419c78
push 0x118
call fcn.0068973d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
mov esi, dword [ebx + 8]
lea eax, [ecx + 4]
mov dword [ebp - 0x50], esi
push eax
mov dword [ecx], vtable.ut_lite::Lockable.0
lea edi, [esi + 0xec]
mov byte [ecx + 0x1c], 0
add esi, 0xd4
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
push ecx
push eax
mov dword [ecx], vtable.ut_lite::Base_Object.0
mov word [ecx + 0x20], ax
mov dword [ecx + 0x24], 3
call dword [sym.imp.bt_datachannel.dll_BTDC_SetCargo]
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov byte [ebp - 4], 4
lea ecx, [eax + 0x78]
mov dword [eax], vtable.ut_lite::Torrent_Peer.0
xorps xmm0, xmm0
movups xmmword [eax + 0x3c], xmm0
mov dword [eax + 0x4c], 0
movups xmmword [eax + 0x50], xmm0
mov dword [eax + 0x60], 0
movups xmmword [eax + 0x64], xmm0
push esi
mov dword [eax + 0x74], 0
call fcn.0040fb90
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x48]
add ecx, 0x90
push edi
call fcn.0040fb90
mov esi, dword [ebp - 0x50]
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x48]
lea eax, [esi + 0x104]
push eax
lea ecx, [edi + 0xa8]
call fcn.0040fb90
lea eax, [esi + 0x14]
mov byte [ebp - 4], 7
lea ecx, [edi + 0xc0]
push eax
call fcn.0040fb90
lea eax, [esi + 0x38]
mov byte [ebp - 4], 8
lea ecx, [edi + 0xd8]
push eax
call fcn.0040fb90
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0xf
mov byte [edi + 0xfc], 0
mov byte [edi + 0x114], 0
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x3c], xmm0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x4c], eax
movups xmm0, xmmword [esi + 0x94]
movups xmmword [edi + 0x50], xmm0
mov eax, dword [esi + 0xa4]
mov dword [edi + 0x60], eax
movups xmm0, xmmword [esi + 0xc0]
movups xmmword [edi + 0x64], xmm0
mov eax, dword [esi + 0xd0]
mov dword [edi + 0x74], eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], 0
je 0x419c65
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [ebp - 0x54]
push dword [ebp - 0x4c]
lea ecx, [esi + 0xcc]
mov byte [esi + 0xc8], 1
call fcn.0040fc60
mov dword [eax], edi
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [esi + 0xc8], 0
push ecx
mov ecx, edi
call fcn.00418ec0
test al, al
jne 0x419c78
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x419cb0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419ca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419d75
push edx
push ecx
call fcn.0068976d
add esp, 8
mov esi, dword [ebx + 8]
mov edi, dword [esi + 0x11c]
test edi, edi
je 0x419d28
mov cl, byte [esi + 0x6c]
test cl, 8
jne 0x419d28
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
lea eax, [esi + 0x88]
mov dword [ebp - 0x54], eax
test cl, 2
je 0x419ceb
cmp dword [esi + 0x84], 0x10
lea eax, [esi + 0x70]
jb 0x419ced
mov eax, dword [eax]
jmp 0x419ced
xor eax, eax
test cl, 1
je 0x419cf7
lea ecx, [esi + 0x2c]
jmp 0x419cf9
xor ecx, ecx
cmp dword [esi + 0x68], 0x10
lea edx, [esi + 0x54]
jb 0x419d04
mov edx, dword [edx]
push dword [ebp - 0x54]
push eax
push ecx
push dword [esi + 0x50]
mov ecx, edi
push edx
push esi
call dword [ebp - 0x50]
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x11c], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x419d50
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x419d50
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x419d50
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00689f2f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00695b77
call fcn.00695b77
int3