Function at 0x427090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x47c
lea esi, [esi]
mov eax, dword [ebx*4 + 0x459020]
test eax, eax
je 0x4270be
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx*4 + 0x459020], 0
add ebx, 1
cmp ebx, 8
jne 0x4270a0
mov eax, dword [0x450484]
lea edi, [esp + 0x5c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add eax, 0x1504
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call esi
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x427158
mov dword [esp + 0x38], 0
xor ebx, ebx
mov eax, dword [0x450484]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x20019
add eax, 0x157e
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call esi
sub esp, 0x14
test eax, eax
je 0x427340
add esp, 0x47c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x60]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x3c], eax
call eax
sub esp, 0x30
mov dword [esp + 0x38], eax
test eax, eax
jne 0x427548
mov eax, dword [esp + 0x60]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x427556
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edx, edx
mov dword [esp + 0x48], ebx
lea ebp, [esp + 0x74]
mov dword [esp + 0x40], esi
mov esi, edx
mov dword [esp + 0x44], ecx
mov ebx, eax
jmp 0x42720d
add esi, 1
cmp esi, dword [esp + 0x60]
jae 0x427567
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0xff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 0x20
test eax, eax
jne 0x427200
mov eax, dword [esp + 0x64]
test eax, eax
je 0x427200
mov eax, dword [0x450484]
mov dword [esp], ebp
add eax, 0x14f2
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcsstr
test eax, eax
je 0x427200
lea eax, [esp + 0x68]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ebp
call eax
sub esp, 0x14
test eax, eax
jne 0x427200
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], 0
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call eax
sub esp, 0x30
test eax, eax
jne 0x427323
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x427575
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
call eax
sub esp, 4
jmp 0x427200
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov edi, eax
test eax, eax
jne 0x427525
mov edx, dword [esp + 0x68]
test edx, edx
je 0x427525
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x3c], ebx
lea ebp, [esp + 0x74]
mov ebx, edi
lea esi, [esp + 0x6c]
mov edi, eax
jmp 0x4273e5
add ebx, 1
cmp ebx, dword [esp + 0x68]
jae 0x427521
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], 0xff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
sub esp, 0x20
test eax, eax
jne 0x4273d8
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4273d8
mov eax, dword [0x450484]
mov dword [esp + 0x70], 0x1fe
mov dword [esp + 0x18], 0
add eax, 0x1618
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffff
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
sub esp, 0x1c
cmp eax, 1
mov eax, dword [0x450484]
adc dword [esp + 0x3c], 0
add eax, 0x1656
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll_wcscat_s]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x272]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, dword [0x450484]
mov dword [esp + 0x14], ecx
add eax, 0x163c
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
sub esp, 0x1c
cmp dword [esp + 0x38], 7
jg 0x4273d8
test eax, eax
lea ecx, [esp + 0x272]
jne 0x4273d8
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edx, dword [esp + 0x38]
mov dword [edx*4 + 0x459020], eax
lea eax, [edx + 1]
mov dword [esp + 0x38], eax
jmp 0x4273d8
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
add esp, 0x47c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], 0
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call ecx
sub esp, 4
jmp 0x42710e
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
jmp 0x427556
mov edx, dword [0x450484]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x272]
mov dword [esp + 0x70], 0x1fe
mov dword [esp + 0x18], eax
lea eax, [edx + 0x163c]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
lea eax, [edx + 0x164e]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [esp + 0xc], 2
mov dword [esp + 0x4c], eax
call eax
sub esp, 0x1c
cmp dword [esp + 0x38], 7
jg 0x4275e1
test eax, eax
lea ecx, [esp + 0x272]
je 0x427636
mov eax, dword [0x450484]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea ecx, [eax + 0x1618]
add eax, 0x1632
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], 0xffff
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call eax
sub esp, 0x1c
cmp eax, 1
adc dword [esp + 0x48], 0
jmp 0x427323
mov dword [esp], ecx
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edx, dword [esp + 0x38]
mov dword [edx*4 + 0x459020], eax
lea eax, [edx + 1]
mov dword [esp + 0x38], eax
jmp 0x4275e1