Function at 0x4270c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed359
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [esp + 0x24], ecx
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x234], esi
mov dword [esp + 0x14], ebx
push 0x4ffa24
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x240], 1
call fcn.00410a70
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x2001f
push esi
push eax
push DirectSoundCreate
mov dword [esp + 0x2c], esi
call edi
cmp eax, esi
jne 0x427144
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x14], ebx
cmp eax, esi
mov eax, dword [esp + 0xc]
setne byte [esp + 0x1f]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x1f]
test al, al
je 0x42728a
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
push 0x2001f
push esi
push ecx
push DirectSoundCreate
mov dword [esp + 0x2c], esi
call edi
cmp eax, esi
jne 0x4271aa
xor eax, eax
cmp ebx, esi
je 0x42719e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
je 0x4271d8
cmp ebx, esi
je 0x4271b5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x427499
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x200
call fcn.00426d80
test eax, eax
jne 0x427470
lea edx, [esp + 0x28]
push edx
lea ecx, [ebp + 8]
call fcn.00403220
mov ecx, eax
call fcn.00410bf0
mov ecx, eax
call fcn.0040f870
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x427470
push 0x4ffa24
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00410a70
mov eax, dword [eax]
add esp, 0xc
push 0x2001f
push eax
push DirectSoundCreate
lea ecx, [esp + 0x20]
call fcn.00426d30
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42727e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x427437
mov ebx, dword [esp + 0x14]
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push esi
push ebx
mov byte [esp + 0x24c], 2
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x42744a
cmp dword [esp + 0x18], 1
jne 0x42744a
lea eax, [esp + 0x28]
push eax
call fcn.004b6b5b
add esp, 4
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403180
lea ecx, [esp + 0x10]
call fcn.00410bf0
mov ecx, eax
call fcn.0040f870
mov edx, dword [eax]
cmp dword [edx - 0xc], esi
je 0x42744a
mov eax, dword [esp + 0x10]
push 0x2c
push eax
call fcn.004b77bd
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, esi
je 0x42733f
sub eax, ecx
sar eax, 1
mov esi, eax
test esi, esi
jge 0x427347
xor esi, esi
lea eax, [ecx - 0x10]
jmp 0x427451
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00406f90
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x4fae90
push eax
call fcn.004b7226
add esp, 0xc
cmp eax, 1
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42739a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
lea ecx, [esp + 0x10]
jne 0x427432
push esi
lea eax, [esp + 0x10]
push eax
call fcn.00406da0
mov esi, dword [eax]
mov byte [esp + 0x234], 3
call fcn.004e69f3
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 8]
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov edi, dword [esp + 0x24]
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [edi + 0x88], esi
call fcn.00402a10
test esi, esi
je 0x42742e
mov edx, dword [edi + 0x88]
push edx
lea ecx, [edi + 0x8c]
call fcn.00426e00
lea ecx, [esp + 0x10]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.0040b050
lea ecx, [ebp + 8]
call fcn.00402a10
mov al, 1
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.0040b050
lea ecx, [ebp + 8]
call fcn.00402a10
jmp 0x4274a3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x234], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebx, esi
je 0x42747b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4274a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4