Function at 0x40a160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425aff
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4324c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], 0
push 0
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x4272c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa8], eax
mov byte [edi], 0
call fcn.0040ced0
test esi, esi
mov dword [ebp - 0x28], 0
mov edx, 0x4272c0
mov dword [ebp - 4], 0
cmovne edx, esi
mov dword [ebp - 0xa4], 1
mov ecx, edx
mov byte [ebp - 0x89], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a240
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ced0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004051c0
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40a2a2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a298
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a66c
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov eax, dword [ebp - 0x9c]
mov edx, 0x4272c0
test eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
cmovne edx, eax
mov dword [ebp - 0x14], 0xf
mov ecx, edx
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a2d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ced0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004051c0
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x40a32f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a325
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a66c
push edx
push ecx
call fcn.0040e6f9
add esp, 8
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x98]
push ecx
push 0x20019
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push 0
push eax
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a5a9
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a59d
mov ecx, dword [ebp - 0x90]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
add ecx, 2
je 0x40a3cb
lea eax, [ebp - 0x9d]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004021f0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 8
cmp esi, edi
jne 0x40a3d7
xor ecx, ecx
jmp 0x40a3e3
mov eax, edi
sub eax, esi
je 0x40a65d
mov ecx, esi
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x90]
push edx
push ecx
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a563
cmp esi, edi
jne 0x40a417
xor ecx, ecx
jmp 0x40a423
mov eax, edi
sub eax, esi
je 0x40a65d
mov ecx, esi
mov eax, dword [ebp - 0x90]
xor edx, edx
and eax, 0xfffffffe
mov word [ecx + eax], dx
cmp esi, edi
jne 0x40a43a
xor eax, eax
jmp 0x40a444
sub edi, esi
je 0x40a65d
mov eax, esi
test eax, eax
mov dword [ebp - 0x58], 0
mov edx, 0x4277e8
mov dword [ebp - 0x48], 0
cmovne edx, eax
mov dword [ebp - 0x44], 7
mov ecx, edx
xor eax, eax
mov word [ebp - 0x58], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a470
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040cfc0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040ba30
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x94]
cmp eax, edi
je 0x40a517
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x40a4e5
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x40a4d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a662
mov eax, edx
push ecx
push eax
call fcn.0040e6f9
mov eax, dword [ebp - 0x94]
add esp, 8
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x88]
call fcn.00401390
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40a55c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a552
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a662
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov byte [ebp - 0x89], 1
test esi, esi
je 0x40a597
mov ecx, dword [ebp - 0x9c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40a58d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a667
push ecx
push esi
call fcn.0040e6f9
add esp, 8
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x40a5bc
movzx eax, byte [ebp - 0x89]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40a5f6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a66c
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40a640
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a66c
push edx
push ecx
call fcn.0040e6f9
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e707
mov esp, ebp
pop ebp
ret
call fcn.0040cc40
call fcn.00411b1f
call fcn.00411b1f
call fcn.00411b1f
int3