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

Disassembly:
push 0xffffffffffffffff
push 0x605583
mov eax, dword fs:[0]
push eax
sub esp, 0xbb4
mov eax, dword [0x6f1550]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0xbc8]
mov dword fs:[0], eax
mov eax, dword [0x67b350]
mov ebp, ecx
mov dword [ebp + 0x968], eax
mov ecx, dword [0x67b354]
lea ebx, [ebp + 0x968]
mov dword [ebx + 4], ecx
mov edx, dword [0x67b358]
mov dword [ebx + 8], edx
mov eax, dword [0x67b35c]
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 0x4f690a
cmp esi, 0x3e8
jge 0x4f690a
mov eax, dword [esp + 0x2b0]
cmp eax, 0xba010000
je 0x4f6a79
cmp eax, 0x5367674f
je 0x4f6b05
cmp eax, 0xa3df451a
je 0x4f6b46
cmp eax, 0x464d522e
je 0x4f6b87
cmp eax, 0x46464952
mov ecx, dword [esp + 0x2b8]
jne 0x4f68a8
cmp ecx, 0x20495641
je 0x4f6bc7
mov eax, dword [esp + 0x2b4]
cmp eax, 0x766f6f6d
je 0x4f6c1f
cmp eax, 0x7461646d
je 0x4f6c1f
cmp eax, 0x70797466
jne 0x4f68e5
cmp ecx, 0x6d6f7369
jne 0x4f68e5
cmp dword [esp + 0x2c0], 0x3134706d
je 0x4f6c1f
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 0x4f684f
xor esi, esi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [esp + 0x5c], esi
push 0x62f034
lea ecx, [esp + 0x40]
mov dword [esp + 0xbd4], edi
call fcn.00401f00
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 0x4f72a8
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 0x4f72a4
mov dword [esp + 0x2c], edi
push 0x612bbc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xbdc], 2
call fcn.00418de0
lea ecx, [esp + 0x1b8]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0xbe8], 3
call fcn.00418de0
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 0x4f6a05
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 0x4f6a2a
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 0x4f6a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4f6c60
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f6ce8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x44], 1
xor edi, edi
jmp 0x4f695e
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 0x4f6ac6
mov edx, dword [0x6149f4]
mov dword [ebx], edx
mov eax, dword [0x6149f8]
mov dword [ebx + 4], eax
mov ecx, dword [0x6149fc]
mov dword [ebx + 8], ecx
mov edx, dword [0x614a00]
mov dword [ebx + 0xc], edx
jmp 0x4f6aed
and al, 0xf1
cmp al, 0x21
jne 0x4f6aed
mov eax, dword [0x614704]
mov dword [ebx], eax
mov ecx, dword [0x614708]
mov dword [ebx + 4], ecx
mov edx, dword [0x61470c]
mov dword [ebx + 8], edx
mov eax, dword [0x614710]
mov dword [ebx + 0xc], eax
push 0x67b350
push ebx
call fcn.00401260
add esp, 8
test eax, eax
sete al
jmp 0x4f72dd
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 [0x61d11c]
mov dword [ebx], ecx
mov edx, dword [0x61d120]
mov dword [ebx + 4], edx
mov eax, dword [0x61d124]
mov dword [ebx + 8], eax
mov ecx, dword [0x61d128]
mov dword [ebx + 0xc], ecx
mov al, 1
jmp 0x4f72dd
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 [0x61d16c]
mov dword [ebx], edx
mov eax, dword [0x61d170]
mov dword [ebx + 4], eax
mov ecx, dword [0x61d174]
mov dword [ebx + 8], ecx
mov edx, dword [0x61d178]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x4f72dd
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 [0x61d00c]
mov dword [ebx], eax
mov ecx, dword [0x61d010]
mov dword [ebx + 4], ecx
mov edx, dword [0x61d014]
mov dword [ebx + 8], edx
mov eax, dword [0x61d018]
mov dword [ebx + 0xc], eax
mov al, 1
jmp 0x4f72dd
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 0x4f6bed
jl 0x4f6be9
cmp edi, edx
jae 0x4f6bed
mov edx, edi
mov eax, ecx
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x30], esi
mov ecx, dword [0x614724]
mov dword [ebx], ecx
mov edx, dword [0x614728]
mov dword [ebx + 4], edx
mov eax, dword [0x61472c]
mov dword [ebx + 8], eax
mov ecx, dword [0x614730]
mov dword [ebx + 0xc], ecx
mov al, 1
jmp 0x4f72dd
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 [0x614744]
mov dword [ebx], edx
mov eax, dword [0x614748]
mov dword [ebx + 4], eax
mov ecx, dword [0x61474c]
mov dword [ebx + 8], ecx
mov edx, dword [0x614750]
mov dword [ebx + 0xc], edx
mov al, 1
jmp 0x4f72dd
mov dword [esp + 0x24], 0
jmp 0x4f6c70
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xa0]
push 0x619b20
push edx
call fcn.005c18e6
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 0x4f6cdd
mov eax, dword [esp + 0x54]
cmp eax, 1
je 0x4f6ccb
cmp eax, 2
jne 0x4f6cdd
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4f6cf4
cmp byte [esp + eax + 0xa7], 0
je 0x4f6cfc
test esi, esi
je 0x4f6ce8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x44], 1
xor edi, edi
jmp 0x4f695e
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401f00
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 0x4f6d3e
push esi
lea ecx, [esp + 0x18]
call fcn.004019e0
mov edx, dword [esp + 0x14]
test esi, esi
mov byte [edi + edx], 0x2c
jl 0x4f71e0
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x4f71e0
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.00433fe0
lea ecx, [esp + 0x7c]
call fcn.00433fe0
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 0x4f7182
cmp esi, ecx
jge 0x4f7182
add eax, esi
push 0x2c
push eax
call fcn.005bf875
add esp, 8
test eax, eax
je 0x4f7182
sub eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
js 0x4f7182
mov ecx, eax
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.004042e0
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.0x4f6e06
jmp dword [ebx*4 + 0x4f7308]
push 0xa
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.005c2719
cdq
add esp, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x20], 0
jl 0x4f7148
cmp ebx, 3
jne 0x4f7148
test ebp, ebp
jbe 0x4f7148
mov eax, dword [esp + 0x80]
test eax, eax
jbe 0x4f7148
cmp ebp, eax
jne 0x4f7148
mov edi, dword [esp + 0x38]
xor ebx, ebx
cmp edi, ebx
jl 0x4f6fbb
jg 0x4f6e73
cmp dword [esp + 0x34], ebx
jb 0x4f6fbb
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 0x4f6fbf
jmp 0x4f6fde
push 0xa
lea edx, [esp + 0x54]
push edx
push eax
call fcn.005c2719
add esp, 0xc
mov ebp, eax
jmp 0x4f6e26
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 0x4f6edf
cmp eax, dword [esi]
jne 0x4f6edf
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4f6f15
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 0x4f71db
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.005bf888
add esp, 0x10
mov edx, dword [esp + 0x20]
add edi, 0x10
mov dword [edx], edi
call fcn.00488440
add esp, 8
jmp 0x4f6e26
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 0x4f6f62
cmp eax, dword [esi]
jne 0x4f6f62
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4f6f98
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 0x4f71db
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.005bf888
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00488440
mov ebx, dword [esp + 0x20]
add esp, 8
jmp 0x4f6e26
mov dword [esp + 0x20], 0xffffffff
jmp 0x4f714c
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 0x4f7123
mov dword [esp + 0x48], ebx
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0xbd4], 8
call fcn.004131c0
test al, al
mov edi, dword [esp + 0x48]
je 0x4f7110
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 0x4f7110
cmp ebp, dword [esp + 0x18]
jne 0x4f7110
mov esi, dword [esp + 0x64]
cmp esi, ebp
jae 0x4f705f
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x68]
call fcn.004871d0
cmp esi, ebp
jae 0x4f705f
cmp esi, dword [esp + 0x64]
jae 0x4f71e0
mov eax, dword [esp + 0x60]
mov byte [eax + esi], 0xff
add esi, 1
cmp esi, ebp
jb 0x4f7046
xor eax, eax
test ebp, ebp
jbe 0x4f7080
cmp eax, dword [esp + 0x64]
jae 0x4f71e0
mov ecx, dword [esp + 0x60]
mov dl, byte [ecx + eax]
and byte [eax + edi], dl
add eax, 1
cmp eax, ebp
jb 0x4f7065
cmp ebp, 4
mov ecx, dword [esp + 0x7c]
mov eax, ebp
mov edx, edi
jb 0x4f70a4
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4f70a8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4f7090
test eax, eax
je 0x4f7105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4f70f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f7105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4f70f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f7105
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x4f70f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4f7105
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4f7105
test esi, esi
mov eax, 1
jg 0x4f7107
or eax, 0xffffffff
jmp 0x4f7107
xor eax, eax
test eax, eax
jne 0x4f7110
add dword [esp + 0x1c], 1
push edi
mov byte [esp + 0xbd4], 7
call fcn.0059b05f
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.004871d0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x84]
call fcn.004871d0
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 0x4f7170
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 0x4f6d90
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4f7197
lea ecx, [eax*4]
cmp ecx, dword [esp + 0x20]
je 0x4f71ea
lea ecx, [esp + 0x7c]
call fcn.004c8dc0
lea ecx, [esp + 0x60]
call fcn.004c8dc0
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 0x4f71d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x24], 1
jmp 0x4f6c70
jmp fcn.00401810
push 0x80070057
call fcn.00401480
push ecx
lea edx, [esp + 0x1b0]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.00401f00
lea eax, [esp + 0x90]
push eax
call fcn.00487ce0
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.004c8dc0
lea ecx, [esp + 0x60]
call fcn.004c8dc0
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 0x4f7262
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 0x4f7271
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 0x4f7299
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 0x4f72db
push eax
jmp 0x4f72d5
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 0x4f72d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x4f72db
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.005bf6a4
add esp, 0xbc0
ret