Function at 0x1002f562
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x304
lea ebp, [esp - 4]
mov eax, dword [0x10113a30]
xor eax, ebp
mov dword [ebp + 0x304], eax
push 0x3c
mov eax, 0x100be8a3
call fcn.10092efa
mov esi, ecx
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x101]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x100], bl
call fcn.1008ef90
add esp, 0xc
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.1006f7ae
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004d63
mov byte [ebp - 4], 1
call fcn.1006f7ae
push eax
lea ecx, [ebp - 0x14]
call fcn.10004d63
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.10009e6a
cmp dword [ebp - 0x20], 0xb
pop ecx
lea eax, [ebp + 0x204]
jl 0x1002f5f6
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318_
jmp 0x1002f5fb
push str.SYSTEMCurrentControlSetServicesClassNet_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0x84
push esi
lea eax, [ebp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.WifiDirectWpseProfile
lea eax, [ebp + 0x204]
push eax
lea eax, [ebp - 0x1c]
push 0x100cda14
push eax
call fcn.10005cfd
mov edi, dword [ebp - 0x1c]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002f6f3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x100]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], ebx
je 0x1002f6f3
xor esi, esi
cmp dword [ebp - 0x18], ebx
jbe 0x1002f6f3
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1002f6ed
push 0x100cdb5f
lea ecx, [ebp - 0x14]
call fcn.10005cd8
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push 0x100cef18
push eax
call fcn.10005cfd
add esp, 0xc
push dword [ebp - 0x14]
lea ecx, [ebp + 0x310]
call fcn.1000aaa5
test eax, eax
je 0x1002f717
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x1002f695
cmp dword [ebp - 0x10], ebx
je 0x1002f704
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push str._RC__RaWLAPI__CheckDuplicatedProfileNameByReg__:_RAWL_ERROR_SUCCESS_n
push 3
call fcn.1000926a
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x1002f739
cmp dword [ebp - 0x10], ebx
je 0x1002f728
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push str._RC__RaWLAPI__CheckDuplicatedWifiDirectWpseProfileNameByReg__:_RAWL_ERROR_DUPLICATE_PROFILE_n
push 3
call fcn.1000926a
pop ecx
pop ecx
push 0xfffffffffffffff0
pop esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001210
lea ecx, [edi - 0x10]
call fcn.10001210
mov ecx, dword [ebp + 0x310]
add ecx, 0xfffffff0
call fcn.10001210
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 + 0x304]
xor ecx, ebp
call fcn.1008e5e8
add ebp, 0x308
leave
ret 4