Function at 0x4075c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5723a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5d6ff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x5e20f0
push 0x5e20ec
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x14], 0
call fcn.004023b0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0x5b4a04
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push 0xf003f
push 0
push dword [ebp - 0x14]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x68]
xor edx, edx
test eax, eax
mov dword [ebp - 0x78], eax
cmovne ecx, edx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x40768b
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
mov dword [ebx], edx
add esi, 0xfffffff0
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x407684
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x4078cf
xorps xmm0, xmm0
mov dword [ebp - 0x18], edx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
xor edi, edi
call fcn.00410f0c
mov ecx, eax
test ecx, ecx
jne 0x4076b7
push 0x80004005
call fcn.00402df0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
or ebx, 0xffffffff
nop dword [eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x4076ef
push 0x64
lea ecx, [ebp - 0x24]
call fcn.00402a50
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x64
test esi, esi
je 0x40772d
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x407722
inc edi
mov eax, 1
jmp 0x407737
sub eax, 0x103
neg eax
sbb eax, eax
jmp 0x407737
mov dword [ebp - 0x78], 0x57
or eax, 0xffffffff
push dword [esi - 8]
push esi
cmp eax, 1
jne 0x40783f
call fcn.0055ba8a
add esp, 8
test eax, eax
js 0x407835
cmp eax, dword [esi - 8]
jg 0x407835
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x34
mov word [esi + eax*2], cx
lea eax, [ebp - 0x64]
push ecx
push eax
call fcn.005577d0
add esp, 8
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x28], ecx
push eax
call fcn.00402f30
lea eax, [ebp - 0x64]
push eax
call fcn.004078f0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x64]
call fcn.004075a0
mov ecx, dword [0x5e2108]
test ecx, ecx
je 0x4076ad
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4077d6
test dx, dx
je 0x4077d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4077d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4077b0
xor eax, eax
jmp 0x4077db
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x70]
test eax, eax
setne bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40780b
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x20]
call fcn.00408110
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x64]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4076d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4076d0
push 0x80070057
call fcn.00402df0
call fcn.0055ba8a
add esp, 8
test eax, eax
js 0x407835
cmp eax, dword [esi - 8]
jg 0x407835
push dword [ebp - 0x6c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x74]
add esi, 0xfffffff0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4078a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00404c80
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4078cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554815
mov esp, ebp
pop ebp
ret 4