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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2b0
push 0
push 1
push str.bthprops.cpl
push 0
call fcn.00417f90
add esp, 0x10
test eax, eax
je 0x4765d3
push str.BluetoothFindFirstDevice
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x477884
mov ebx, eax
push str.BluetoothFindNextDevice
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47788b
push str.BluetoothFindDeviceClose
mov dword [esp + 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47789e
mov dword [esp + 0x18], eax
movups xmm0, xmmword [0x4f7e38]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [0x4f7e28]
movaps xmmword [esp + 0x50], xmm0
lea esi, [esp + 0x78]
push 0x230
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x78], 0x230
lea eax, [esp + 0x50]
push esi
push eax
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4778a5
mov esi, dword [ebp + 8]
jmp 0x476608
mov edi, str.dlopen_bthprops.cpl_failed
jmp 0x4778c8
cmp dword [edi + 0x18], 0
je 0x4771db
mov byte [esi + ebx - 2], 0
nop dword [eax]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x18]
call dword [esp + 0x24]
test eax, eax
mov esi, dword [ebp + 8]
je 0x477892
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0xc]
jne 0x476635
lea edx, [ecx + ecx]
test ecx, ecx
mov ecx, 0x10
cmove edx, ecx
mov dword [esi + 0xc], edx
imul edx, dword [esi + 4]
push edx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [esi], eax
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
mov dword [esi + 8], edx
imul ecx, dword [esi + 4]
mov dword [eax + ecx], 0
mov dword [eax + ecx + 4], 0
mov edx, dword [0x5052b0]
mov dword [eax + ecx + 8], edx
mov dword [eax + ecx + 0xc], 0
mov dword [eax + ecx + 0x10], 0
mov dword [eax + ecx + 0x14], edx
mov dword [eax + ecx + 0x18], 0
mov dword [eax + ecx + 0x1c], 0
mov dword [eax + ecx + 0x20], edx
lea esi, [eax + ecx]
mov byte [eax + ecx + 0x24], 0
cmp dword [esp + 0x8c], 0
setne byte [eax + ecx + 0x25]
lea eax, [eax + ecx + 0xc]
mov dword [esp + 8], eax
lea edi, [esp + 0xb8]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
push edi
push eax
push esi
call fcn.00485cd0
add esp, 0xc
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x20], eax
movzx ecx, byte [esp + 0x81]
movzx edx, byte [esp + 0x82]
movzx edi, byte [esp + 0x83]
movzx ebx, byte [esp + 0x84]
movzx eax, byte [esp + 0x85]
push eax
push ebx
push edi
mov edi, esi
push edx
push ecx
push dword [esp + 0x34]
push 0x4f7e85
push dword [esp + 0x24]
call fcn.00472860
add esp, 0x20
mov eax, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
bt dword [esp + 0x4c], 0xd
mov dword [esp + 0xc], esi
jae 0x4767ea
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476738
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x1b
jae 0x47677a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0x1c]
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476750
test eax, eax
je 0x47677f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x4767b2
mov ebx, dword [edi + 0x20]
jmp 0x4767bb
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4767a8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4767af
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
movups xmm0, xmmword [0x4f7eae]
movups xmmword [ebx + esi + 0xb], xmm0
movups xmm0, xmmword [str.Limited_Discoverable_Mode_]
movups xmmword [ebx + esi], xmm0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0x1b]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0x1b], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
bt dword [esp + 0x48], 0xe
jae 0x4768b9
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x47680f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xa
jae 0x47684a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xb]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476820
test eax, eax
je 0x47684f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476882
mov ebx, dword [edi + 0x20]
jmp 0x47688b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476878
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x47687f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov word [ebx + esi + 8], 0x202c
mov dword [ebx + esi + 4], 0x6f696475
mov dword [ebx + esi], 0x6120454c
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xa]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xa], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x44], eax
bt dword [esp + 0x44], 0xf
jae 0x47698a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x4768de
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x19
jae 0x47691a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0x1a]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4768f0
test eax, eax
je 0x47691f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476952
mov ebx, dword [edi + 0x20]
jmp 0x47695b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476948
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x47694f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
movups xmm0, xmmword [0x4f7ed3]
movups xmmword [ebx + esi + 9], xmm0
movups xmm0, xmmword [str.Reserved_for_future_use_]
movups xmmword [ebx + esi], xmm0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0x19]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0x19], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], eax
bt dword [esp + 0x40], 0x10
jae 0x476a5f
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x4769af
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xd
jae 0x4769ea
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xe]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4769c0
test eax, eax
je 0x4769ef
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476a22
mov ebx, dword [edi + 0x20]
jmp 0x476a2b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476a18
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476a1f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov byte [ebx + esi + 0xc], 0x20
mov dword [ebx + esi + 8], 0x2c676e69
mov dword [ebx + esi + 4], 0x6e6f6974
mov dword [ebx + esi], 0x69736f50
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xd]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xd], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x3c], eax
bt dword [esp + 0x3c], 0x11
jae 0x476b3a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476a84
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xc
jae 0x476aca
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xd]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476aa0
test eax, eax
je 0x476acf
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476b02
mov ebx, dword [edi + 0x20]
jmp 0x476b0b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476af8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476aff
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov dword [ebx + esi + 8], 0x202c676e
mov dword [ebx + esi + 4], 0x696b726f
mov dword [ebx + esi], 0x7774654e
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xc]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xc], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
bt dword [esp + 0x38], 0x12
jae 0x476c0a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476b5f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x476b9a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xc]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476b70
test eax, eax
je 0x476b9f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476bd2
mov ebx, dword [edi + 0x20]
jmp 0x476bdb
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476bc8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476bcf
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov dword [ebx + esi + 7], 0x202c676e
mov dword [ebx + esi + 4], 0x6e697265
mov dword [ebx + esi], 0x646e6552
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xb]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xb], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
bt dword [esp + 0x34], 0x13
jae 0x476cda
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476c2f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x476c6a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xc]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476c40
test eax, eax
je 0x476c6f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476ca2
mov ebx, dword [edi + 0x20]
jmp 0x476cab
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476c98
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476c9f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov dword [ebx + esi + 7], 0x202c676e
mov dword [ebx + esi + 4], 0x6e697275
mov dword [ebx + esi], 0x74706143
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xb]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xb], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], eax
bt dword [esp + 0x30], 0x14
jae 0x476da3
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476cff
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x11
jae 0x476d3a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0x12]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476d10
test eax, eax
je 0x476d3f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476d72
mov ebx, dword [edi + 0x20]
jmp 0x476d7b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476d68
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476d6f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
movups xmm0, xmmword [str.Object_Transfer_]
movups xmmword [ebx + esi], xmm0
mov byte [ebx + esi + 0x10], 0x20
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0x11]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0x11], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], eax
bt dword [esp + 0x2c], 0x15
jae 0x476e72
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476dc8
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 7
jae 0x476e0a
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 8]
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476de0
test eax, eax
je 0x476e0f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476e42
mov ebx, dword [edi + 0x20]
jmp 0x476e4b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476e38
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476e3f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov dword [ebx + esi + 3], 0x202c6f69
mov dword [ebx + esi], 0x69647541
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 7]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 7], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], eax
bt dword [esp + 0x28], 0x16
jae 0x476f4a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476e97
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x476eda
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xc]
nop word [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476eb0
test eax, eax
je 0x476edf
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476f12
mov ebx, dword [edi + 0x20]
jmp 0x476f1b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476f08
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476f0f
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov dword [ebx + esi + 7], 0x202c796e
mov dword [ebx + esi + 4], 0x6e6f6870
mov dword [ebx + esi], 0x656c6554
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xb]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xb], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
bt dword [esp + 0x24], 0x17
jae 0x477018
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476f6f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xd
jae 0x476faa
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0xe]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x476f80
test eax, eax
je 0x476faf
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476fe2
mov ebx, dword [edi + 0x20]
jmp 0x476feb
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476fd8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x476fdf
mov byte [ebx], 0
mov esi, dword [esp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], edi
mov edi, esi
mov esi, dword [esp + 8]
mov byte [ebx + esi + 0xc], 0x20
mov dword [ebx + esi + 8], 0x2c6e6f69
mov dword [ebx + esi + 4], 0x74616d72
mov dword [ebx + esi], 0x6f666e49
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xd]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xd], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4770c0
mov esi, dword [edi + 0x20]
cmp byte [eax + esi - 1], 0x20
jne 0x477142
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [edi + 0x1c], eax
cmp ebx, 2
je 0x477128
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x20
je 0x477040
cmp dword [edi + 0x18], 0
jne 0x477132
lea ecx, [eax - 1]
mov dword [esp + 8], ecx
mov dword [edi + 0x1c], 0
mov ecx, 0x20
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x477080
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x18], edi
mov edi, ecx
push dword [esp + 8]
push esi
push eax
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [edi + 0x1c], eax
jmp 0x477132
mov eax, dword [esp + 0x88]
shr eax, 8
and eax, 0x1f
cmp eax, 0x1f
ja case.0x4770d6.10
jmp dword [eax*4 + 0x4f7fb8]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4770f4
cmp eax, 0xe
jae 0x477568
mov ecx, eax
cmp eax, 1
ja 0x477100
mov ecx, 0x20
nop dword [eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xe
jb 0x477100
test eax, eax
je 0x4775e0
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4775f1
cmp dword [edi + 0x18], 0
je 0x4771db
mov byte [esi + ebx - 2], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4765f0
mov esi, dword [edi + 0x20]
cmp byte [eax + esi - 1], 0x2c
jne 0x4765f0
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [edi + 0x1c], eax
cmp ebx, 2
je 0x4765dd
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x2c
je 0x477160
cmp dword [edi + 0x18], 0
jne 0x4765e7
lea ecx, [eax - 1]
mov dword [esp + 8], ecx
mov dword [edi + 0x1c], 0
mov ecx, 0x20
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x4771a0
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x18], edi
mov edi, dword [esp + 8]
push edi
push esi
push eax
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x4765e7
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [edi + 0x20], eax
jmp 0x4765f0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47720d
cmp eax, 9
jae 0x477572
mov ecx, eax
cmp eax, 1
ja 0x477220
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 9
jb 0x477220
test eax, eax
je 0x477615
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477626
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47725f
cmp eax, 6
jae 0x47757c
mov ecx, eax
cmp eax, 1
ja 0x477270
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 6
jb 0x477270
test eax, eax
je 0x47763d
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x47764e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4772af
cmp eax, 0x19
jae 0x477586
mov ecx, eax
cmp eax, 1
ja 0x4772c0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0x19
jb 0x4772c0
test eax, eax
je 0x477673
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477684
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4772ff
cmp eax, 0xc
jae 0x477590
mov ecx, eax
cmp eax, 1
ja 0x477310
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xc
jb 0x477310
test eax, eax
je 0x4776b6
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4776c7
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47734f
cmp eax, 0xb
jae 0x47759a
mov ecx, eax
cmp eax, 1
ja 0x477360
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xb
jb 0x477360
test eax, eax
je 0x4776f7
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477708
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47739f
cmp eax, 8
jae 0x4775a4
mov ecx, eax
cmp eax, 1
ja 0x4773b0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 8
jb 0x4773b0
test eax, eax
je 0x477737
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477748
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4773ef
cmp eax, 9
jae 0x4775ae
mov ecx, eax
cmp eax, 1
ja 0x477400
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 9
jb 0x477400
test eax, eax
je 0x47775f
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477770
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47743f
cmp eax, 4
jae 0x4775b8
mov ecx, eax
cmp eax, 1
ja 0x477450
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 4
jb 0x477450
test eax, eax
je 0x477798
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4777a9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47748f
cmp eax, 7
jae 0x4775c2
mov ecx, eax
cmp eax, 1
ja 0x4774a0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 7
jb 0x4774a0
test eax, eax
je 0x4777cd
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4777de
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4774df
cmp eax, 8
jae 0x4775cc
mov ecx, eax
cmp eax, 1
ja 0x4774f0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 8
jb 0x4774f0
test eax, eax
je 0x47784b
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x47785c
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47752f
cmp eax, 0xe
jae 0x4775d6
mov ecx, eax
cmp eax, 1
ja 0x477540
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xe
jb 0x477540
test eax, eax
je 0x477805
push esi
push dword [edi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477816
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4775f4
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477629
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477651
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477687
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4776ca
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47770b
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47774b
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477773
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4777ac
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4777e1
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47785f
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477819
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov byte [eax + ecx + 0xc], 0x73
mov dword [eax + ecx + 8], 0x756f656e
mov dword [eax + ecx + 4], 0x616c6c65
mov dword [eax + ecx], 0x6373694d
jmp 0x477835
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [eax + ecx + 4], 0x72657475
mov dword [eax + ecx], 0x706d6f43
jmp 0x477782
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov byte [eax + ecx + 4], 0x65
mov dword [eax + ecx], 0x6e6f6850
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 5]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 5], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
movsd xmm0, qword [0x4f7f6f]
movsd qword [eax + ecx + 0x10], xmm0
movups xmm0, xmmword [str.LAN_Network_Access_point]
movups xmmword [eax + ecx], xmm0
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0x18]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0x18], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [eax + ecx + 7], 0x6f656469
mov dword [eax + ecx + 4], 0x69562f6f
mov dword [eax + ecx], 0x69647541
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xb]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xb], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov word [eax + ecx + 8], 0x6c61
mov dword [eax + ecx + 4], 0x72656870
mov dword [eax + ecx], 0x69726550
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xa]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xa], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [eax + ecx + 3], 0x676e6967
mov dword [eax + ecx], 0x67616d49
jmp 0x47786e
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [eax + ecx + 4], 0x656c6261
mov dword [eax + ecx], 0x72616557
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 8]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 8], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov byte [eax + ecx + 2], 0x79
mov word [eax + ecx], 0x6f54
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 3]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 3], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov word [eax + ecx + 4], 0x6874
mov dword [eax + ecx], 0x6c616548
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 6]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 6], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov byte [eax + ecx + 0xc], 0x64
mov dword [eax + ecx + 8], 0x657a6972
mov dword [eax + ecx + 4], 0x6f676574
mov dword [eax + ecx], 0x61636e55
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 0xd]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 0xd], 0
jmp 0x4765f0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
mov dword [eax + ecx + 3], 0x6e776f6e
mov dword [eax + ecx], 0x6e6b6e55
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
lea edx, [eax + 7]
mov dword [edi + 0x1c], edx
mov byte [ecx + eax + 7], 0
jmp 0x4765f0
mov edi, str.dlsym_BluetoothFindFirstDevice_failed
jmp 0x4778c1
mov edi, str.dlsym_BluetoothFindNextDevice_failed
jmp 0x4778c1
push dword [esp + 0x14]
call dword [esp + 0x1c]
xor edi, edi
jmp 0x4778bd
mov edi, str.dlsym_BluetoothFindDeviceClose_failed
jmp 0x4778bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
mov eax, str.No_Bluetooth_devices_found
mov edi, str.BluetoothFindFirstDevice___failed
cmove edi, eax
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret