Function at 0x402340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fba0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47c1b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
mov eax, dword [0x47cf64]
mov ecx, 0x47cf64
mov dword [ebp - 4], 1
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 3
call fcn.00401d90
mov ecx, dword [ebp - 0x38]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebx]
push dword [ebp - 0x3c]
mov ecx, ebx
call dword [eax + 0x2c]
test eax, eax
je 0x402442
push 0x424004
mov ecx, edi
call fcn.004018f0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4023fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40241a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x14]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40243b
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4025bd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
call ebx
mov edx, dword [ebp - 0x28]
test edx, edx
jns 0x40247f
push 0x80070057
call fcn.00401d50
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40249c
push edx
lea ecx, [ebp - 0x30]
call fcn.00402c80
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x2c]
call ebx
push dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi - 8]
push esi
call fcn.0040562d
add esp, 8
test eax, eax
js 0x402475
cmp eax, dword [esi - 8]
jg 0x402475
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x402558
push 0x4283b4
mov ecx, edi
call fcn.004018f0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40250f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40252f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40243b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x4025bd
lea ebx, [esi - 0x10]
push ebx
call fcn.00401d90
add eax, 0x10
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40250f
mov ecx, dword [ebx]
push ebx
jmp 0x40250a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004047a4
mov esp, ebp
pop ebp
ret 0x10