Function at 0x421978
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
call fcn.0040265a
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4219e2
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4219f3
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004026cf
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x421a24
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
call fcn.00401fb4
test eax, eax
je 0x421b90
lea eax, [ebp - 0x10]
push eax
call fcn.004028f2
test eax, eax
je 0x421b8b
push 0x80000301
push 0
push 0x20019
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 1
push 3
mov ebx, 0xc8
call fcn.004278d0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x421aba
push 0x138
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x421b83
push 0x45131a
push dword [ebp - 0xc]
call fcn.00401000
add esp, 8
cmp eax, 0
jne 0x421aec
mov dword [ebp - 0x18], 1
jmp 0x421b57
push dword [ebp - 0x14]
call fcn.00402a6c
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421b05
add eax, 8
push eax
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x421b3c
push 0x20e
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x421b4f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call fcn.00402b5e
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x421b83
push 0x299
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00402c50
jmp 0x421cb1
push 0x80000301
push 0
push 0x20019
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.004278d0
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x421bf8
push 0x354
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x421cb1
push 0x45131a
push dword [ebp - 0xc]
call fcn.00401000
add esp, 8
cmp eax, 0
jne 0x421c2a
mov dword [ebp - 0x18], 1
jmp 0x421c85
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421c3b
add eax, 8
push eax
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x421c72
push 0x41a
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x421c85
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x421cb1
push 0x49e
push 0x4010134
push 6
call fcn.004268b5
add esp, 0xc
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
jmp 0x421cc2
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x421cd3
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x421ce3
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x421cf3
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8