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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cc4db
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call section..text
mov eax, dword [0x7df5fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movzx eax, word [edi + 0x20]
mov ecx, str.OnGatheringState
mov edx, dword [edi + 0x24]
push edi
push eax
call fcn.00411ab0
mov esi, dword [ebp + 8]
movzx eax, word [edi + 0x20]
mov edx, dword [edi + 0x24]
push edi
mov ecx, dword [esi*4 + 0x77abb8]
push eax
call fcn.00411ab0
add esp, 0x10
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x28], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [edi + 0x1c], 0
cmp esi, 2
jne 0x418d03
mov ebx, 0xf
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], ebx
mov byte [ebp - 0x1028], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], ebx
mov byte [ebp - 0x1040], 0
lea eax, [edi + 4]
mov byte [ebp - 4], 1
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call eax
mov esi, dword [edi + 0x28]
lea eax, [edi + 4]
push eax
mov byte [edi + 0x1c], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [edi + 0x1c], 0
cmp esi, 2
jne 0x418c8c
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0068ccc0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
movzx eax, word [edi + 0x20]
push eax
call dword [sym.imp.bt_datachannel.dll_BTDC_GetLocalDescriptionType]
add esp, 0x18
test eax, eax
je 0x418c8c
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418b50
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x1040]
call fcn.00414b60
push 0x1000
lea eax, [ebp - 0x1010]
mov byte [ebp - 0x1010], 0
push eax
movzx eax, word [edi + 0x20]
push eax
call dword [sym.imp.bt_datachannel.dll_BTDC_GetLocalDescription]
add esp, 0xc
test eax, eax
je 0x418c8c
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418ba0
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x1028]
call fcn.00414b60
cmp dword [edi + 0xe8], 0
lea ebx, [edi + 0xd8]
je 0x418c84
mov esi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x7e04cc
call esi
push ebx
mov ecx, 0x7e04e8
mov byte [0x7e04e4], 1
call fcn.0040fc60
push 0x7e04cc
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [0x7e04e4], 0
test ebx, ebx
je 0x418c84
lea eax, [ebx + 4]
push eax
call esi
xor esi, esi
mov byte [ebx + 0x1c], 1
cmp dword [edi + 0xd0], esi
je 0x418c51
mov eax, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea esi, [ebx + 0x34]
push esi
call eax
lea eax, [edi + 0xc0]
mov byte [ebx + 0x4c], 1
push eax
lea ecx, [ebx + 0x50]
call fcn.0040fc60
push esi
mov eax, dword [eax]
mov dword [ebp - 0x1044], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 0x1044]
mov byte [ebx + 0x4c], 0
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov byte [ebx + 0x1c], 0
test esi, esi
je 0x418c84
lea eax, [ebp - 0x1040]
mov ecx, esi
push eax
lea eax, [ebp - 0x1028]
push eax
lea eax, [edi + 0x78]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x3c]
push eax
call fcn.0041e860
mov ebx, dword [ebp - 0x1014]
jmp 0x418c9d
mov ecx, str.failed_to_get_local_SDP
call fcn.00411c00
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, dword [ebp - 0x102c]
cmp edx, 0x10
jb 0x418cd3
mov ecx, dword [ebp - 0x1040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418cc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418d21
push edx
push ecx
call fcn.0068976d
add esp, 8
cmp ebx, 0x10
jb 0x418d03
mov ecx, dword [ebp - 0x1028]
inc ebx
mov eax, ecx
cmp ebx, 0x1000
jb 0x418cf9
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418d21
push ebx
push ecx
call fcn.0068976d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00689f2f
mov esp, ebp
pop ebp
ret 4
call fcn.00695b77
int3