Function at 0x4139c0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x481af4], 0
jne 0x413be8
push 0x4c
push 1
call fcn.0043153d
add esp, 8
mov dword [0x481af4], eax
test eax, eax
jne 0x4139e8
mov eax, 0xc
ret
push esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.btfunc.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x481af4]
push esi
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [0x481af4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x413bb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BT_GetVersion
push eax
call esi
test eax, eax
je 0x413a3e
call eax
mov ecx, dword [0x481af4]
mov dword [ecx + 0xc], eax
jmp 0x413a4b
mov ecx, dword [0x481af4]
mov dword [ecx + 0xc], 0
push str.BT_InitializeLibrary
push dword [ecx + 4]
call esi
mov ecx, dword [0x481af4]
push str.BT_UninitializeLibrary
push dword [ecx + 4]
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_IsBlueSoleilStarted
push dword [ecx + 4]
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_IsBluetoothReady
push dword [ecx + 4]
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_StartBluetooth
push dword [ecx + 4]
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_StopBluetooth
push dword [ecx + 4]
mov dword [ecx + 0x20], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_InquireDevices
push dword [ecx + 4]
mov dword [ecx + 0x24], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_PairDevice
push dword [ecx + 4]
mov dword [ecx + 0x28], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_UnpairDevice
push dword [ecx + 4]
mov dword [ecx + 0x34], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_ConnectSPPExService
push dword [ecx + 4]
mov dword [ecx + 0x38], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_DisconnectSPPExService
push dword [ecx + 4]
mov dword [ecx + 0x2c], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_RegisterCallback
push dword [ecx + 4]
mov dword [ecx + 0x30], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_SearchSPPExServices
push dword [ecx + 4]
mov dword [ecx + 0x3c], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_DisconnectService
push dword [ecx + 4]
mov dword [ecx + 0x40], eax
call esi
mov ecx, dword [0x481af4]
push str.BT_BrowseServices
push dword [ecx + 4]
mov dword [ecx + 0x44], eax
call esi
mov ecx, dword [0x481af4]
mov edx, dword [ecx + 0x10]
mov dword [ecx + 0x48], eax
test edx, edx
je 0x413bb3
cmp dword [ecx + 0x14], 0
je 0x413bb3
cmp dword [ecx + 0x18], 0
je 0x413bb3
cmp dword [ecx + 0x1c], 0
je 0x413bb3
cmp dword [ecx + 0x28], 0
je 0x413bb3
cmp dword [ecx + 0x34], 0
je 0x413bb3
cmp dword [ecx + 0x38], 0
je 0x413bb3
cmp dword [ecx + 0x2c], 0
je 0x413bb3
cmp dword [ecx + 0x30], 0
je 0x413bb3
call edx
mov ecx, dword [0x481af4]
test eax, eax
je 0x413bb3
mov byte [ecx + 8], 1
xor eax, eax
pop esi
ret
test ecx, ecx
je 0x413be1
cmp dword [ecx + 4], 0
je 0x413bce
cmp byte [ecx + 8], 0
je 0x413bce
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [0x481af4]
push ecx
call fcn.00430bb8
add esp, 4
mov dword [0x481af4], 0
mov eax, 0xd
pop esi
ret
xor eax, eax
ret