Function at 0x406130
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0xfb
push esi
call edi
cmp eax, 1
je 0x40630b
push 0xfc
push esi
call edi
cmp eax, 1
je 0x4062c6
push 0xfd
push esi
call edi
push 0xfa
push esi
cmp eax, 1
jne 0x406228
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x404]
push ecx
push 0xff
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x42667c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406219
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
push 0x422a8c
push eax
call esi
mov eax, dword [0x42667c]
mov dword [ebp - 0x40c], 3
jmp 0x4063d7
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x404]
push ecx
push 0xff
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x42667c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4062b7
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
push str.hotspot
push eax
call esi
mov eax, dword [0x42667c]
mov dword [ebp - 0x40c], 4
jmp 0x4063d7
mov eax, dword [0x42667c]
mov dword [ebp - 0x40c], 2
test eax, eax
je 0x4063f0
push 4
lea ecx, [ebp - 0x40c]
push ecx
push 4
push 0
push str.transport
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 4
push 0x114
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov esi, eax
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x406405
cmp eax, dword [ebx + 0x148]
jge 0x406405
lfence
mov eax, dword [ebx + eax*4 + 8]
test eax, eax
je 0x406405
mov ecx, dword [eax]
mov ax, word [eax + 4]
mov word [ebp - 0x408], ax
movzx eax, ax
shr eax, 8
push eax
movzx eax, byte [ebp - 0x408]
push eax
mov eax, ecx
mov dword [ebp - 0x40c], ecx
shr eax, 0x18
push eax
mov eax, ecx
shr ecx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x40c]
push eax
lea eax, [ebp - 0x104]
push str._d:_d:_d:_d:_d:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x42667c]
add esp, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4063cd
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0
push str.bluetoothDevice
push eax
call esi
mov eax, dword [0x42667c]
mov dword [ebp - 0x40c], 1
test eax, eax
je 0x4063f0
push 4
lea ecx, [ebp - 0x40c]
push ecx
push 4
push 0
push str.transport
push eax
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 4
push 0x100
push 0x426ba8
push 0x9b
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x30
push 0
push 0x426ba8
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 4