Function at 0x1027ce9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x318]
push edx
push 0x20019
mov dword [ebp - 0x328], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027f56
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
jmp 0x1027eb0
mov eax, dword [ebp - 0x324]
dec eax
je 0x1027e26
dec eax
dec eax
je 0x1027db6
dec eax
jne 0x1027e63
mov eax, dword [edi]
push 1
push dword [ebp - 0x108]
lea ecx, [ebp - 0x310]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call dword [eax + 0x4c]
jmp 0x1027e55
mov ecx, dword [ebp - 0x328]
lea eax, [ebp - 0x310]
push eax
call fcn.0102786c
test eax, eax
je 0x1027de9
push dword [ebp - 0x314]
mov eax, dword [edi]
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x310]
push ecx
mov ecx, edi
call dword [eax + 0x40]
jmp 0x1027e1c
lea eax, [ebp - 0x310]
push 0x1007638
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1027e04
mov word [eax], bx
mov eax, dword [edi]
push 1
lea ecx, [ebp - 0x108]
push ecx
push ebx
lea ecx, [ebp - 0x310]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov dword [ebp - 0x314], eax
cmp eax, ebx
jmp 0x1027e5d
mov ecx, dword [ebp - 0x328]
push esi
lea eax, [ebp - 0x310]
push eax
call fcn.01027c6a
test eax, eax
je 0x1027e63
mov eax, dword [edi]
push 1
lea ecx, [ebp - 0x108]
push ecx
push ebx
lea ecx, [ebp - 0x310]
push ecx
mov ecx, edi
call dword [eax + 0x38]
cmp eax, ebx
mov dword [ebp - 0x314], eax
je 0x1027f0d
inc dword [ebp - 0x320]
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x320]
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x1027d81
cmp eax, 0x103
jne 0x1027ed7
mov dword [ebp - 0x314], 1
jmp 0x1027f0d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027f07
test byte [eax + 0x1c], 2
je 0x1027f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100760c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e4a
mov dword [ebp - 0x314], ebx
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
pop esi
je 0x1027f4e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027f4e
test byte [eax + 0x1c], 2
je 0x1027f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100760c
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e4a
mov eax, dword [ebp - 0x314]
jmp 0x1027f88
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027f86
test byte [eax + 0x1c], 2
je 0x1027f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x100760c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010356d1
leave
ret 0xc