Function at 0x406450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push edi
push 0xfb
push ebx
mov dword [ebp - 0x870], ecx
mov dword [ebp - 0x878], ebx
call esi
cmp eax, 1
jne 0x40648c
xor esi, esi
jmp 0x4064b1
push 0xfc
push ebx
call esi
cmp eax, 1
jne 0x40649d
mov esi, eax
jmp 0x4064b1
push 0xfd
push ebx
call esi
lea esi, [eax - 1]
neg esi
sbb esi, esi
neg esi
add esi, 2
push 0x112
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
mov dword [ebp - 0x874], eax
call edi
push 0x113
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
mov dword [ebp - 0x880], eax
call edi
push 0x114
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov dword [ebp - 0x87c], eax
call edi
push 0xfa
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
mov dword [ebp - 0x868], eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jmp dword [esi*4 + 0x4068f0]
lea eax, [ebp - 0x864]
mov dword [ebp - 0x864], 0x230
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x634]
movups xmmword [ebp - 0x634], xmm0
push eax
movups xmmword [ebp - 0x624], xmm0
mov dword [ebp - 0x634], 0x20
mov dword [ebp - 0x62c], 1
call dword [sym.imp.bthprops.cpl_BluetoothFindFirstDevice]
mov dword [ebp - 0x868], eax
test eax, eax
je 0x406648
mov eax, dword [ebp - 0x870]
mov ebx, dword [ebp - 0x868]
mov dword [eax + 0x148], 0
nop word [eax + eax]
mov ecx, dword [ebp - 0x85c]
mov eax, dword [ebp - 0x858]
mov byte [ebp - 0x10], cl
shrd ecx, eax, 8
push 0x106
shr eax, 8
mov byte [ebp - 0xf], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [ebp - 0xe], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [ebp - 0xd], cl
shrd ecx, eax, 8
shr eax, 8
mov byte [ebp - 0xc], cl
shrd ecx, eax, 8
shr eax, 8
mov dword [ebp - 0x868], eax
mov byte [ebp - 0xb], cl
call fcn.0041c7b3
mov ecx, dword [ebp - 0x10]
lea esi, [ebp - 0x824]
mov edx, eax
add esp, 4
mov dword [ebp - 0x868], edx
mov dword [edx], ecx
lea edi, [edx + 6]
mov cx, word [ebp - 0xc]
mov word [edx + 4], cx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x870]
mov eax, dword [ecx + 0x148]
mov dword [ecx + eax*4 + 8], edx
lea eax, [ebp - 0x864]
inc dword [ecx + 0x148]
push eax
push ebx
call dword [sym.imp.bthprops.cpl_BluetoothFindNextDevice]
test eax, eax
jne 0x406590
push ebx
call dword [sym.imp.bthprops.cpl_BluetoothFindDeviceClose]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 0x874]
push 5
push esi
call edi
mov eax, dword [ebp - 0x870]
push 0x100
push 0x426ba8
cmp dword [eax + 0x148], 0
jne 0x40668c
push 0x9b
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x426ba8
push 0
push 0xc
push esi
jmp 0x406769
push 0x9a
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x426ba8
push 0
push 0xc
push esi
call ebx
push 5
push dword [ebp - 0x87c]
call edi
push 0x114
push dword [ebp - 0x878]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x14b
push eax
mov dword [ebp - 0x868], eax
call ebx
lea ecx, [ebp - 0x10]
call fcn.00401c70
mov ecx, dword [ebp - 0x870]
xor edi, edi
xor esi, esi
mov eax, dword [ecx + 0x148]
mov dword [ebp - 0x878], eax
test eax, eax
jle 0x406736
cmp esi, dword [ecx + 0x148]
jge 0x406706
mov ecx, dword [ecx + esi*4 + 8]
jmp 0x406708
xor ecx, ecx
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
cmp eax, dword [edx]
lea eax, [ecx + 6]
push eax
push 0
push 0x143
push dword [ebp - 0x868]
cmove edi, esi
call ebx
mov ecx, dword [ebp - 0x870]
inc esi
cmp esi, dword [ebp - 0x878]
jl 0x4066f8
jmp 0x40675b
xor edi, edi
test eax, eax
jne 0x40675b
mov edi, dword [ebp - 0x868]
push str._No_device_
push eax
push 0x143
push edi
call ebx
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor edi, edi
push 0
push edi
push 0x14e
push dword [ebp - 0x868]
call ebx
push 0x200
lea eax, [ebp - 0x614]
push eax
push 0x96
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x4068ca
push 0x200
lea eax, [ebp - 0x614]
push eax
push 0x97
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x4068ca
lea eax, [ebp - 0x614]
push eax
push 0
push 0xc
push dword [ebp - 0x880]
call ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 4