Function at 0x402241
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.0040265a
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4022a4
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 0x4022b5
push ebx
call fcn.004268af
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.004026cf
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4022e6
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
call fcn.00401fb4
test eax, eax
je 0x40248e
lea eax, [ebp - 0x10]
push eax
call fcn.004028f2
test eax, eax
je 0x40246a
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 0x402345
push 0x120
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402462
push dword [ebp - 0x14]
call fcn.00402a6c
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40236b
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 0x4023a2
push 0x1a3
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40242e
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x1bc
call fcn.00427600
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4023e2
push ebx
call fcn.004268af
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 0x4023f7
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 0x40242e
push 0x223
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
push dword [ebp - 0x14]
call fcn.00402b5e
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 0x402462
push 0x280
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00402c50
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402484
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402622
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 - 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 0x4024f6
push 0x333
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402603
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402514
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 0x40254b
push 0x38f
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4025d7
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x1bc
call fcn.00427600
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40258b
push ebx
call fcn.004268af
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 0x4025a0
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 0x4025d7
push 0x40f
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
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 0x402603
push 0x452
push 0x401012e
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40261d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402622
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402633
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402643
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402653
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8