Function at 0x466b20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db987
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x51cca4]
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 esi, dword [ebp + 8]
call fcn.004670d0
test eax, eax
jne 0x466bf3
push 0x31
push str.Bluetooth_hardware_not_detected_on_this_computer.
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], eax
mov byte [ebp - 0x430], al
call fcn.004642f0
lea eax, [ebp - 0x430]
cmp esi, eax
je 0x466bce
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x466ba3
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00464490
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x466bbb
mov eax, dword [esi]
jmp 0x466bbd
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x430]
push eax
call fcn.00463e40
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x466bec
inc eax
lea ecx, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.00464490
xor al, al
jmp 0x466e50
lea eax, [ebp - 0x5f0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x466c86
push str.Fail_to_startup
lea ecx, [ebp - 0x448]
call fcn.00460690
lea eax, [ebp - 0x448]
cmp esi, eax
je 0x466c61
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x466c36
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00464490
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x466c4e
mov eax, dword [esi]
jmp 0x466c50
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x448]
push eax
call fcn.00463e40
mov eax, dword [ebp - 0x434]
cmp eax, 0x10
jb 0x466bec
inc eax
lea ecx, [ebp - 0x448]
push eax
push dword [ebp - 0x448]
call fcn.00464490
xor al, al
jmp 0x466e50
push 0x3c
lea eax, [ebp - 0x63c]
push 0
push eax
call fcn.0048e7f0
add esp, 0xc
mov dword [ebp - 0x63c], 0x3c
lea eax, [ebp - 0x5f4]
mov dword [ebp - 0x628], 0x10
mov dword [ebp - 0x5f4], 0
push eax
push 0x9332
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.WS2_32.dll_WSALookupServiceBeginW]
test eax, eax
je 0x466d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x277c
jne 0x466d11
push str.Fail_to_find_any_Bluetooth_devices_nearby.
lea ecx, [ebp - 0x460]
call fcn.00460690
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.00460d30
lea ecx, [ebp - 0x460]
call fcn.00460af0
xor al, al
jmp 0x466e50
push eax
push str.Bluetooth_not_supported__err_d
push esi
call fcn.004645f0
add esp, 0xc
xor al, al
jmp 0x466e50
cmp dword [0x51e8ec], 0
jne 0x466e42
mov ebx, dword [sym.imp.WS2_32.dll_WSALookupServiceNextW]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x600], 0x3e8
push eax
lea eax, [ebp - 0x600]
push eax
push 0x9332
push dword [ebp - 0x5f4]
call ebx
cmp dword [0x51e8ec], 0
mov esi, eax
jne 0x466e42
cmp dword [0x51e8e8], 0
je 0x466e42
test esi, esi
jne 0x466e42
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x466d9b
mov dword [ebp - 0x5f8], eax
jmp 0x466dac
push eax
call edi
mov dword [ebp - 0x5f8], eax
test eax, eax
je 0x466e6e
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 4], 2
mov ecx, dword [eax + 8]
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 4]
push eax
movzx eax, byte [ecx + 5]
push eax
movzx eax, byte [ecx + 6]
push eax
movzx eax, byte [ecx + 7]
push eax
lea eax, [ebp - 0x30]
push str._02x:_02x:_02x:_02x:_02x:_02x
push eax
call fcn.004646a0
add esp, 0x20
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x5fc]
push eax
call fcn.00460590
mov eax, dword [0x51e8e8]
lea ecx, [ebp - 0x5fc]
push ecx
lea ecx, [ebp - 0x5f8]
push ecx
push 0x891c
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x5fc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x5f8]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x466d40
push dword [ebp - 0x5f4]
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
mov al, 1
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.00489c7b
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.00461260
int3