Function at 0x4019b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov ebp, edx
mov dword [esp], eax
lea eax, [esp + 0x14]
mov edx, 0x1000
call fcn.004014b4
cmp dword [esp + 0x14], 0
je 0x401cec
mov eax, dword [esp]
call fcn.00401818
mov ebx, eax
mov eax, dword [esp]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x4019fa
xor eax, eax
mov dword [esp], eax
jmp 0x4019fe
add dword [esp], 2
lea eax, [esp + 4]
push eax
push 1
push 0
mov eax, dword [esp + 0xc]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x401cec
xor esi, esi
xor edi, edi
lea eax, [esp + 0x1c]
mov edx, 0x3fff
call fcn.004014ec
push 1
xor ecx, ecx
mov dl, 0x49
mov eax, ebp
call fcn.004031c0
cmp dword [esp + 0x1c], 0
je 0x401cb9
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push eax
push esi
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
lea eax, [esp + 0x10]
mov edx, dword [esp + 0xc]
call fcn.004014b4
cmp dword [esp + 0x10], 0
je 0x401ca8
mov dword [esp + 8], 0x3fff
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
push eax
push esi
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x401c9f
cmp dword [esp + 0xc], 0
jbe 0x401bdb
cmp dword [esp + 0x18], 4
jne 0x401af9
lea eax, [esp + 0x28]
mov edx, 5
call fcn.004014ec
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push eax
push 0x401cf4
mov eax, dword [esp + 0x30]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
jmp 0x401bf8
cmp dword [esp + 0x18], 7
jne 0x401b63
mov eax, dword [esp + 0xc]
dec eax
test eax, eax
jl 0x401b3a
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp byte [eax + edx], 0
jne 0x401b30
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov byte [eax + edx], 0x20
inc dword [esp + 0x20]
dec dword [esp + 0x38]
jne 0x401b16
lea eax, [esp + 0x28]
mov edx, dword [esp + 0xc]
call fcn.004014ec
mov eax, dword [esp + 0x10]
push eax
push 0x401cf8
mov eax, dword [esp + 0x30]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
jmp 0x401bf8
cmp dword [esp + 0x18], 3
jne 0x401bbd
mov edx, dword [esp + 0xc]
lea edx, [edx + edx*2]
lea eax, [esp + 0x28]
call fcn.004014ec
mov eax, dword [esp + 0xc]
dec eax
test eax, eax
jl 0x401bf8
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
push 0x401cfc
lea eax, [esp + 0x34]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_lstrcatA
inc dword [esp + 0x10]
dec dword [esp + 0x38]
jne 0x401b88
jmp 0x401bf8
lea eax, [esp + 0x28]
mov edx, dword [esp + 0xc]
call fcn.004014ec
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_lstrcpyA
jmp 0x401bf8
lea eax, [esp + 0x28]
mov edx, 0xa
call fcn.004014ec
push 0x401d00
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_lstrcatA
mov edx, dword [esp + 0xc]
add edx, 0x12c
lea eax, [esp + 0x24]
call fcn.004014ec
cmp dword [esp + 0x24], 0
je 0x401c4c
mov edx, dword [esp + 0xc]
add edx, 0x12c
mov eax, dword [esp + 0x24]
call fcn.00401538
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0x401d0c
mov eax, dword [esp + 0x34]
push eax
call sub.user32.dll_wsprintfA
add esp, 0x14
mov dword [esp + 0x34], eax
jmp 0x401c52
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
call fcn.00401438
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [esp + 0x24]
call fcn.00401438
add edi, dword [esp + 0x34]
cmp edi, 0x708
jle 0x401c9e
inc edi
push edi
mov ecx, dword [esp + 0x18]
mov dl, 0x4a
mov eax, ebp
call fcn.004031c0
xor edi, edi
mov edx, 0x1000
mov eax, dword [esp + 0x14]
call fcn.00401538
inc esi
mov eax, dword [esp + 0x10]
call fcn.00401438
test ebx, ebx
je 0x401a46
mov eax, dword [esp + 0x1c]
call fcn.00401438
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey
test edi, edi
je 0x401cd6
inc edi
push edi
mov ecx, dword [esp + 0x18]
mov dl, 0x4a
mov eax, ebp
call fcn.004031c0
push 1
xor ecx, ecx
mov dl, 0x4b
mov eax, ebp
call fcn.004031c0
mov eax, dword [esp + 0x14]
call fcn.00401438
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret