Function at 0x4019a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b4], eax
movups xmm0, xmmword [ebp + 8]
movups xmmword [ebp - 0x2a0], xmm0
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x401de0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2b0], eax
push str.SYSTEMCurrentControlSetControlMediaCategories_
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0
call fcn.00402e30
test al, al
jne 0x401a38
push 0x31
push str.SYSTEMCurrentControlSetControlMediaCategories_
lea ecx, [ebp - 0x2b0]
call fcn.004031f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 4], 2
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x401dea
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2a8], eax
push 0x42cd58
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 3
call fcn.00402e30
test al, al
jne 0x401aaa
push 0
push 0x42cd58
lea ecx, [ebp - 0x2a8]
call fcn.004031f0
push 0x100
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00411630
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x190]
add esp, 0xc
push 0x7f
push eax
push 0x42d078
call esi
push 0x7f
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a0]
push eax
call esi
test eax, eax
lea edx, [ebp - 0x190]
lea ecx, [ebp - 0x290]
cmovle ecx, edx
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.00402d90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b0]
mov eax, dword [ebp - 0x2ac]
push dword [eax - 0xc]
push eax
call fcn.004032e0
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [ebp - 0x2ac]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401b46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2b0]
push 0x20019
push esi
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00401680
test eax, eax
je 0x401bfc
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x401df4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x2a4]
add eax, 0x10
mov dword [ecx], eax
push 0
mov byte [ebp - 4], 6
call fcn.00402e30
test al, al
jne 0x401ba5
mov ecx, dword [ebp - 0x2a4]
push 0
push 0
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401bc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x401bd7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x401dbf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x401dbf
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x80
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0
push str.Name
push dword [ebp - 0x2c8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401c5d
mov eax, dword [ebp - 0x2bc]
cmp eax, 1
je 0x401c42
cmp eax, 2
jne 0x401c5d
mov eax, dword [ebp - 0x2b8]
test eax, eax
je 0x401c71
test al, 1
jne 0x401c5d
shr eax, 1
cmp word [ebp + eax*2 - 0x92], 0
je 0x401c7a
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x401dfe
jmp 0x401d41
xor eax, eax
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c83
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004031f0
mov ecx, dword [ebp - 0x2a8]
add ecx, 0xfffffff0
mov dword [ebp - 0x2ac], ecx
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [ebp - 0x2ac]
mov ecx, eax
cmp dword [edx + 0xc], 0
jl 0x401cd9
cmp ecx, dword [edx]
jne 0x401cd9
mov eax, edx
lea ecx, [edx + 0xc]
lock inc dword [ecx]
jmp 0x401d26
mov eax, dword [ecx]
push 2
push dword [edx + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x2b4], edx
test edx, edx
je 0x401e08
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [ecx + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x2b4]
inc edx
push edx
push eax
add ecx, 0x10
call fcn.00403120
mov edx, dword [ebp - 0x2ac]
add esp, 8
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 0x2a4]
add eax, 0x10
mov byte [ebp - 4], 2
mov dword [ecx], eax
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
jmp 0x401d86
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x2a4]
add eax, 0x10
mov dword [ecx], eax
push 0
mov byte [ebp - 4], 7
call fcn.00402e30
test al, al
jne 0x401d71
mov ecx, dword [ebp - 0x2a4]
push 0
push 0
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401d92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x401da3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x401dbf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2a4]
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.0040f45f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401510
push 0x80004005
call fcn.00401510
push 0x80004005
call fcn.00401510
push 0x80004005
call fcn.00401510
call fcn.00403110
int3