Function at 0x10017ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a04]
mov eax, 0x5a04
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e8cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x5a00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x5a0c]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
jne 0x10017d03
mov edx, dword [eax]
mov eax, str.InstallingWSPWi_Fi_Direct_Setting
lea esi, [eax + 2]
jmp 0x10017d10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10017d10
sub eax, esi
sar eax, 1
je 0x10017d3f
lea eax, [ebp - 0x14]
push eax
push str.InstallingWSPWi_Fi_Direct_Setting
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10017d42
mov eax, 1
jmp 0x10017ff9
mov dword [ebp - 0x14], edx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10017d35
push 0x2000
push ebx
lea eax, [ebp + 0x2000]
push eax
call fcn.100c7d20
add esp, 0xc
xor esi, esi
mov edi, 0x1000
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x20]
jge 0x10017f10
push edi
push ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.100c7d20
push 0x200
push ebx
lea edx, [ebp + 0x5800]
push edx
call fcn.100c7d20
add esp, 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x5800]
push ecx
push esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10017f08
push 0x800
push ebx
lea eax, [ebp + 0x5000]
push eax
call fcn.100c7d20
push 1
push 0x800
lea ecx, [ebp + 0x5000]
push ecx
lea edx, [ebp + 0x5800]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x10108140
call fcn.10044220
add esp, 0x20
test eax, eax
jne 0x10017f08
push 0x800
push ebx
lea ecx, [ebp + 0x4800]
push ecx
call fcn.100c7d20
add esp, 0xc
lea ecx, [ebp + 0x4800]
lea edx, [ebp + 0x5000]
call fcn.10017830
test eax, eax
je 0x10017e80
push 0x800
push ebx
lea edx, [ebp + 0x4800]
push edx
call fcn.100c7d20
push 0x3ff
lea eax, [ebp + 0x5000]
push eax
push 0x400
lea ecx, [ebp + 0x4800]
push ecx
call fcn.100c6041
add esp, 0x1c
cmp esi, ebx
jne 0x10017ea6
lea edx, [ebp + 0x5000]
push edx
push str._WIFIDIRECT_current__s__
lea edx, [ebp + 0x2000]
call fcn.1001c660
add esp, 8
add esi, 1
jmp 0x10017d7a
push 0x800
push ebx
lea eax, [ebp + 0x4000]
push eax
call fcn.100c7d20
lea ecx, [ebp + 0x4800]
push ecx
lea edx, [ebp + 0x5800]
push edx
push str.__s_current__s___
lea edx, [ebp + 0x4000]
call fcn.10005c50
lea eax, [ebp + 0x4000]
push eax
push str._Wifi_Direct____s_
mov ecx, 0x10152dd8
call fcn.1003f430
push 0xfff
lea ecx, [ebp + 0x4000]
push ecx
push edi
lea edx, [ebp + 0x2000]
push edx
call fcn.100c6978
add esp, 0x30
add esi, 1
jmp 0x10017d7a
push 0xfff
push str.__WIFIDIRECT_
push edi
lea eax, [ebp + 0x2000]
push eax
call fcn.100c6978
push edi
push ebx
lea ecx, [ebp]
push ecx
call fcn.100c7d20
add esp, 0x1c
push ebx
push ebx
push edi
lea edx, [ebp]
push edx
push 0xffffffffffffffff
lea eax, [ebp + 0x2000]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10017f57
sub eax, edx
mov dword [ebp - 0x18], eax
push ebx
push 0xf8
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
lea ecx, [ebp]
call fcn.10018f40
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x10017f9e
push str.Write_Wifi_Direct_Data_Success___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10017ff7
push str.Write_Wifi_Direct_Data_Fail__
mov ecx, esi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10017ff7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a00]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x5a04
mov esp, ebp
pop ebp
ret 4