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

Disassembly:
push 0xffffffffffffffff
push 0x6227b3
mov eax, dword fs:[0]
push eax
sub esp, 0xbb4
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7161c0]
xor eax, esp
push eax
lea eax, [esp + 0xbc8]
mov dword fs:[0], eax
mov eax, dword [0x69b5d0]
mov ebp, ecx
mov dword [ebp + 0x968], eax
mov ecx, dword [0x69b5d4]
lea ebx, [ebp + 0x968]
mov dword [ebx + 4], ecx
mov edx, dword [0x69b5d8]
mov dword [ebx + 8], edx
mov eax, dword [0x69b5dc]
mov edx, dword [ebp]
mov edx, dword [edx + 8]
xor edi, edi
push edi
push 1
mov dword [ebx + 0xc], eax
push 0x914
lea eax, [esp + 0x2bc]
push eax
mov ecx, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x80], ebx
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
xor esi, esi
call edx
test eax, eax
jne 0x50790a
cmp esi, 0x3e8
jge 0x50790a
mov eax, dword [esp + 0x2b0]
cmp eax, 0xba010000
je 0x507a79
cmp eax, 0x5367674f
je 0x507b05
cmp eax, 0xa3df451a
je 0x507b46
cmp eax, 0x464d522e
je 0x507b87
cmp eax, 0x46464952
mov ecx, dword [esp + 0x2b8]
jne 0x5078a8
cmp ecx, 0x20495641
je 0x507bc7
mov eax, dword [esp + 0x2b4]
cmp eax, 0x766f6f6d
je 0x507c1f
cmp eax, 0x7461646d
je 0x507c1f
cmp eax, 0x70797466
jne 0x5078e5
cmp ecx, 0x6d6f7369
jne 0x5078e5
cmp dword [esp + 0x2c0], 0x3134706d
je 0x507c1f
mov eax, dword [ebp]
mov edx, dword [eax + 8]
push edi
push 1
push 0x914
lea ecx, [esp + 0x2bc]
push ecx
mov ecx, ebp
add esi, 1
call edx
test eax, eax
je 0x50784f
xor esi, esi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [esp + 0x5c], esi
push 0x64e2e4
lea ecx, [esp + 0x40]
mov dword [esp + 0xbd4], edi
call fcn.00401eb0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x28]
push eax
push 0x20019
push edi
push ecx
push DirectSoundCreate
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x5082a8
mov edx, dword [esp + 0x28]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x44], edi
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x48]
push edi
push edi
push edi
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x1c0]
push edx
push eax
push ecx
mov dword [esp + 0x78], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5082a4
mov dword [esp + 0x2c], edi
push 0x630bfc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xbdc], 2
call fcn.00403170
lea ecx, [esp + 0x1b8]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0xbe8], 3
call fcn.00403170
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push edi
push eax
push DirectSoundCreate
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x507a05
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x2c], edx
test eax, eax
mov eax, dword [esp + 0x74]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x507a2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x507a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x507c60
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x507ce8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x44], 1
xor edi, edi
jmp 0x50795e
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [ebp + 0x28], eax
mov al, byte [esp + 0x2b4]
mov cl, al
sbb dword [ebp + 0x2c], edx
and cl, 0xc4
cmp cl, 0x44
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x30], esi
jne 0x507ac6
mov edx, dword [0x6338bc]
mov dword [ebx], edx
mov eax, dword [0x6338c0]
mov dword [ebx + 4], eax
mov ecx, dword [0x6338c4]
mov dword [ebx + 8], ecx
mov edx, dword [0x6338c8]
mov dword [ebx + 0xc], edx
jmp 0x507aed
and al, 0xf1
cmp al, 0x21
jne 0x507aed
mov eax, dword [0x6335bc]
mov dword [ebx], eax
mov ecx, dword [0x6335c0]
mov dword [ebx + 4], ecx
mov edx, dword [0x6335c4]
mov dword [ebx + 8], edx
mov eax, dword [0x6335c8]
mov dword [ebx + 0xc], eax
push 0x69b5d0
push ebx
call fcn.00401250
add esp, 8
test eax, eax
sete al
jmp 0x5082dd
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [ebp + 0x28], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
sbb dword [ebp + 0x2c], edx
mov dword [ebp + 0x30], esi
mov ecx, dword [0x63c1ac]
mov dword [ebx], ecx
mov edx, dword [0x63c1b0]
mov dword [ebx + 4], edx
mov eax, dword [0x63c1b4]
mov dword [ebx + 8], eax
mov ecx, dword [0x63c1b8]
mov dword [ebx + 0xc], ecx
mov al, 1
jmp 0x5082dd
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [ebp + 0x28], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
sbb dword [ebp + 0x2c], edx
mov dword [ebp + 0x30], esi
mov edx, dword [0x63c1fc]
mov dword [ebx], edx
mov eax, dword [0x63c200]
mov dword [ebx + 4], eax
mov ecx, dword [0x63c204]
mov dword [ebx + 8], ecx
mov edx, dword [0x63c208]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x5082dd
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [ebp + 0x28], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
sbb dword [ebp + 0x2c], edx
mov dword [ebp + 0x30], esi
mov eax, dword [0x63c08c]
mov dword [ebx], eax
mov ecx, dword [0x63c090]
mov dword [ebx + 4], ecx
mov edx, dword [0x63c094]
mov dword [ebx + 8], edx
mov eax, dword [0x63c098]
mov dword [ebx + 0xc], eax
mov al, 1
jmp 0x5082dd
mov edx, dword [esp + 0x2b4]
mov ecx, dword [ebp + 0x2c]
xor eax, eax
add edx, 8
cmp ecx, eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov edi, dword [ebp + 0x28]
jg 0x507bed
jl 0x507be9
cmp edi, edx
jae 0x507bed
mov edx, edi
mov eax, ecx
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x30], esi
mov ecx, dword [0x6335dc]
mov dword [ebx], ecx
mov edx, dword [0x6335e0]
mov dword [ebx + 4], edx
mov eax, dword [0x6335e4]
mov dword [ebx + 8], eax
mov ecx, dword [0x6335e8]
mov dword [ebx + 0xc], ecx
mov al, 1
jmp 0x5082dd
mov eax, esi
imul eax, eax, 0x914
cdq
sub dword [ebp + 0x28], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
sbb dword [ebp + 0x2c], edx
mov dword [ebp + 0x30], esi
mov edx, dword [0x6335fc]
mov dword [ebx], edx
mov eax, dword [0x633600]
mov dword [ebx + 4], eax
mov ecx, dword [0x633604]
mov dword [ebx + 8], ecx
mov edx, dword [0x633608]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x5082dd
mov dword [esp + 0x24], 0
jmp 0x507c70
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xa0]
push 0x635f58
push edx
call fcn.005dbdee
mov esi, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x5c]
push edx
push 0
lea eax, [esp + 0xac]
push eax
push esi
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x507cdd
mov eax, dword [esp + 0x54]
cmp eax, 1
je 0x507ccb
cmp eax, 2
jne 0x507cdd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x507cf4
cmp byte [esp + eax + 0xa7], 0
je 0x507cfc
test esi, esi
je 0x507ce8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x44], 1
xor edi, edi
jmp 0x50795e
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401eb0
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
mov byte [esp + 0xbd0], 4
jge 0x507d3e
push esi
lea ecx, [esp + 0x18]
call fcn.00401990
mov edx, dword [esp + 0x14]
test esi, esi
mov byte [edi + edx], 0x2c
jl 0x5081e0
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x5081e0
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
xor esi, esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
xor ebp, ebp
call fcn.0049c800
lea ecx, [esp + 0x7c]
call fcn.0049c800
mov byte [esp + 0xbd0], 6
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
test esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
jl 0x508182
cmp esi, ecx
jge 0x508182
add eax, esi
push 0x2c
push eax
call fcn.005d8f05
add esp, 8
test eax, eax
je 0x508182
sub eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
js 0x508182
mov ecx, eax
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.00402e40
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
and ebx, 3
cmp ebx, 3
mov byte [esp + 0xbd0], 7
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], ebx
ja case.default.0x507e06
jmp dword [ebx*4 + 0x508308]
push 0xa
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.005dcca4
cdq
add esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x20], 0
jl 0x508148
cmp ebx, 3
jne 0x508148
test ebp, ebp
jbe 0x508148
mov eax, dword [esp + 0x80]
test eax, eax
jbe 0x508148
cmp ebp, eax
jne 0x508148
mov edi, dword [esp + 0x38]
xor ebx, ebx
cmp edi, ebx
jl 0x507fbb
jg 0x507e73
cmp dword [esp + 0x34], ebx
jb 0x507fbb
mov esi, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 4]
push edi
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x507fbf
jmp 0x507fde
push 0xa
lea edx, [esp + 0x54]
push edx
push eax
call fcn.005dcca4
add esp, 0xc
mov ebp, eax
jmp 0x507e26
lea ecx, [esp + 0x60]
push ecx
push ecx
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x507edf
cmp eax, dword [esi]
jne 0x507edf
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x507f15
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5081db
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.005d8f18
add esp, 0x10
mov edx, dword [esp + 0x20]
add edi, 0x10
mov dword [edx], edi
call fcn.00499340
add esp, 8
jmp 0x507e26
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x50], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x507f62
cmp eax, dword [esi]
jne 0x507f62
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x507f98
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5081db
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.005d8f18
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00499340
mov ebx, dword [esp + 0x20]
add esp, 8
jmp 0x507e26
mov dword [esp + 0x20], 0xffffffff
jmp 0x50814c
mov esi, dword [esp + 0x40]
mov ecx, dword [esi + 0x28]
add ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 4]
adc edx, edi
push edx
push ecx
mov ecx, esi
call eax
test eax, eax
jne 0x508123
mov dword [esp + 0x48], ebx
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0xbd4], 8
call fcn.0041a720
test al, al
mov edi, dword [esp + 0x48]
je 0x508110
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x18]
push eax
push 1
push ebp
push edi
mov dword [esp + 0x28], 0
call edx
test eax, eax
jne 0x508110
cmp ebp, dword [esp + 0x18]
jne 0x508110
mov esi, dword [esp + 0x64]
cmp esi, ebp
jae 0x50805f
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x68]
call fcn.004e2370
cmp esi, ebp
jae 0x50805f
cmp esi, dword [esp + 0x64]
jae 0x5081e0
mov eax, dword [esp + 0x60]
mov byte [eax + esi], 0xff
add esi, 1
cmp esi, ebp
jb 0x508046
xor eax, eax
test ebp, ebp
jbe 0x508080
cmp eax, dword [esp + 0x64]
jae 0x5081e0
mov ecx, dword [esp + 0x60]
mov dl, byte [ecx + eax]
and byte [eax + edi], dl
add eax, 1
cmp eax, ebp
jb 0x508065
cmp ebp, 4
mov ecx, dword [esp + 0x7c]
mov eax, ebp
mov edx, edi
jb 0x5080a4
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5080a8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x508090
test eax, eax
je 0x508105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5080f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x508105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5080f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x508105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5080f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x508105
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x508105
test esi, esi
mov eax, 1
jg 0x508107
or eax, 0xffffffff
jmp 0x508107
xor eax, eax
test eax, eax
jne 0x508110
add dword [esp + 0x1c], 1
push edi
mov byte [esp + 0xbd4], 7
call fcn.005b465e
add esp, 4
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor ebp, ebp
call fcn.004e2370
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x84]
call fcn.004e2370
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x508170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x4c]
add esi, 1
add dword [esp + 0x20], 1
jns 0x507d90
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x508197
lea ecx, [eax*4]
cmp ecx, dword [esp + 0x20]
je 0x5081ea
lea ecx, [esp + 0x7c]
call fcn.00598980
lea ecx, [esp + 0x60]
call fcn.00598980
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5081d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x24], 1
jmp 0x507c70
jmp fcn.00418c70
push 0x80070057
call fcn.00401470
push ecx
lea edx, [esp + 0x1b0]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.00401eb0
lea eax, [esp + 0x90]
push eax
call fcn.00498be0
mov edx, dword [eax]
mov ecx, dword [esp + 0x78]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.00598980
lea ecx, [esp + 0x60]
call fcn.00598980
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x508262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x508271
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x508299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5082db
push eax
jmp 0x5082d5
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0xbd0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5082d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x5082db
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0xbc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbb0]
xor ecx, esp
call fcn.005d8d34
add esp, 0xbc0
ret