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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x3c], ebx
cmp byte [edi], bl
jne 0x40e03e
xor eax, eax
jmp 0x40e37a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.00420a92
test eax, eax
je 0x40e037
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e037
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40e09c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e037
push 0xa
pop eax
cmp dword [ebp - 4], eax
push esi
cmova eax, dword [ebp - 4]
push dword [ebp - 0x1c]
inc eax
mov dword [ebp - 4], eax
call fcn.0042036b
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x40e36f
push esi
push dword [ebp - 4]
call fcn.0042036b
mov dword [ebp - 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x40e34d
mov eax, dword [ebp + 0x14]
push esi
mov eax, dword [eax]
add eax, 5
push eax
push edi
call fcn.0041089b
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40e34d
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
cmp ecx, edx
jb 0x40e141
push esi
push 0x8000
push edx
push 1
call fcn.004304c3
mov ecx, eax
mov dword [ebp - 0x34], ecx
cmp ecx, 0xffffffff
je 0x40e34d
mov eax, dword [ebp + 0xc]
push ecx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420379
pop ecx
pop ecx
test eax, eax
je 0x40e34d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x40e144
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
ja 0x40e34d
mov eax, dword [edx]
add eax, dword [ebp - 0x18]
push edi
push str._s_r_n_r_n
push 0xffffffffffffffff
push ecx
push eax
call fcn.00408456
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, dword [ecx]
push eax
call fcn.00406215
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], esi
add dword [ecx], eax
mov ecx, esi
cmp dword [ebp - 0x24], ecx
jbe 0x40e20a
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40e1f9
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40e1e2
push dword [ebp - 4]
push edi
push str._default_
call fcn.00401f74
push str._default_
call fcn.00406215
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x38]
call fcn.00410d0a
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x24]
jb 0x40e195
mov edi, dword [ebp + 8]
mov ebx, esi
cmp dword [ebp + 0x18], esi
je 0x40e34a
push edi
call fcn.00406215
mov ecx, eax
mov eax, dword [ebp - 0x40]
push SysReAllocString
add eax, 2
mov dword [ebp + 8], ecx
push eax
push ecx
call fcn.0040be55
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x40e34d
push esi
push eax
call fcn.0042036b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40e34d
push dword [ebp + 0x18]
push ebx
push edi
call fcn.00401f74
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
sub edi, edx
lea ecx, [edx + ebx]
mov dword [ebp + 8], ecx
cmp edi, dword [ebp + 0x18]
jae 0x40e34d
push edi
push ecx
push 0x47e0bc
call fcn.00401f74
mov eax, dword [ebp + 8]
mov ecx, esi
inc eax
mov dword [ebp + 0x18], esi
dec edi
mov dword [ebp + 8], eax
cmp dword [ebp - 0x28], ecx
jbe 0x40e34a
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push edx
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40e36f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ecx]
add eax, 3
cmp eax, edx
jb 0x40e2f4
mov eax, dword [ebp + 0xc]
lea ecx, [edx + 0x8000]
push ecx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00420379
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40e34d
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add dword [eax], 0x8000
jmp 0x40e2f7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, dword [ecx]
push 0x47e068
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ecx]
push eax
call fcn.00408456
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, dword [ecx]
push eax
call fcn.00406215
mov ecx, dword [ebp + 0x14]
push 1
push ecx
push dword [ebp + 0x10]
add dword [ecx], eax
push dword [ebp + 0xc]
push ebx
call fcn.0040e01d
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x18], ecx
cmp ecx, dword [ebp - 0x28]
jb 0x40e292
xor esi, esi
inc esi
push dword [ebp - 0x10]
call fcn.0046d68f
mov eax, dword [ebp - 0x2c]
pop ecx
test eax, eax
je 0x40e364
push eax
call fcn.0046d68f
pop ecx
test ebx, ebx
je 0x40e36f
push ebx
call fcn.0046d68f
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14