Function at 0x40b740
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
push ebx
push ebp
mov dword [esp + 0x20], ecx
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov edi, dword [edx + 4]
lea ecx, [edx + 4]
add ecx, 4
mov dword [esp + 0x24], edi
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], edi
mov edi, dword [ecx]
add ecx, 4
test edi, edi
je 0x40b785
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
add ecx, 4
mov ebx, dword [ecx]
add ecx, 4
mov ebp, dword [ecx + 4]
mov dword [esp + 0x20], ebx
mov ebx, dword [ecx]
add ecx, 4
add ecx, 4
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x40b7aa
mov esi, dword [ecx]
mov dword [esp + 0x14], esi
add ecx, 4
mov ebx, dword [ecx]
sub ecx, edx
add ecx, 4
mov dword [esp + 0x18], ebx
cmp ecx, dword [esp + 0x38]
ja 0x40b7f0
cmp dword [esp + 0x30], 0
je 0x40b7fa
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x40b7fa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d8b8
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x40b808
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 0x40b80c
mov esi, dword [esp + 0x14]
test edi, edi
je 0x40b814
lea edi, [esp + 0x1c]
cmp dword [esp + 0x10], 0
je 0x40b861
lea eax, [esi - 1]
cmp eax, 0xfff
ja 0x40b861
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d8b8
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x40b86d
test ebx, ebx
je 0x40b857
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 0x40b875
lea ebp, [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x40b8a7
push 8
call fcn.0041aea6
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40b8b3
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], 0x2ef8
lea esi, [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40b902
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 0x40b933
test edi, edi
je 0x40b933
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40b933
cmp eax, 0x1000
ja 0x40b933
cmp dword [ebx + 8], 0
jne 0x40b933
lea edi, [eax + eax]
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 0x40b951
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 0x40b987
test ebp, ebp
je 0x40b987
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b987
cmp eax, 0x1000
ja 0x40b987
cmp dword [ebx + 8], 0
jne 0x40b987
lea ecx, [eax + eax]
push ecx
push edi
push esi
call fcn.0041a2b0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
lea esi, [esi + edx*2]
mov ebp, dword [esp + 0x18]
mov dword [esi], ebp
add esi, 4
test ebp, ebp
je 0x40b99c
mov eax, dword [ebp]
mov dword [esi], eax
add esi, 4
mov edx, dword [esp + 0x3c]
sub esi, ebx
mov dword [ebx + 4], esi
mov dword [edx], esi
test ecx, ecx
je 0x40b9b4
push ecx
call fcn.0041af0b
add esp, 4
test edi, edi
je 0x40b9c1
push edi
call fcn.0041af0b
add esp, 4
test ebp, ebp
je 0x40b9ce
push ebp
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret