Function at 0x40ced0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427675
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x438348]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0x10]
call fcn.00404220
mov dword [ebp - 0x2c], 0x42a924
mov dword [ebp - 0x28], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x40d111
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x40d111
lea edx, [ebp - 0x28]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d111
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40d111
inc dword [ebp - 0x10]
xor edi, edi
inc dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.00403a60
mov ecx, eax
test ecx, ecx
je 0x40d13e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
mov ebx, dword [esi - 0x10]
lea edx, [esi - 0x10]
or eax, 0xffffffff
cmp dword [edx + 4], 0
je 0x40cfeb
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x40cfcd
cmp dword [esi - 8], 0
jl 0x40d148
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x40cfeb
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40cfde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], edx
test edx, edx
js 0x40d148
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40d01d
push edx
lea ecx, [ebp + 8]
call fcn.00404280
mov esi, dword [ebp + 8]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40d0f1
push dword [esi - 8]
push esi
call fcn.004182cf
add esp, 8
test eax, eax
js 0x40d148
cmp eax, dword [esi - 8]
jg 0x40d148
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x14], 1
jne 0x40d085
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40d13e
push eax
push esi
call fcn.0041857e
add esp, 8
test eax, eax
je 0x40d08b
inc edi
jmp 0x40cf9d
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x20], eax
call fcn.004041e0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebx]
mov edi, eax
test ecx, ecx
je 0x40d0d6
push dword [ecx - 8]
push ecx
call fcn.004182cf
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d148
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x40d148
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
xor ebx, ebx
test edi, edi
sete bl
mov word [eax + ecx*2], dx
jmp 0x40d0f3
xor ebx, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d113
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d113
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x42a924
test eax, eax
je 0x40d128
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004037a0
push 0x80070057
call fcn.004037a0
int3