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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0xc174
call fcn.004d7290
sub esp, eax
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x813c], 0
mov byte [ebp - 0x121], 0
mov byte [ebp - 0x1d], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x130]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x12c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x128]
mov dword [esp + 8], eax
lea eax, [ebp - 0x121]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
call eax
sub esp, 0x30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x410a9c
mov eax, 0
jmp 0x410d8f
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x410d8a
mov byte [ebp - 0x131], 0
mov byte [ebp - 0x4131], 0
mov byte [ebp - 0x813d], 0
mov dword [ebp - 0xc], 0
jmp 0x410d78
mov dword [ebp - 0x8134], 0x3fff
mov dword [ebp - 0x8138], 0x3fff
mov byte [ebp - 0x4130], 0
mov byte [ebp - 0x8130], 0
mov byte [ebp - 0xc13c], 0
lea eax, [ebp - 0x8138]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x8130]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x813c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x8134]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4130]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
call eax
sub esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410d89
movzx eax, byte [ebp - 0x4130]
test al, al
jne 0x410b6b
mov byte [ebp - 0x4130], 0x40
mov byte [ebp - 0x412f], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4130]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__stricmp]
call eax
test eax, eax
jne 0x410d73
cmp dword [ebp + 0x18], 0
jne 0x410b9a
mov eax, 1
jmp 0x410d8f
mov eax, dword [ebp - 0x813c]
cmp eax, 7
je 0x410bf7
cmp eax, 7
ja 0x410cbc
cmp eax, 2
ja 0x410bbc
test eax, eax
jne 0x410bca
jmp 0x410cbc
cmp eax, 4
je 0x410c8b
jmp 0x410cbc
lea eax, [ebp - 0x8130]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4ec08c
mov dword [esp + 4], 0x4000
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._snprintf_8
jmp 0x410d4c
mov dword [ebp - 0x18], 0x3fff
lea eax, [ebp - 0x8130]
mov dword [ebp - 0x14], eax
jmp 0x410c7c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strlen
cmp dword [ebp - 0x18], eax
jle 0x410c6b
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._strncat
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strlen
sub ebx, eax
mov edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
lea eax, [ebp - 0xc13c]
add eax, edx
mov word [eax], 0x20
sub dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strlen
add eax, 1
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test al, al
jne 0x410c09
jmp 0x410d4c
movzx eax, byte [ebp - 0x8130]
movsx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4ec131
mov dword [esp + 4], 0x3fff
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._snprintf_8
jmp 0x410d4c
mov dword [ebp - 0x18], 0x3ffd
mov dword [ebp - 0x10], 0
jmp 0x410d40
lea edx, [ebp - 0x8130]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4ec134
mov dword [esp + 4], 0xc
lea eax, [ebp - 0xc148]
mov dword [esp], eax
call sym._snprintf_8
cmp dword [ebp - 0x18], 2
jle 0x410d3c
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc148]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._strncat
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call sym._strlen
mov edx, 0x3ffd
sub edx, eax
mov dword [ebp - 0x18], edx
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x8138]
cmp dword [ebp - 0x10], eax
jb 0x410ccc
nop
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0xc13c]
mov dword [esp], eax
call dbg.pt_matches
test eax, eax
je 0x410d6c
mov eax, 1
jmp 0x410d8f
mov eax, 0
jmp 0x410d8f
nop
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0xc], eax
jb 0x410acb
jmp 0x410d8a
nop
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret