Function at 0x5f9bb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x8793c3
mov eax, dword fs:[0]
push eax
sub esp, 0xdcc
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0xdc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0xde0]
mov dword fs:[0], eax
mov eax, dword [0x48b790]
mov edi, ecx
mov dword [edi + 0x968], eax
mov ecx, dword [0x48b794]
lea ebx, [edi + 0x968]
mov dword [ebx + 4], ecx
mov edx, dword [0x48b798]
mov dword [ebx + 8], edx
mov eax, dword [0x48b79c]
mov edx, dword [edi]
mov edx, dword [edx + 8]
xor ebp, ebp
push ebp
push 1
mov dword [ebx + 0xc], eax
push 0x914
lea eax, [esp + 0x4d4]
push eax
mov ecx, edi
mov dword [esp + 0x64], edi
mov dword [esp + 0xa8], ebx
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
xor esi, esi
call edx
test eax, eax
jne 0x5f9d08
mov edi, edi
cmp esi, 0x3e8
jge 0x5f9d08
mov eax, dword [esp + 0x4c8]
cmp eax, 0xba010000
je 0x5f9f28
cmp eax, 0x5367674f
je 0x5f9fb4
cmp eax, 0xa3df451a
je 0x5f9ff5
cmp eax, 0x464d522e
je 0x5fa036
mov ecx, dword [esp + 0x4d0]
cmp eax, 0x46464952
jne 0x5f9ca9
cmp ecx, 0x20495641
je 0x5fa076
mov eax, dword [esp + 0x4cc]
cmp eax, 0x766f6f6d
je 0x5fa0d6
cmp eax, 0x7461646d
je 0x5fa0d6
cmp eax, 0x70797466
jne 0x5f9ce6
cmp ecx, 0x6d6f7369
jne 0x5f9ce6
cmp dword [esp + 0x4d8], 0x3134706d
je 0x5fa0d6
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ebp
push 1
push 0x914
lea ecx, [esp + 0x4d4]
push ecx
mov ecx, edi
inc esi
call edx
test eax, eax
je 0x5f9c50
xor esi, esi
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
push 0x439a50
lea ecx, [esp + 0x3c]
mov dword [esp + 0xdec], ebp
call fcn.004a8f10
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x34]
push ecx
push 0x20019
push ebp
push edx
push DirectSoundEnumerateW
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x5fa6f4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebp
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x50]
push ebp
push ebp
push ebp
lea edx, [esp + 0x84]
push edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x2d8]
push eax
push ecx
push edx
mov dword [esp + 0x94], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5fa6ed
xor esi, esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
push 0x401fc4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov byte [esp + 0xdf4], 2
call fcn.004af3d0
lea edx, [esp + 0x2d0]
push edx
push eax
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0xe00], 3
call fcn.004af3d0
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebp
push eax
push DirectSoundEnumerateW
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x5f9e34
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
cmp eax, ebp
mov eax, dword [esp + 0x94]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5f9e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5f9e85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x5f9f0c
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x1c]
push ecx
push 0x403a48
lea edx, [esp + 0xb4]
push 0xa
push edx
call fcn.0080365a
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x84]
push edx
push ebp
lea eax, [esp + 0xbc]
push eax
push esi
mov dword [esp + 0x38], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x5f9f0c
mov eax, dword [esp + 0x7c]
cmp eax, 1
je 0x5f9eec
cmp eax, 2
jne 0x5f9f0c
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x5fa116
test al, 1
jne 0x5f9f0c
shr eax, 1
cmp word [esp + eax*2 + 0xbe], bp
je 0x5fa120
cmp esi, ebp
je 0x5f9f1b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], ebp
inc dword [esp + 0x4c]
mov dword [esp + 0x5c], ebp
jmp 0x5f9d77
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [edi + 0x28], eax
mov al, byte [esp + 0x4cc]
mov cl, al
sbb dword [edi + 0x2c], edx
and cl, 0xc4
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
mov dword [edi + 0x30], esi
cmp cl, 0x44
jne 0x5f9f75
mov edx, dword [0x40be94]
mov dword [ebx], edx
mov eax, dword [0x40be98]
mov dword [ebx + 4], eax
mov ecx, dword [0x40be9c]
mov dword [ebx + 8], ecx
mov edx, dword [0x40bea0]
mov dword [ebx + 0xc], edx
jmp 0x5f9f9c
and al, 0xf1
cmp al, 0x21
jne 0x5f9f9c
mov eax, dword [0x40b974]
mov dword [ebx], eax
mov ecx, dword [0x40b978]
mov dword [ebx + 4], ecx
mov edx, dword [0x40b97c]
mov dword [ebx + 8], edx
mov eax, dword [0x40b980]
mov dword [ebx + 0xc], eax
push 0x48b790
push ebx
call fcn.004c17a0
add esp, 8
neg eax
sbb eax, eax
inc eax
jmp 0x5fa729
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [edi + 0x28], eax
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
sbb dword [edi + 0x2c], edx
mov dword [edi + 0x30], esi
mov ecx, dword [0x4077ac]
mov dword [ebx], ecx
mov edx, dword [0x4077b0]
mov dword [ebx + 4], edx
mov eax, dword [0x4077b4]
mov dword [ebx + 8], eax
mov ecx, dword [0x4077b8]
mov dword [ebx + 0xc], ecx
mov al, 1
jmp 0x5fa729
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [edi + 0x28], eax
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
sbb dword [edi + 0x2c], edx
mov dword [edi + 0x30], esi
mov edx, dword [0x4077fc]
mov dword [ebx], edx
mov eax, dword [0x407800]
mov dword [ebx + 4], eax
mov ecx, dword [0x407804]
mov dword [ebx + 8], ecx
mov edx, dword [0x407808]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x5fa729
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [edi + 0x28], eax
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
sbb dword [edi + 0x2c], edx
mov dword [edi + 0x30], esi
mov eax, dword [0x40761c]
mov dword [ebx], eax
mov ecx, dword [0x407620]
mov dword [ebx + 4], ecx
mov edx, dword [0x407624]
mov dword [ebx + 8], edx
mov eax, dword [0x407628]
mov dword [ebx + 0xc], eax
mov al, 1
jmp 0x5fa729
mov ecx, dword [esp + 0x4cc]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
add ecx, 8
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
cmp eax, ecx
jg 0x5fa09e
jl 0x5fa0a4
cmp edx, dword [esp + 0x28]
jb 0x5fa0a4
mov edx, dword [esp + 0x28]
mov eax, ecx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x28], edx
mov dword [edi + 0x30], esi
mov edx, dword [0x40b9b4]
mov dword [ebx], edx
mov eax, dword [0x40b9b8]
mov dword [ebx + 4], eax
mov ecx, dword [0x40b9bc]
mov dword [ebx + 8], ecx
mov edx, dword [0x40b9c0]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x5fa729
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [edi + 0x28], eax
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebp
sbb dword [edi + 0x2c], edx
mov dword [edi + 0x30], esi
mov eax, dword [0x40b9d4]
mov dword [ebx], eax
mov ecx, dword [0x40b9d8]
mov dword [ebx + 4], ecx
mov edx, dword [0x40b9dc]
mov dword [ebx + 8], edx
mov eax, dword [0x40b9e0]
mov dword [ebx + 0xc], eax
mov al, 1
jmp 0x5fa729
xor ecx, ecx
mov word [esp + 0xc0], cx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x18]
call fcn.004a8f10
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
lea esi, [edi + 1]
mov byte [esp + 0xde8], 4
cmp esi, ebp
jl 0x5fa60e
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x5fa16a
push esi
lea ecx, [esp + 0x18]
call fcn.004a8a90
mov ecx, dword [esp + 0x14]
mov eax, 0x2c
mov word [ecx + edi*2], ax
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x5fa60e
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov byte [esp + 0xde8], 6
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
xor esi, esi
mov edi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test esi, esi
js 0x5fa5a0
cmp esi, eax
jge 0x5fa5a0
lea eax, [ecx + esi*2]
push 0x2c
push eax
call fcn.0080308d
add esp, 8
test eax, eax
je 0x5fa5a0
sub eax, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x78], eax
js 0x5fa5a0
mov ecx, eax
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.004a9e10
mov ebx, dword [esp + 0x24]
and ebx, 3
mov byte [esp + 0xde8], 7
mov dword [esp + 0x80], 0
mov dword [esp + 0x18], ebx
cmp ebx, 3
ja case.default.0x5fa241
jmp dword [ebx*4 + 0x5fa754]
mov ecx, dword [esp + 0x30]
push 0xa
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.00803f42
cdq
mov edi, eax
add esp, 0xc
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
jmp 0x5fa312
mov eax, dword [esp + 0x30]
push 0xa
lea edx, [esp + 0x84]
push edx
push eax
call fcn.00803f42
add esp, 0xc
mov ebp, eax
jmp 0x5fa312
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push ecx
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x5fa2c5
cmp eax, dword [esi - 0x10]
jne 0x5fa2c5
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x5fa2fd
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5fa618
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov ecx, dword [esp + 0x20]
add edi, 0x10
mov dword [ecx], edi
call fcn.005c5e00
add esp, 8
mov edi, dword [esp + 0x28]
xor esi, esi
cmp dword [esp + 0x24], esi
jl 0x5fa569
cmp ebx, 3
jne 0x5fa569
cmp ebp, esi
jbe 0x5fa569
mov eax, dword [esp + 0x68]
cmp eax, esi
jbe 0x5fa569
cmp ebp, eax
jne 0x5fa569
mov eax, dword [esp + 0x2c]
cmp eax, esi
jl 0x5fa406
jg 0x5fa359
cmp edi, esi
jb 0x5fa406
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
test eax, eax
jne 0x5fa40a
jmp 0x5fa429
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x64]
push edx
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x58], esp
mov ebx, esp
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x5fa3ab
cmp eax, dword [esi - 0x10]
jne 0x5fa3ab
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x5fa3e3
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5fa618
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.005c5e00
mov ebx, dword [esp + 0x20]
add esp, 8
jmp 0x5fa30e
mov dword [esp + 0x24], 0xffffffff
jmp 0x5fa569
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
add eax, edi
adc ecx, dword [esp + 0x2c]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x5fa523
mov dword [esp + 0x50], esi
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0xdec], 8
call fcn.004cd4f0
mov edi, dword [esp + 0x50]
test al, al
je 0x5fa510
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x18]
push edx
push 1
push ebp
push edi
mov dword [esp + 0x28], 0
call eax
test eax, eax
jne 0x5fa510
cmp ebp, dword [esp + 0x18]
jne 0x5fa510
mov esi, dword [esp + 0x40]
cmp esi, ebp
jae 0x5fa4a8
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x44]
call fcn.00571aa0
cmp esi, ebp
jae 0x5fa4a8
cmp esi, dword [esp + 0x40]
jae 0x5fa60e
mov ecx, dword [esp + 0x3c]
mov byte [ecx + esi], 0xff
inc esi
cmp esi, ebp
jb 0x5fa491
xor eax, eax
test ebp, ebp
je 0x5fa4c7
cmp eax, dword [esp + 0x40]
jae 0x5fa60e
mov edx, dword [esp + 0x3c]
mov cl, byte [edx + eax]
and byte [eax + edi], cl
inc eax
cmp eax, ebp
jb 0x5fa4ae
mov ecx, dword [esp + 0x64]
mov eax, ebp
mov esi, edi
cmp ebp, 4
jb 0x5fa4e8
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x5fa510
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x5fa4d4
test eax, eax
je 0x5fa50c
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x5fa510
cmp eax, 1
jbe 0x5fa50c
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x5fa510
cmp eax, 2
jbe 0x5fa50c
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x5fa510
inc dword [esp + 0x20]
push edi
mov byte [esp + 0xdec], 7
call fcn.007c8563
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x3c]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
cmp eax, esi
je 0x5fa544
push eax
call fcn.00803053
add esp, 4
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
cmp eax, esi
je 0x5fa561
push eax
call fcn.00803053
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5fa591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x78]
inc esi
inc dword [esp + 0x24]
jns 0x5fa1c9
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x5fa5b5
lea ecx, [eax*4]
cmp ecx, dword [esp + 0x24]
je 0x5fa61d
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5fa5c6
push eax
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5fa5d7
push eax
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5fa5ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x1c]
mov esi, dword [esp + 0x58]
xor ebp, ebp
jmp 0x5f9e91
push 0x80070057
call fcn.004a8210
call fcn.004a8580
push ecx
lea edx, [esp + 0x2c8]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.004a8f10
lea eax, [esp + 0xa0]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebx, dword [esp + 0xa0]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
je 0x5fa672
push eax
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5fa683
push eax
call fcn.00803053
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5fa6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5fa6ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5fa6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5fa727
push eax
jmp 0x5fa721
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0xde8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5fa71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebp
je 0x5fa727
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0xde0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc8]
xor ecx, esp
call fcn.0080262b
add esp, 0xdd8
ret