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

Disassembly:
mov eax, 0x42c8f8
call fcn.00421904
sub esp, 0xc70
push ebx
push esi
lea eax, [ebp - 0x34]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push eax
lea eax, [ebp - 0x560]
mov esi, 0x104
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x4040df
lea ecx, [ebp - 0x28]
call fcn.0041f830
lea eax, [ebp - 0x560]
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x30c
call fcn.0041f8a1
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x970]
push 0x437ea8
push eax
call fcn.0041fbe0
test eax, eax
jne 0x4040b0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x970]
push eax
call fcn.004043c5
pop ecx
cmp eax, 3
pop ecx
jne 0x4040b0
lea eax, [ebp - 0x250]
mov ecx, 0x439d88
push eax
call fcn.0041f7ad
push eax
push 0x4320f0
lea eax, [ebp - 0x358]
push esi
push eax
call fcn.004209f2
push dword [ebp - 0x148]
lea eax, [ebp - 0x358]
mov byte [ebp - 0x255], bl
push 0xff000000
push dword [ebp - 0x14c]
push dword [0x441fa4]
push eax
call fcn.0040435d
add esp, 0x28
cmp eax, 0xffffffff
jne 0x404073
lea eax, [ebp - 0x254]
push eax
call fcn.00404315
pop ecx
lea ecx, [ebp - 0x560]
push ecx
push eax
push 1
push dword [ebp - 0x254]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004038a6
add esp, 0x18
cmp eax, ebx
je 0x4040b0
push dword [ebp + 0x14]
lea ecx, [eax + 0xa8]
push ecx
push dword [eax + 0xa4]
push dword [ebp - 0x24]
call fcn.00403f69
add esp, 0x10
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], esi
call fcn.0041f859
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x560]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
jmp 0x403fa5
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404306
cmp dword [ebp - 0x18], 1
jne 0x4042e6
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x30c
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x45c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4042e6
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0xc7c]
push eax
call fcn.004043c5
pop ecx
cmp eax, 6
pop ecx
jne 0x4042e6
lea eax, [ebp - 0x250]
mov ecx, 0x439d88
push eax
call fcn.0041f7ad
push eax
push 0x4320f0
lea eax, [ebp - 0x664]
push esi
push eax
call fcn.004209f2
add esp, 0x14
cmp dword [ebp + 0x14], 2
mov byte [ebp - 0x561], bl
mov dword [ebp - 0x14], ebx
jne 0x404226
push dword [ebp - 0x148]
lea eax, [ebp - 0x664]
push 0xff000000
push dword [ebp - 0x14c]
push dword [0x441fa4]
push eax
call fcn.0040435d
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4041d2
lea eax, [ebp - 0x254]
push eax
call fcn.00404315
pop ecx
lea ecx, [ebp - 0x45c]
push ecx
push eax
push 2
push dword [ebp - 0x254]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004038a6
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x404226
mov edi, dword [eax + 0xac]
lea eax, [ebp - 0x138]
push eax
lea eax, [edi + 8]
push eax
call fcn.00420680
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov eax, dword [eax + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x144]
mov dword [edi + 4], eax
mov dword [edi + 0x408], ebx
lea eax, [ebp - 0x138]
mov ecx, 0x439d88
push eax
call fcn.0041f7ad
push eax
push 0x4320f0
lea eax, [ebp - 0x358]
push esi
push eax
call fcn.004209f2
add esp, 0x14
cmp dword [ebp + 0x14], 2
mov byte [ebp - 0x255], bl
jne 0x40428b
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4042e6
lea ecx, [ebp - 0x45c]
push ecx
push 2
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x358]
push dword [ebp - 0x144]
push ecx
push dword [ebp - 0x140]
push dword [eax + 8]
jmp 0x4042dc
cmp dword [ebp + 0x14], 1
jne 0x4042ad
cmp dword [ebp - 0x144], 4
jne 0x4042e6
lea eax, [ebp - 0x45c]
push eax
push 1
push dword [ebp - 0x13c]
push 4
jmp 0x4042cd
cmp dword [ebp + 0x14], 3
jne 0x4042e6
cmp dword [ebp - 0x144], 5
jne 0x4042e6
lea eax, [ebp - 0x45c]
push eax
push 3
push dword [ebp - 0x13c]
push 5
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x140]
push 0xffffffffffffffff
mov ecx, 0x437fe0
call fcn.0041c4fd
inc dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
push eax
push dword [ebp - 0x10]
jmp 0x4040f8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret