Function at 0x10036814
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x280
lea ebp, [esp - 4]
mov eax, dword [0x10113a30]
xor eax, ebp
mov dword [ebp + 0x280], eax
push 0x28
mov eax, 0x100bee7f
call fcn.10092efa
mov esi, ecx
xor ebx, ebx
push pe_nt_image_headers32
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.1008ef90
lea eax, [ebp]
push eax
call fcn.1000a470
add esp, 0x10
add esi, 0x84
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp]
push eax
call esi
push 0x100cdb34
lea eax, [ebp]
push eax
call esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007f0d
push str.WifiDirectWpseProfile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100139af
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
je 0x10036920
push dword [ebp - 0x14]
lea eax, [ebp + 0x200]
push str.RegOpenKeyEx__hs_failed_n
push eax
call fcn.1008e5f7
lea eax, [ebp + 0x200]
push eax
push 1
call fcn.1000926a
mov ecx, dword [ebp - 0x14]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp + 0x28c]
add ecx, 0xfffffff0
call fcn.10001210
push 0xfffffffffffffffc
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x280]
xor ecx, ebp
call fcn.1008e5e8
add ebp, 0x284
leave
ret 4
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x180]
push eax
mov dword [ebp - 0x24], ebx
push ebx
jmp 0x10036a3a
push 0x100cdb34
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002a739
lea ecx, [ebp + 0x180]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.1002a739
add esp, 0x18
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10001210
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x10036a6b
mov eax, 0x80
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x100]
push ebx
push eax
call fcn.1008ef90
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x100ce4d0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100369eb
lea eax, [ebp + 0x200]
push str.RegQueryValueEx_REGSTR_PROFILE_SSID_failed_n
push eax
call fcn.1008e5f7
lea eax, [ebp + 0x200]
push eax
push 1
call fcn.1000926a
add esp, 0x10
jmp 0x10036a05
lea eax, [ebp + 0x100]
push eax
lea ecx, [ebp + 0x28c]
call fcn.1000aaa5
test eax, eax
je 0x10036acc
cmp dword [ebp - 0x18], ebx
je 0x10036a13
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.10001210
inc dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x180]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
mov byte [ebp + 0x180], bl
mov dword [ebp - 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1003693b
cmp dword [ebp - 0x10], ebx
je 0x10036a66
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x10036aac
push dword [ebp - 0x20]
lea eax, [ebp + 0x200]
push str.RegOpenKeyEx__hs_failed_n
push eax
call fcn.1008e5f7
lea eax, [ebp + 0x200]
push eax
push 1
call fcn.1000926a
add esp, 0x14
cmp dword [ebp - 0x10], ebx
je 0x10036a9e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xfffffffffffffffc
mov ecx, dword [ebp - 0x20]
pop esi
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001210
mov ecx, dword [ebp + 0x28c]
add ecx, 0xfffffff0
call fcn.10001210
mov eax, esi
jmp 0x100368fb
cmp dword [ebp - 0x18], ebx
je 0x10036ada
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x10036ae8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffe2
jmp 0x10036aa0