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

Disassembly:
mov eax, 0x4230
call fcn.004444f0
mov eax, dword [esp + 0x4258]
mov edx, dword [esp + 0x4250]
push ebx
push edi
mov ebx, ecx
mov ecx, dword [esp + 0x425c]
push eax
push ecx
push edx
lea ecx, [esp + 0x12c]
call fcn.0040e500
mov edx, dword [esp + 0x124]
lea eax, [esp + 8]
push eax
push 9
xor edi, edi
push edi
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413d73
mov edx, dword [esp + 8]
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
push edi
push edi
lea ecx, [esp + 0x34]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x413d83
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop ebx
add esp, 0x4230
ret 0x28
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
cmp eax, edi
push esi
jbe 0x413e7f
cmp dword [esp + 0x4258], 3
je 0x413e7f
mov dword [esp + 0x4238], edi
mov dword [esp + 0x423c], edi
lea esi, [eax - 1]
mov dword [esp + 0x14], ebp
push 0
push 0
lea ecx, [esp + 0x423c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x248]
push eax
push esi
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x3fff
mov byte [esp + 0x254], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x413e60
mov edx, dword [esp + 0x424c]
add edi, 1
adc ebp, eax
mov eax, dword [esp + 0x4248]
push ebp
push edi
push edx
mov edx, dword [esp + 0x4250]
push eax
lea ecx, [esp + 0x138]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
push 3
call fcn.0041d2e0
mov esi, eax
test esi, esi
je 0x414088
cmp esi, 7
je 0x414088
cmp esi, 8
je 0x414088
cmp esi, 5
je 0x414088
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x413e6a
test eax, eax
jne 0x413e76
mov esi, dword [esp + 0x18]
test esi, esi
je 0x413e7f
dec esi
jmp 0x413db6
mov ecx, dword [esp + 0x4250]
mov byte [ecx], 1
jmp 0x413e7f
mov edx, dword [esp + 0x4254]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4140a2
cmp dword [esp + 0x4258], 1
jne 0x413ea4
mov cl, byte [esp + 0x425c]
test cl, cl
je 0x4140a2
mov dword [esp + 0x4234], 0xfffffffe
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x4238]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x248]
dec eax
push ecx
push eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41403a
cmp dword [esp + 0x4258], 1
je 0x413f6d
mov eax, dword [esp + 0x424c]
mov ecx, dword [esp + 0x4248]
add edi, 1
adc ebp, 0
push ebp
push edi
push eax
mov eax, dword [esp + 0x4250]
push ecx
lea edx, [esp + 0x138]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 0x10]
push 3
call fcn.0041d2e0
mov esi, eax
test esi, esi
je 0x41406e
cmp esi, 7
je 0x41406e
cmp esi, 8
je 0x41406e
cmp esi, 5
je 0x41406e
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41404d
test eax, eax
jne 0x41405e
mov al, byte [esp + 0x425c]
test al, al
je 0x41403a
mov al, byte [esp + 0x130]
test al, al
mov eax, 0x4523d4
jne 0x413f91
mov eax, 0x44f4f8
lea edx, [esp + 0x234]
push edx
push eax
lea eax, [esp + 0x138]
push eax
push 0x4523cc
lea ecx, [esp + 0x38]
push 0x100
push ecx
call fcn.0043c2b0
mov eax, dword [esp + 0x427c]
mov ecx, dword [esp + 0x4278]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x4260]
push eax
mov eax, dword [esp + 0x4260]
push ecx
mov ecx, dword [esp + 0x4260]
push edx
mov edx, dword [esp + 0x4260]
push eax
mov eax, dword [esp + 0x4260]
push ecx
mov ecx, dword [esp + 0x4260]
push edx
mov edx, dword [esp + 0x4260]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00413cf0
mov esi, eax
test esi, esi
je 0x414088
cmp esi, 7
je 0x414088
cmp esi, 8
je 0x414088
cmp esi, 5
je 0x414088
mov eax, dword [esp + 0x4250]
cmp byte [eax], 0
jne 0x414046
mov ecx, dword [esp + 0x4254]
cmp dword [ecx], 0
jne 0x414046
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x413eb7
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4140a7
mov edx, dword [esp + 0x4250]
mov ecx, dword [esp + 0x10]
mov byte [edx], 1
push ecx
jmp 0x4140a7
mov ecx, dword [esp + 0x4254]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4140a7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x4230
ret 0x28
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x4230
ret 0x28
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x4230
ret 0x28