Function at 0x402a45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
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
push dword [ebp + 8]
call fcn.00402e0e
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x402aa8
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00434233
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 0x402ab9
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402ea0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402aea
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
call fcn.004030c3
test eax, eax
je 0x402c6a
lea eax, [ebp - 0x10]
push eax
call fcn.0040321c
test eax, eax
je 0x402c46
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x14]
push eax
push 0x101
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 - 0x20], esp
je 0x402b3f
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402c3e
push dword [ebp - 0x14]
call fcn.00403382
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402b65
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 - 0x20], esp
je 0x402b92
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402c14
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x1bc
call fcn.004355a0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402bd2
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402be7
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 - 0x20], esp
je 0x402c14
push 6
call fcn.00434227
add esp, 4
push dword [ebp - 0x14]
call fcn.00403460
mov dword [ebp - 0x20], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402c3e
push 6
call fcn.00434227
add esp, 4
push dword [ebp - 0x10]
call fcn.0040353e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402c60
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402dd6
push 0x80000301
push 0
push 0x20019
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.004355d0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
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 - 0x24], esp
je 0x402cc8
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402db7
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402ce6
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 - 0x20], esp
je 0x402d13
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402d95
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x1bc
call fcn.004355a0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402d53
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402d68
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 - 0x20], esp
je 0x402d95
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402db7
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402dd1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402dd6
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402de7
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402df7
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402e07
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8