Function at 0x43e610
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ce4e0]
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 0x43e6ba
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 0x43e6a4
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.00472957
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x1c], esi
jbe 0x43e899
mov eax, dword [ebp - 0x14]
inc eax
push eax
push esi
push edi
mov dword [ebp - 0x24], eax
call fcn.00478ba0
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 0x43e860
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.0043d8c0
lea ebx, [ebp + 0xc]
call fcn.00407370
mov ebx, eax
call fcn.004073f0
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x43e865
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x43e777
push ebx
lea ecx, [ebp - 0x10]
call fcn.004019b0
mov esi, dword [ebp - 0x10]
lea edx, [ebx + 1]
push edx
push esi
call fcn.00474cd7
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x43e865
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 0x43e865
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x43e7c1
push ebx
lea ecx, [ebp + 0xc]
call fcn.004019b0
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 1]
push ecx
push edx
call fcn.00474cd7
mov eax, dword [ebp + 0xc]
add esp, 8
cmp ebx, dword [eax - 8]
jg 0x43e865
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 0x43e82a
cmp dword [esi - 0xc], edx
jl 0x43e82a
push eax
push esi
call fcn.00474ab4
add esp, 8
test eax, eax
je 0x43e82a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43e82a
cmp dword [esi - 0xc], 0
jl 0x43e86f
push 0x4b120c
push esi
call fcn.00474ab4
add esp, 8
test eax, eax
je 0x43e86f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x43e86f
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 0x43e84a
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 0x43e896
mov ebx, dword [ebp + 8]
xor esi, esi
jmp 0x43e6e8
mov dword [ebp - 0x20], esi
jmp 0x43e899
push 0x80070057
call fcn.00401a50
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 0x43e896
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.00474dc1
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 0x43e8cf
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