Function at 0x537a20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x86aa25
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
xor ebp, ebp
mov dword [esp + 0x24c], ebp
cmp dword [eax - 0xc], ebp
jne 0x537a9e
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x537fbf
jge 0x537aa5
or eax, 0xffffffff
jmp 0x537ac5
push 0x404c48
push eax
call fcn.0080292f
add esp, 8
cmp eax, ebp
jne 0x537abc
or eax, 0xffffffff
jmp 0x537ac5
sub eax, dword [esp + 0x254]
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x25c]
call fcn.004ac570
push 0x3a
mov ecx, eax
mov byte [esp + 0x250], 1
call fcn.004d4200
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x537b26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebp
je 0x537b45
push 0x407f58
push eax
call fcn.00801f5b
add esp, 8
cmp eax, ebp
jne 0x537bf9
mov ecx, dword [esp + 0x254]
push 0x2e
push ecx
call fcn.00806ba1
add esp, 8
cmp eax, ebp
jne 0x537b60
or eax, 0xffffffff
jmp 0x537b69
sub eax, dword [esp + 0x254]
sar eax, 1
inc eax
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x25c]
call fcn.004aa4c0
push eax
lea eax, [esp + 0x1c]
push 0x410468
mov bl, 4
push eax
mov byte [esp + 0x258], bl
call fcn.004b1a10
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 5
call fcn.004aa540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537bd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537bf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ebx, byte [esp + 0x258]
mov ecx, dword [esp + 0x1c]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffff0
push 0x40d454
add ebx, 0x20
push ecx
mov dword [esp + 0x44], ebx
call fcn.00801f5b
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
add esp, 8
cmp eax, ebp
jne 0x537c67
call fcn.007c9a2f
mov eax, dword [eax + 8]
push ebp
push ebx
push ebx
push 1
push 0x12e
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x537c67
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x537f83
mov ecx, dword [esp + 0x1c]
push 0x408768
push ecx
call fcn.00801f5b
add esp, 8
cmp eax, ebp
jne 0x537c98
call fcn.007c9a2f
mov eax, dword [eax + 8]
push ebp
push ebx
push ebx
push 1
push 0x12f
push eax
call edi
mov esi, eax
cmp esi, ebp
jne 0x537c46
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
push 0x409548
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x258], 6
call fcn.004af3d0
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push eax
push DirectSoundEnumerateW
mov dword [esp + 0x2c], ebp
call edi
cmp eax, ebp
jne 0x537cf6
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
cmp eax, ebp
mov eax, dword [esp + 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x537e90
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push edx
push DirectSoundEnumerateW
mov dword [esp + 0x2c], ebp
call edi
cmp eax, ebp
jne 0x537d61
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebp
je 0x537d51
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x537d77
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 3
call fcn.004b0100
jmp 0x537f48
push 0x200
lea eax, [esp + 0x44]
push ebp
push eax
mov dword [esp + 0x2c], 0x100
call fcn.00802690
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
lea ecx, [esp + 0x30]
call fcn.004afbc0
test eax, eax
jne 0x537e7a
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x537db5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.004a8db0
lea ecx, [esp + 0x1c]
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebp
je 0x537e7a
push 0x409548
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push eax
push DirectSoundEnumerateW
mov dword [esp + 0x2c], ebp
call edi
cmp eax, ebp
jne 0x537e3d
xor eax, eax
cmp esi, ebp
je 0x537e2f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
cmp eax, ebp
mov eax, dword [esp + 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537e60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x537e90
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 3
call fcn.004b0100
jmp 0x537f48
mov byte [esp + 0x24c], 3
cmp esi, ebp
je 0x537f48
push esi
jmp 0x537f42
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x537eaa
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x200
lea ecx, [esp + 0x44]
push ebp
push ecx
mov byte [esp + 0x258], 7
call fcn.00802690
mov esi, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
push esi
mov dword [esp + 0x30], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x537f28
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x537f0b
cmp eax, 2
jne 0x537f28
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x537fe7
test al, 1
jne 0x537f28
shr eax, 1
cmp word [esp + eax*2 + 0x3e], bp
je 0x537fee
lea ecx, [esp + 0x14]
call fcn.004a8c20
mov byte [esp + 0x24c], 3
cmp esi, ebp
je 0x537f48
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.007c9a2f
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 8]
push ebp
push ecx
push ecx
push 1
push 0x130
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x254]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x537fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0080262b
add esp, 0x23c
ret
xor edx, edx
mov word [esp + 0x40], dx
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x537ff5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.004a8db0
lea ecx, [esp + 0x14]
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebp
je 0x537f28
mov edx, dword [esp + 0x14]
push 0x2c
push edx
call fcn.00806ba1
add esp, 8
cmp eax, ebp
je 0x53804b
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
jns 0x53806a
lea ecx, [esp + 0x14]
call fcn.004a8c20
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 3
call fcn.004b0100
jmp 0x537f48
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebp
call fcn.004aa4c0
mov eax, dword [eax]
lea edx, [esp + 0x34]
push edx
push 0x403a48
push eax
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
mov eax, dword [esp + 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5380bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x53804b
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004ac570
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x24c], 8
cmp eax, esi
je 0x53812c
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x53811e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x53811e
push eax
call fcn.004a9b50
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x538115
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x53812c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a8db0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x258], 0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ebp
push 1
lea ecx, [esp + 0x34]
je 0x538174
push ecx
push ebp
jmp 0x538176
push ebp
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov esi, dword [esp + 0x30]
cmp esi, ebp
je 0x5381b2
lea ecx, [esp + 0x14]
call fcn.004a8c20
lea ecx, [esp + 0x24]
call fcn.004b0100
lea ecx, [esp + 0x1c]
call fcn.004a8c20
lea ecx, [esp + 0x254]
call fcn.004a8c20
jmp 0x537fbd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5381da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 3
cmp dword [esp + 0x24], ebp
je 0x537f48
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x537f42