Function at 0x40f4b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x481aa8], 0
jne 0x40f78d
push esi
push 0x64
push 1
call fcn.0043153d
add esp, 8
mov dword [0x481aa8], eax
test eax, eax
jne 0x40f4fc
lea esi, [eax + 0xc]
call fcn.0040f3d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.TosBtApi.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x481aa8]
push esi
mov dword [ecx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x481aa8]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40f772
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BtOpenAPI
push eax
call esi
mov ecx, dword [0x481aa8]
push str.BtCloseAPI
push dword [ecx + 0x18]
mov dword [ecx + 0x24], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtExecBtMng
push dword [ecx + 0x18]
mov dword [ecx + 0x28], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtGetLocalInfo
push dword [ecx + 0x18]
mov dword [ecx + 0x2c], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtDiscoverRemoteDevice
push dword [ecx + 0x18]
mov dword [ecx + 0x30], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtCreateCOMM
push dword [ecx + 0x18]
mov dword [ecx + 0x34], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtDestroyCOMM
push dword [ecx + 0x18]
mov dword [ecx + 0x38], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtConnectCOMM2
push dword [ecx + 0x18]
mov dword [ecx + 0x3c], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtDisconnectCOMM
push dword [ecx + 0x18]
mov dword [ecx + 0x40], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtNotifyCOMM
push dword [ecx + 0x18]
mov dword [ecx + 0x44], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtGetCOMMInfoList
push dword [ecx + 0x18]
mov dword [ecx + 0x48], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtGetCOMMCreatorName
push dword [ecx + 0x18]
mov dword [ecx + 0x4c], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtSetAutoReplyPinCode
push dword [ecx + 0x18]
mov dword [ecx + 0x50], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtGetSecurityMode
push dword [ecx + 0x18]
mov dword [ecx + 0x54], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtSetSecurityMode
push dword [ecx + 0x18]
mov dword [ecx + 0x58], eax
call esi
mov ecx, dword [0x481aa8]
push str.BtGetConnectedDeviceList
push dword [ecx + 0x18]
mov dword [ecx + 0x5c], eax
call esi
mov ecx, dword [0x481aa8]
mov dword [ecx + 0x60], eax
cmp dword [ecx + 0x24], 0
je 0x40f772
cmp dword [ecx + 0x28], 0
je 0x40f772
cmp dword [ecx + 0x30], 0
je 0x40f772
cmp dword [ecx + 0x34], 0
je 0x40f772
cmp dword [ecx + 0x38], 0
je 0x40f772
cmp dword [ecx + 0x3c], 0
je 0x40f772
cmp dword [ecx + 0x40], 0
je 0x40f772
cmp dword [ecx + 0x44], 0
je 0x40f772
cmp dword [ecx + 0x48], 0
je 0x40f772
cmp dword [ecx + 0x4c], 0
je 0x40f772
cmp dword [ecx + 0x50], 0
je 0x40f772
cmp dword [ecx + 0x58], 0
je 0x40f772
cmp dword [ecx + 0x5c], 0
je 0x40f772
test eax, eax
je 0x40f772
add ecx, 4
call fcn.0040e220
test al, al
je 0x40f772
mov ax, word [0x471144]
movq xmm0, qword [0x47113c]
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [0x481aa8]
movq qword [ebp - 0x10], xmm0
push dword [eax + 0x14]
mov eax, dword [eax + 0x24]
call eax
add esp, 0xc
test eax, eax
je 0x40f743
mov eax, dword [0x481aa8]
mov dword [eax + 0x1c], 1
jmp 0x40f758
cmp dword [ebp - 0x14], 0xfffff445
jne 0x40f772
mov eax, dword [0x481aa8]
mov dword [eax + 0x1c], 2
call fcn.0040ed90
mov esi, eax
test esi, esi
jne 0x40f777
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov esi, 0xd
call fcn.0040f3d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret