Function at 0x476660
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 dbg.ffLibraryLoad
add esp, 0x10
test eax, eax
je 0x476723
push str.BluetoothFindFirstDevice
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4779d4
mov ebx, eax
push str.BluetoothFindNextDevice
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4779db
push str.BluetoothFindDeviceClose
mov dword [esp + 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4779ee
mov dword [esp + 0x18], eax
movups xmm0, xmmword [0x4f7f48]
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [0x4f7f38]
movaps xmmword [esp + 0x50], xmm0
lea esi, [esp + 0x78]
push 0x230
push 0
push esi
call sym._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 0x4779f5
mov esi, dword [ebp + 8]
jmp 0x476758
mov edi, str.dlopen_bthprops.cpl_failed
jmp 0x477a18
cmp dword [edi + 0x18], 0
je 0x47732b
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 0x4779e2
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0xc]
jne 0x476785
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 sym._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 sym._wcslen
add esp, 4
push edi
push eax
push esi
call dbg.ffStrbufSetNWS
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 0x4f7f95
push dword [esp + 0x24]
call dbg.ffStrbufAppendF
add esp, 0x20
mov eax, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
bt dword [esp + 0x4c], 0xd
mov dword [esp + 0xc], esi
jae 0x47693a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476888
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x1b
jae 0x4768ca
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 0x4768a0
test eax, eax
je 0x4768cf
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476902
mov ebx, dword [edi + 0x20]
jmp 0x47690b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4768f8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x4768ff
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 [0x4f7fbe]
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 0x476a09
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x47695f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xa
jae 0x47699a
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 0x476970
test eax, eax
je 0x47699f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x4769d2
mov ebx, dword [edi + 0x20]
jmp 0x4769db
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4769c8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x4769cf
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 0x476ada
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476a2e
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x19
jae 0x476a6a
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 0x476a40
test eax, eax
je 0x476a6f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476aa2
mov ebx, dword [edi + 0x20]
jmp 0x476aab
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476a98
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476a9f
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 [0x4f7fe3]
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 0x476baf
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476aff
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xd
jae 0x476b3a
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 0x476b10
test eax, eax
je 0x476b3f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476b72
mov ebx, dword [edi + 0x20]
jmp 0x476b7b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476b68
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476b6f
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 0x476c8a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476bd4
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xc
jae 0x476c1a
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 0x476bf0
test eax, eax
je 0x476c1f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476c52
mov ebx, dword [edi + 0x20]
jmp 0x476c5b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476c48
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476c4f
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 0x476d5a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476caf
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x476cea
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 0x476cc0
test eax, eax
je 0x476cef
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476d22
mov ebx, dword [edi + 0x20]
jmp 0x476d2b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476d18
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476d1f
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 0x476e2a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476d7f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x476dba
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 0x476d90
test eax, eax
je 0x476dbf
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476df2
mov ebx, dword [edi + 0x20]
jmp 0x476dfb
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476de8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476def
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 0x476ef3
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476e4f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0x11
jae 0x476e8a
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 0x476e60
test eax, eax
je 0x476e8f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476ec2
mov ebx, dword [edi + 0x20]
jmp 0x476ecb
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476eb8
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476ebf
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 0x476fc2
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476f18
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 7
jae 0x476f5a
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 0x476f30
test eax, eax
je 0x476f5f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x476f92
mov ebx, dword [edi + 0x20]
jmp 0x476f9b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x476f88
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x476f8f
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 0x47709a
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x476fe7
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xb
jae 0x47702a
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 0x477000
test eax, eax
je 0x47702f
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x477062
mov ebx, dword [edi + 0x20]
jmp 0x47706b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x477058
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x47705f
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 0x477168
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
test eax, eax
je 0x4770bf
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xd
jae 0x4770fa
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 0x4770d0
test eax, eax
je 0x4770ff
push edi
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
call sym._realloc
add esp, 8
mov ebx, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 8], eax
jmp 0x477132
mov ebx, dword [edi + 0x20]
jmp 0x47713b
push edi
call sym._malloc
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x477128
lea eax, [esi + 1]
push eax
mov esi, dword [esp + 0x10]
push dword [esi + 0x20]
push ebx
call sym._memcpy
add esp, 0xc
jmp 0x47712f
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 0x477210
mov esi, dword [edi + 0x20]
cmp byte [eax + esi - 1], 0x20
jne 0x477292
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [edi + 0x1c], eax
cmp ebx, 2
je 0x477278
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x20
je 0x477190
cmp dword [edi + 0x18], 0
jne 0x477282
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 0x4771d0
push edi
call sym._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 sym._memcpy
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [edi + 0x1c], eax
jmp 0x477282
mov eax, dword [esp + 0x88]
shr eax, 8
and eax, 0x1f
cmp eax, 0x1f
ja case.0x477226.10
jmp dword [eax*4 + 0x4f80c8]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x477244
cmp eax, 0xe
jae 0x4776b8
mov ecx, eax
cmp eax, 1
ja 0x477250
mov ecx, 0x20
nop dword [eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xe
jb 0x477250
test eax, eax
je 0x477730
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477741
cmp dword [edi + 0x18], 0
je 0x47732b
mov byte [esi + ebx - 2], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x476740
mov esi, dword [edi + 0x20]
cmp byte [eax + esi - 1], 0x2c
jne 0x476740
inc eax
nop word cs:[eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [edi + 0x1c], eax
cmp ebx, 2
je 0x47672d
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x2c
je 0x4772b0
cmp dword [edi + 0x18], 0
jne 0x476737
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 0x4772f0
push edi
call sym._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 sym._memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x476737
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [edi + 0x20], eax
jmp 0x476740
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47735d
cmp eax, 9
jae 0x4776c2
mov ecx, eax
cmp eax, 1
ja 0x477370
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 9
jb 0x477370
test eax, eax
je 0x477765
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477776
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4773af
cmp eax, 6
jae 0x4776cc
mov ecx, eax
cmp eax, 1
ja 0x4773c0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 6
jb 0x4773c0
test eax, eax
je 0x47778d
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x47779e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4773ff
cmp eax, 0x19
jae 0x4776d6
mov ecx, eax
cmp eax, 1
ja 0x477410
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0x19
jb 0x477410
test eax, eax
je 0x4777c3
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4777d4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47744f
cmp eax, 0xc
jae 0x4776e0
mov ecx, eax
cmp eax, 1
ja 0x477460
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xc
jb 0x477460
test eax, eax
je 0x477806
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477817
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47749f
cmp eax, 0xb
jae 0x4776ea
mov ecx, eax
cmp eax, 1
ja 0x4774b0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xb
jb 0x4774b0
test eax, eax
je 0x477847
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477858
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4774ef
cmp eax, 8
jae 0x4776f4
mov ecx, eax
cmp eax, 1
ja 0x477500
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 8
jb 0x477500
test eax, eax
je 0x477887
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477898
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47753f
cmp eax, 9
jae 0x4776fe
mov ecx, eax
cmp eax, 1
ja 0x477550
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 9
jb 0x477550
test eax, eax
je 0x4778af
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4778c0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47758f
cmp eax, 4
jae 0x477708
mov ecx, eax
cmp eax, 1
ja 0x4775a0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 4
jb 0x4775a0
test eax, eax
je 0x4778e8
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4778f9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4775df
cmp eax, 7
jae 0x477712
mov ecx, eax
cmp eax, 1
ja 0x4775f0
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 7
jb 0x4775f0
test eax, eax
je 0x47791d
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x47792e
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47762f
cmp eax, 8
jae 0x47771c
mov ecx, eax
cmp eax, 1
ja 0x477640
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 8
jb 0x477640
test eax, eax
je 0x47799b
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x4779ac
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47767f
cmp eax, 0xe
jae 0x477726
mov ecx, eax
cmp eax, 1
ja 0x477690
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xe
jb 0x477690
test eax, eax
je 0x477955
push esi
push dword [edi + 0x20]
call sym._realloc
add esp, 8
mov dword [edi + 0x20], eax
mov ecx, dword [edi + 0x1c]
jmp 0x477966
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477744
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477779
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4777a1
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4777d7
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47781a
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47785b
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x47789b
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4778c3
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4778fc
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477931
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x4779af
mov eax, dword [edi + 0x20]
xor ecx, ecx
jmp 0x477969
push esi
call sym._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 0x477985
push esi
call sym._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 0x4778d2
push esi
call sym._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 0x476740
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [edi + 0x20], eax
xor ecx, ecx
mov dword [edi + 0x18], esi
movsd xmm0, qword [0x4f807f]
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 0x476740
push esi
call sym._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 0x476740
push esi
call sym._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 0x476740
push esi
call sym._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 0x4779be
push esi
call sym._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 0x476740
push esi
call sym._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 0x476740
push esi
call sym._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 0x476740
push esi
call sym._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 0x476740
push esi
call sym._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 0x476740
mov edi, str.dlsym_BluetoothFindFirstDevice_failed
jmp 0x477a11
mov edi, str.dlsym_BluetoothFindNextDevice_failed
jmp 0x477a11
push dword [esp + 0x14]
call dword [esp + 0x1c]
xor edi, edi
jmp 0x477a0d
mov edi, str.dlsym_BluetoothFindDeviceClose_failed
jmp 0x477a0d
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