Function at 0x40b9e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x48], eax
xor edx, edx
lea eax, [ecx + 4]
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x54], edi
mov edi, dword [eax]
add eax, 4
cmp edi, esi
je 0x40ba33
mov edx, dword [eax]
mov dword [esp + 0x10], edx
add eax, 4
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add eax, 4
add eax, 4
mov dword [esp + 0x48], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x14], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x18], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x20], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x24], ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x28], ebx
mov ebx, dword [eax]
sub eax, ecx
add eax, 4
cmp eax, dword [esp + 0x5c]
ja 0x40baa7
cmp dword [esp + 0x54], esi
je 0x40bab1
lea ecx, [edx - 1]
cmp ecx, 0xfff
ja 0x40bab1
push edx
call fcn.0041d8b8
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, esi
jne 0x40bab5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov dword [esp + 0x54], esi
cmp edi, esi
je 0x40babd
lea edi, [esp + 0x10]
cmp ebp, esi
je 0x40bac5
lea ebp, [esp + 0x2c]
cmp dword [esp + 0x14], esi
je 0x40bad3
lea edx, [esp + 0x30]
mov dword [esp + 0x14], edx
cmp dword [esp + 0x18], esi
je 0x40bae1
lea eax, [esp + 0x34]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], esi
je 0x40baef
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x20], esi
je 0x40bafd
lea edx, [esp + 0x3c]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x24], esi
je 0x40bb0b
lea eax, [esp + 0x40]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x28], esi
je 0x40bb19
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], ecx
cmp ebx, esi
je 0x40bb46
push 8
call fcn.0041aea6
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, esi
jne 0x40bb4c
mov edx, dword [esp + 0x54]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov dword [esp + 0x5c], esi
mov eax, esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push ebp
push eax
push edi
push ecx
push edx
mov dword [ebx], 0x7e9
lea esi, [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebx + 8], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40bba6
mov eax, dword [esp + 0x10]
mov edi, esi
add esi, 4
mov dword [edi], eax
cmp dword [ebx + 8], 0
mov ecx, dword [esp + 0x54]
jne 0x40bbd9
test ecx, ecx
je 0x40bbd9
test edi, edi
je 0x40bbd9
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40bbd9
cmp edi, 0x1000
ja 0x40bbd9
push edi
push ecx
push esi
call fcn.0041a2b0
mov ecx, dword [esp + 0x60]
add esp, 0xc
add esi, edi
mov dword [esi], ebp
add esi, 4
test ebp, ebp
je 0x40bbed
mov edx, dword [esp + 0x2c]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc05
mov edx, dword [esp + 0x30]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc1d
mov edx, dword [esp + 0x34]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc35
mov edx, dword [esp + 0x38]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc4d
mov edx, dword [esp + 0x3c]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x24]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc65
mov edx, dword [esp + 0x40]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov eax, dword [esp + 0x28]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40bc7d
mov edx, dword [esp + 0x44]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov edi, dword [esp + 0x5c]
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40bc91
mov eax, dword [edi]
mov dword [esi], eax
add esi, 4
mov edx, dword [esp + 0x60]
sub esi, ebx
mov dword [ebx + 4], esi
mov dword [edx], esi
test ecx, ecx
je 0x40bca9
push ecx
call fcn.0041af0b
add esp, 4
test edi, edi
je 0x40bcb6
push edi
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret