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

Disassembly:
push 0x9c
mov eax, 0x420e71
call fcn.0041f3e2
xor ecx, ecx
push ecx
push ecx
mov eax, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4196bf
mov eax, dword [ebp - 0x24]
xor ecx, ecx
push 2
inc eax
pop edi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041de34
mov ebx, eax
mov dword [ebp - 0x44], ebx
pop ecx
test ebx, ebx
je 0x4196bf
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
call fcn.0041de34
mov esi, eax
mov dword [ebp - 0x3c], esi
pop ecx
test esi, esi
jne 0x4196c9
push ebx
call fcn.0041de3f
pop ecx
xor eax, eax
call fcn.0041f3b0
ret 0x10
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov byte [esi + eax], cl
mov eax, dword [ebp - 0x14]
mov byte [esi + eax + 1], cl
imul eax, dword [ebp - 0x14], 6
add eax, 0x40
mov dword [ebp - 0x54], eax
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041de34
mov edi, eax
mov dword [ebp - 0x40], edi
pop ecx
test edi, edi
jne 0x41970b
push esi
call fcn.0041de3f
push ebx
call fcn.0041de3f
pop ecx
jmp 0x4196be
mov eax, dword [ebp + 0xc]
imul ecx, dword [ebp - 0x14], 6
push 2
pop edx
mov eax, dword [eax]
add ecx, dword [eax - 8]
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
add eax, 0x47
add eax, ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041de34
mov dword [ebp - 0x20], eax
pop ecx
test eax, eax
jne 0x419758
push edi
call fcn.0041de3f
push esi
call fcn.0041de3f
push ebx
call fcn.0041de3f
add esp, 0xc
jmp 0x4196bf
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xa4], 0xffff0002
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ecx
push eax
push ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0xa0], 5
push eax
push ebx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4197b8
cmp eax, 0x103
jne 0x419a57
cmp eax, 0x103
je 0x419946
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4198f7
push 2
pop ecx
cmp eax, ecx
jbe 0x4198f4
cmp eax, 3
je 0x41987a
cmp eax, 4
je 0x419862
cmp eax, 5
je 0x419843
cmp eax, 7
jne 0x4198f7
mov ecx, dword [ebp - 0x54]
mov edx, esi
dec ecx
sub edx, edi
push 2
mov eax, edi
xor ebx, ebx
lea ecx, [edi + ecx*2]
pop edi
push 0x20
mov dword [ebp - 0x18], ecx
pop esi
movzx ecx, word [edx + eax]
test cx, cx
jne 0x41981d
cmp word [edx + eax + 2], bx
je 0x419830
cmp eax, dword [ebp - 0x18]
jae 0x419830
test cx, cx
jne 0x419829
mov ecx, esi
mov word [eax], cx
add eax, edi
jmp 0x41980d
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
jmp 0x419903
push dword [esi]
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
push 0x405b28
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x419903
push dword [esi]
push dword [esi]
push 0x405b48
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x419903
imul eax, dword [ebp - 0x14], 6
inc eax
push eax
xor eax, eax
push eax
push edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], eax
jbe 0x419905
inc eax
mov dword [ebp - 0x58], esi
sub eax, esi
mov ebx, edi
mov edi, esi
mov dword [ebp - 0x5c], eax
mov esi, eax
mov al, byte [edi]
cmp al, 0x10
jae 0x4198bc
push 0x30
pop eax
mov word [ebx], ax
lea eax, [ebx + 2]
push 0x10
push eax
movzx eax, byte [edi]
jmp 0x4198c2
push 0x10
push ebx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__itow]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + edi]
add esp, 0xc
cmp eax, ecx
jae 0x4198e0
push 0x20
pop eax
mov word [ebx + 4], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add ebx, 6
inc edx
inc edi
mov dword [ebp - 0x18], edx
cmp edx, ecx
jb 0x4198a5
jmp 0x419835
push esi
jmp 0x4198fc
push 0x405b60
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
cmp word [ebx], ax
mov eax, dword [ebp + 0xc]
push edi
jne 0x419930
cmp dword [ebp - 0x60], 1
push dword [eax]
jne 0x41991d
push 0x405a54
jmp 0x419922
push 0x405ba0
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x41995c
push ebx
push dword [eax]
push 0x405bc8
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x41995c
xor eax, eax
mov word [ebx], ax
mov word [edi], ax
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x20]
push 0x14
mov dword [ebp - 0x90], eax
call fcn.0041de06
pop ecx
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x4199c1
push edi
lea ecx, [ebp - 0x4c]
call sub.MFC42u.dll_CString::CString_1
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
or eax, 1
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call sub.MFC42u.dll_CString::CString_1
mov eax, dword [ebp - 0x10]
push 2
pop ecx
or eax, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call fcn.004193af
jmp 0x4199c3
mov eax, ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x10]
test al, 2
je 0x4199de
and eax, 0xfffffffd
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test al, 1
je 0x4199f4
and eax, 0xfffffffe
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x7c], 0
je 0x419a4c
lea eax, [ebp - 0xa8]
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 8]
push 0x1132
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
inc eax
inc ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], eax
push ecx
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x34]
push ecx
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x2c], eax
jmp 0x419a4f
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4197b8
push ebx
call fcn.0041de3f
push esi
call fcn.0041de3f
push edi
call fcn.0041de3f
push dword [ebp - 0x20]
call fcn.0041de3f
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041de34
mov esi, eax
add esp, 0x14
test esi, esi
je 0x419b27
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov ebx, dword [ebp + 0x10]
inc ecx
push ecx
push esi
mov edi, eax
push eax
jmp 0x419b15
lea eax, [ebp - 0x28]
push eax
push 0x20019
xor eax, eax
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419b0d
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42u.dll_CString::CString_1
push dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push dword [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.00419634
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x38]
push 2
pop eax
push eax
mov eax, dword [ebp + 8]
push 0x1102
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
inc edi
inc eax
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x419aa6
push esi
call fcn.0041de3f
pop ecx
xor eax, eax
inc eax
jmp 0x4196c1