Function at 0x40b4c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
push ebx
push ebp
mov dword [esp + 0x20], eax
push esi
xor edx, edx
xor esi, esi
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
mov edi, dword [ecx + 4]
lea eax, [ecx + 4]
add eax, 4
mov dword [esp + 0x24], edi
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x30], edi
mov edi, dword [eax]
add eax, 4
test edi, edi
je 0x40b505
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
add eax, 4
mov ebx, dword [eax]
add eax, 4
mov ebp, dword [eax + 4]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax]
add eax, 4
add eax, 4
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x40b52a
mov esi, dword [eax]
mov dword [esp + 0x14], esi
add eax, 4
mov ebx, dword [eax]
sub eax, ecx
add eax, 4
mov dword [esp + 0x18], ebx
cmp eax, dword [esp + 0x38]
ja 0x40b560
cmp dword [esp + 0x30], 0
je 0x40b56a
lea ecx, [edx - 1]
cmp ecx, 0xfff
ja 0x40b56a
push edx
call fcn.0041d8b8
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x40b578
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x30]
jmp 0x40b57c
mov esi, dword [esp + 0x14]
test edi, edi
je 0x40b584
lea edi, [esp + 0x1c]
cmp dword [esp + 0x10], 0
je 0x40b5c0
lea edx, [esi - 1]
cmp edx, 0xfff
ja 0x40b5c0
push esi
call fcn.0041d8b8
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x40b5cc
test ebx, ebx
je 0x40b5b6
push ebx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
test ebp, ebp
je 0x40b5d4
lea ebp, [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x40b606
push 8
call fcn.0041aea6
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40b612
push ebx
call fcn.0041af0b
push esi
call fcn.0041af0b
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edi
push edx
push eax
push ecx
mov dword [ebx], 0x7e8
lea esi, [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40b661
mov edx, dword [esp + 0x1c]
mov edi, esi
add esi, 4
mov dword [edi], edx
mov dword [esi], ecx
add esi, 4
test ecx, ecx
je 0x40b690
test edi, edi
je 0x40b690
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40b690
cmp edi, 0x1000
ja 0x40b690
cmp dword [ebx + 8], 0
jne 0x40b690
push edi
push ecx
push esi
call fcn.0041a2b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add esi, edi
mov edi, dword [esp + 0x10]
mov dword [esi], ebp
add esi, 4
test ebp, ebp
je 0x40b6ae
mov eax, dword [esp + 0x14]
mov ebp, esi
add esi, 4
mov dword [ebp], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40b6de
test ebp, ebp
je 0x40b6de
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b6de
cmp eax, 0x1000
ja 0x40b6de
cmp dword [ebx + 8], 0
jne 0x40b6de
push eax
push edi
push esi
call fcn.0041a2b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esi], ebp
add esi, 4
test ebp, ebp
je 0x40b6f3
mov edx, dword [ebp]
mov dword [esi], edx
add esi, 4
mov eax, dword [esp + 0x3c]
sub esi, ebx
mov dword [ebx + 4], esi
mov dword [eax], esi
test ecx, ecx
je 0x40b70b
push ecx
call fcn.0041af0b
add esp, 4
test edi, edi
je 0x40b718
push edi
call fcn.0041af0b
add esp, 4
test ebp, ebp
je 0x40b725
push ebp
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret