Function at 0x1027cd0
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 0x1027f3d
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 0x1027e97
mov eax, dword [ebp - 0x324]
dec eax
je 0x1027e0d
dec eax
dec eax
je 0x1027d9d
dec eax
jne 0x1027e4a
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 0x1027e3c
mov ecx, dword [ebp - 0x328]
lea eax, [ebp - 0x310]
push eax
call fcn.01027853
test eax, eax
je 0x1027dd0
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 0x1027e03
lea eax, [ebp - 0x310]
push 0x1007630
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1027deb
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 0x1027e44
mov ecx, dword [ebp - 0x328]
push esi
lea eax, [ebp - 0x310]
push eax
call fcn.01027c51
test eax, eax
je 0x1027e4a
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 0x1027ef4
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 0x1027d68
cmp eax, 0x103
jne 0x1027ebe
mov dword [ebp - 0x314], 1
jmp 0x1027ef4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027eee
test byte [eax + 0x1c], 2
je 0x1027eee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1007604
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
mov dword [ebp - 0x314], ebx
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
pop esi
je 0x1027f35
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027f35
test byte [eax + 0x1c], 2
je 0x1027f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1007604
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
mov eax, dword [ebp - 0x314]
jmp 0x1027f6f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027f6d
test byte [eax + 0x1c], 2
je 0x1027f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1007604
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01035675
leave
ret 0xc