Function at 0x402360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411300
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41a1a8]
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 [0x41af54]
mov ecx, 0x41af54
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.00401da0
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 0x402462
push 0x4122c0
mov ecx, edi
call fcn.00401910
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 0x40241a
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 0x40243a
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 0x40245b
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4025dd
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 0x40249f
push 0x80070057
call fcn.00401d60
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4024bc
push edx
lea ecx, [ebp - 0x30]
call fcn.00402cb0
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.00406eca
add esp, 8
test eax, eax
js 0x402495
cmp eax, dword [esi - 8]
jg 0x402495
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x402578
push 0x4122c0
mov ecx, edi
call fcn.00401910
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 0x40252f
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 0x40254f
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 0x40245b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x4025dd
lea ebx, [esi - 0x10]
push ebx
call fcn.00401da0
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 0x40252f
mov ecx, dword [ebx]
push ebx
jmp 0x40252a
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.00404e64
mov esp, ebp
pop ebp
ret 0x10