Function at 0x43a040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499500
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov ebx, dword [ebp + 8]
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
push esi
mov dword [ebp - 4], esi
push esi
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x43a0ea
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43a0d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
inc eax
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00471a74
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x1c], esi
jbe 0x43a2c9
mov eax, dword [ebp - 0x14]
inc eax
push eax
push esi
push edi
mov dword [ebp - 0x24], eax
call fcn.00477f60
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x43a290
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
mov edx, ebx
mov byte [ebp - 4], 1
call fcn.004392b0
lea ebx, [ebp + 0xc]
call fcn.00407930
mov ebx, eax
call fcn.004079b0
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x43a295
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x43a1a7
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401aa0
mov esi, dword [ebp - 0x10]
lea edx, [ebx + 1]
push edx
push esi
call fcn.00473f3c
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x43a295
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx - 0xc]
test ebx, ebx
js 0x43a295
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x43a1f1
push ebx
lea ecx, [ebp + 0xc]
call fcn.00401aa0
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 1]
push ecx
push edx
call fcn.00473f3c
mov eax, dword [ebp + 0xc]
add esp, 8
cmp ebx, dword [eax - 8]
jg 0x43a295
mov dword [eax - 0xc], ebx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov word [eax + ebx*2], dx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43a25a
cmp dword [esi - 0xc], edx
jl 0x43a25a
push eax
push esi
call fcn.00473d19
add esp, 8
test eax, eax
je 0x43a25a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43a25a
cmp dword [esi - 0xc], 0
jl 0x43a29f
push 0x4b1a90
push esi
call fcn.00473d19
add esp, 8
test eax, eax
je 0x43a29f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43a29f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a27a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jae 0x43a2c6
mov ebx, dword [ebp + 8]
xor esi, esi
jmp 0x43a118
mov dword [ebp - 0x20], esi
jmp 0x43a2c9
push 0x80070057
call fcn.00401b40
lea eax, [esi - 0x10]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a2c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
push edi
call fcn.00473fb1
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43a2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8