Function at 0x4012a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x138
push ebx
push esi
push edi
push ebp
lea ebp, [ecx + 0x134]
mov edi, ecx
call sub.WINMM.dll_waveOutGetNumDevs
lea ecx, [esp + 0x48]
cmp eax, 1
sbb al, al
push ecx
inc al
mov ecx, edi
mov byte [edi + 0x130], al
call sub.SV221MN.dll_Ordinal_1845
push eax
mov ecx, ebp
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
push 2
call sub.SV221MN.dll_Ordinal_1364
mov ecx, eax
call sub.SV221MN.dll_Ordinal_1353
call sub.SV221MN.dll_Ordinal_1364
mov ecx, eax
call sub.SV221MN.dll_Ordinal_1359
cmp dword [0x411004], 0
mov esi, eax
jne 0x401310
push 0x40f018
call sub.SV221MN.dll_Ordinal_56
mov ebx, 0x3e8
push 0xffff
mov word [esp + 0x50], bx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
mov dword [esp + 0x50], 0
mov word [esp + 0x56], 0x100
inc dword [0x411004]
call sub.SV221MN.dll_Ordinal_1513
push 0x8c
call fcn.0040b65e
add esp, 4
test eax, eax
je 0x401375
mov word [esp + 0x4c], bx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
mov word [esp + 0x4e], 0x100
push ecx
mov ecx, eax
call sub.SV221MN.dll_Ordinal_1474
mov ebx, eax
jmp 0x401377
xor ebx, ebx
dec dword [0x411004]
jne 0x401386
push 0
call sub.SV221MN.dll_Ordinal_56
push ebx
mov ecx, esi
push 0x5a
call sub.SV221MN.dll_Ordinal_1491
lea eax, [esp + 0x28]
push 0x63
push eax
mov ecx, ebx
xor esi, esi
call sub.SV221MN.dll_Ordinal_1506
push 7
mov eax, dword [ebp]
mov ax, word [eax]
lea ecx, [esp + 0x2c]
push eax
push esi
push ebp
call sub.TL221MN.dll_Ordinal_167
push eax
mov ecx, ebx
push 0x63
call sub.SV221MN.dll_Ordinal_1533
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0x402020
push ecx
mov ecx, ebx
call sub.SV221MN.dll_Ordinal_1526
lea eax, [esp + 0x48]
mov ecx, ebx
mov dword [esp + 0x48], edi
push eax
mov dword [esp + 0x50], 0x401ff0
call sub.SV221MN.dll_Ordinal_1523
push esi
call fcn.0040b695
add esp, 4
and eax, 0xffff
push eax
call fcn.0040b66d
add esp, 4
mov ecx, dword [0x412470]
call sub.SV221MN.dll_Ordinal_1354
lea ecx, [esp + 0x40]
push str.24_Games_for_Windows_95
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], esi
call sub.TL221MN.dll_Ordinal_136
lea ecx, [esp + 0x48]
push str.General
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x40]
push eax
call fcn.00401040
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
push str.AnimationDelay
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], esi
je 0x4014a3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
lea ebx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], esi
push edx
mov ecx, dword [esp + 0x4c]
push ebx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x4c], 0x100
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call ebx
test eax, eax
jne 0x4014a9
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x4014b2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x4014ef
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_184
mov dword [section..data], eax
jmp 0x40158a
call sub.SV221MN.dll_Ordinal_1417
cmp eax, 1
je 0x40150f
cmp eax, 2
je 0x40151b
cmp eax, 4
je 0x401527
mov dword [section..data], 0x2710
jmp 0x401531
mov dword [section..data], 0
jmp 0x401531
mov dword [section..data], 0x1770
jmp 0x401531
mov dword [section..data], 0x36b0
mov eax, dword [section..data]
lea ecx, [esp + 0x3c]
push eax
call sub.TL221MN.dll_Ordinal_133
mov esi, eax
push str.AnimationDelay
lea ecx, [esp + 0x4c]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], 0
je 0x401578
mov ecx, dword [esi]
xor edx, edx
mov dx, word [ecx]
add ecx, 4
push edx
mov eax, dword [eax]
push ecx
add eax, 4
mov ecx, dword [esp + 0x4c]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x40]
push ebp
call fcn.00401040
lea ecx, [esp + 0x34]
push str.SkillLevel
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], 0
je 0x4015eb
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
lea esi, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x100
push edx
mov eax, dword [eax]
push esi
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x4015eb
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x4015f4
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x401630
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_180
mov word [edi + 0x10c], ax
jmp 0x401639
mov word [edi + 0x10c], 0
lea ecx, [esp + 0x34]
push str.Background
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], 0
je 0x401690
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
lea esi, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x100
push edx
mov eax, dword [eax]
push esi
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x401690
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x401699
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x30]
lea esi, [edi + 0x10e]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x4016d4
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_180
jmp 0x4016e4
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1838
mov ecx, 0x64
sub edx, edx
div ecx
mov byte [esi], al
mov byte [edi + 0x10f], al
mov al, byte [esi]
cmp al, 0x10
jb 0x40176e
cmp al, 0x1f
jb 0x4016f9
mov byte [esi], 0x1e
cmp dword [0x411004], 0
jne 0x40170c
push 0x40f018
call sub.SV221MN.dll_Ordinal_56
push 4
inc dword [0x411004]
call fcn.0040b65e
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x401753
mov al, byte [esi]
lea edx, [esp + 0x48]
and eax, 0xffff00ff
push edx
add ax, 0x43c
mov word [esp + 0x50], ax
mov dword [esp + 0x4c], 0
mov word [esp + 0x52], 0x100
call sub.SV221MN.dll_Ordinal_1773
mov dword [edi + 0x110], eax
jmp 0x40175d
mov dword [edi + 0x110], 0
dec dword [0x411004]
jne 0x401778
push 0
call sub.SV221MN.dll_Ordinal_56
jmp 0x401778
mov dword [edi + 0x110], 0
lea ecx, [esp + 0x34]
push str.SoundEnabled
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], 0
je 0x4017cf
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
lea esi, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x100
push edx
mov eax, dword [eax]
push esi
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x4017cf
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x4017d8
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x401813
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_180
mov byte [edi + 0x115], al
jmp 0x40181a
mov byte [edi + 0x115], 1
lea ecx, [esp + 0x34]
push str.AnimationSpeed
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x44], 0
je 0x401871
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x48]
lea esi, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x100
push edx
mov eax, dword [eax]
push esi
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x401871
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x40187a
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x30]
lea esi, [edi + 0x114]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x4018b7
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_180
mov byte [esi], al
jmp 0x4018ba
mov byte [esi], 0xff
mov al, byte [esi]
cmp al, 0xf
jg 0x4018c4
cmp al, 0xff
jge 0x4018c7
mov byte [esi], 0xff
lea ecx, [esp + 0x30]
push 0
mov word [esp + 0x16], 0
call sub.TL221MN.dll_Ordinal_129
mov esi, eax
push str.Sound
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x24]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x24]
push esi
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x24]
call sub.TL221MN.dll_Ordinal_137
cmp dword [esp + 0x44], 0
je 0x40195f
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x100
push eax
push ecx
call ebx
test eax, eax
jne 0x40195f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x401968
lea ecx, [esp + 0x14]
call sub.TL221MN.dll_Ordinal_136
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x14]
cmp word [eax], 0
je 0x401af1
lea ecx, [esp + 0x14]
push 0
push 0x2c
call sub.TL221MN.dll_Ordinal_173
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push 0
push eax
call sub.TL221MN.dll_Ordinal_156
lea ecx, [esp + 0x14]
push 1
push 0
call sub.TL221MN.dll_Ordinal_158
push 8
call fcn.0040b65e
add esp, 4
mov esi, eax
test esi, esi
je 0x4019f6
mov ecx, esi
call sub.TL221MN.dll_Ordinal_136
lea ecx, [esi + 4]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call sub.TL221MN.dll_Ordinal_138
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
push eax
call sub.TL221MN.dll_Ordinal_138
jmp 0x4019f8
xor esi, esi
push 0xffffffffffffffff
lea ecx, [edi + 0x118]
push esi
call sub.TL221MN.dll_Ordinal_241
inc word [esp + 0x12]
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x12]
push eax
call sub.TL221MN.dll_Ordinal_129
mov esi, eax
push str.Sound
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x1c]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x1c]
push esi
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x1c]
call sub.TL221MN.dll_Ordinal_137
cmp dword [esp + 0x44], 0
je 0x401a9f
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
add eax, 4
mov ecx, dword [esp + 0x50]
push 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x100
push eax
push ecx
call ebx
test eax, eax
jne 0x401a9f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
call sub.TL221MN.dll_Ordinal_134
jmp 0x401aa8
lea ecx, [esp + 0x18]
call sub.TL221MN.dll_Ordinal_136
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call sub.TL221MN.dll_Ordinal_138
lea ecx, [esp + 0x18]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x24]
call sub.TL221MN.dll_Ordinal_137
mov eax, dword [esp + 0x14]
cmp word [eax], 0
jne 0x401991
lea ecx, [esp + 0x48]
push str._Start
call sub.TL221MN.dll_Ordinal_134
mov esi, eax
push ebp
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
push esi
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_136
push eax
mov ecx, edi
lea eax, [esp + 0x3c]
push eax
call fcn.00402700
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x48]
push str._Exit
call sub.TL221MN.dll_Ordinal_134
mov ebx, eax
push ebp
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
push ebx
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_136
push eax
mov ecx, edi
lea eax, [esp + 0x3c]
push eax
call fcn.00402700
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
push str._Start
call sub.TL221MN.dll_Ordinal_134
mov esi, eax
push ebp
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
push esi
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea eax, [esp + 0x38]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, edi
call fcn.004026a0
cmp byte [edi + 0x130], 0
je 0x401c3a
cmp byte [edi + 0x115], 0
je 0x401c3a
mov eax, dword [eax]
cmp word [eax], 0
je 0x401c3a
push 3
add eax, 4
push eax
call sub.WINMM.dll_sndPlaySoundA
lea ecx, [esp + 0x48]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x3c]
call sub.TL221MN.dll_Ordinal_137
push 0xfffffffffffffffe
call sub.SV221MN.dll_Ordinal_1461
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1885
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1927
test al, al
jne 0x401d20
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1928
test al, al
jne 0x401d20
push 0x3e
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
mov si, ax
push 0x3d
call ebx
mov bx, ax
mov ecx, edi
lea eax, [esp + 0x3c]
push eax
call sub.SV221MN.dll_Ordinal_1844
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call sub.SV221MN.dll_Ordinal_1843
mov cx, word [esp + 0x38]
movsx ebp, word [esp + 0x3c]
movsx eax, cx
mov dx, word [esp + 0x3a]
add eax, ebp
movsx ebp, bx
cmp eax, ebp
jle 0x401cdb
sub bx, word [esp + 0x3c]
mov word [esp + 0x38], bx
jns 0x401cdb
mov word [esp + 0x38], 0
movsx ebx, word [esp + 0x3a]
movsx eax, word [esp + 0x3e]
movsx ebp, si
add ebx, eax
cmp ebx, ebp
jle 0x401d01
sub si, word [esp + 0x3e]
mov word [esp + 0x3a], si
jns 0x401d01
mov word [esp + 0x3a], 0
cmp cx, word [esp + 0x38]
jne 0x401d0f
cmp dx, word [esp + 0x3a]
je 0x401d20
lea eax, [esp + 0x38]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1823
lea ecx, [esp + 0x14]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_137
cmp dword [esp + 0x44], 0
je 0x401d44
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x40]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x28]
call sub.TL221MN.dll_Ordinal_137
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret