Function at 0x408c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
push esi
push edi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareStridensGnotas2
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408e7f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x114]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.Directorio
push eax
mov dword [esp + 0x30], 0x208
call esi
test eax, eax
jne 0x408cb6
xor ecx, ecx
lea eax, [esp + 0x110]
mov word [esp + 0x316], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408c90
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x114]
push edx
add ecx, 0x104
call fcn.00405350
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push str.Configuracion
push ecx
mov dword [esp + 0x30], 0xe8
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push str.SoftwareStridensGnotas2Perfiles
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408db1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
mov dword [esp + 0x30], 0x1a
mov dword [esp + 0x3c], 0x18
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x408da6
add edi, 0x108
mov dword [esp + 0x14], edi
push 0x4c
call fcn.0042ab0b
add esp, 4
test eax, eax
je 0x408d5e
mov ecx, 0x13
lea esi, [esp + 0x20]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x408d60
xor eax, eax
mov ecx, dword [esp + 0x14]
push eax
call fcn.00439f11
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
inc ebx
push ebx
push ecx
mov dword [esp + 0x30], 0x1a
mov dword [esp + 0x3c], 0x18
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x408d41
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareStridensGnotas2Alarmas
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408e7f
xor ebx, ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xf0]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebx
push edx
mov dword [esp + 0x30], 0x3d
mov dword [esp + 0x34], 0x24
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x408e6e
push 0xa0
call fcn.0042ab0b
add esp, 4
test eax, eax
je 0x408e3d
mov ecx, 0x28
lea esi, [esp + 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x408e3f
xor eax, eax
mov edi, dword [ebp + 8]
push eax
lea ecx, [edi + 0xe8]
mov byte [eax + 0x7a], bl
call fcn.00439f11
inc ebx
cmp ebx, 0xff
jbe 0x408ddf
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
push eax
mov byte [edi + 0x12c], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4