Function at 0x402320
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov dword [ecx], 0x410040
push edi
push ebp
mov esi, ecx
lea ecx, [esp + 0x34]
push str.24_Games_for_Windows_95
call sub.TL221MN.dll_Ordinal_134
lea eax, [esi + 0x134]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
call fcn.00401040
mov al, byte [esi + 0x10e]
cmp byte [esi + 0x10f], al
je 0x4023bb
and ax, 0xff
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_129
mov edi, eax
push str.Background
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x38], 0
je 0x4023a9
mov ecx, dword [edi]
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 + 0x40]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
mov edi, dword [esi + 0x110]
test edi, edi
je 0x4023d5
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1775
push edi
call fcn.0040b705
add esp, 4
movsx eax, byte [esi + 0x115]
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.SoundEnabled
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x38], 0
je 0x40241e
mov ecx, dword [edi]
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 + 0x40]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
mov ax, word [esi + 0x10c]
test ax, ax
je 0x402490
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_129
mov edi, eax
push str.SkillLevel
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x38], 0
je 0x40247e
mov ecx, dword [edi]
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 + 0x40]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
mov al, byte [esi + 0x114]
cmp al, 0xff
je 0x4024f1
movsx eax, al
lea ecx, [esp + 0x2c]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.AnimationSpeed
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x38], 0
je 0x4024df
mov ecx, dword [edi]
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 + 0x40]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
xor di, di
lea ecx, [esi + 0x118]
call sub.TL221MN.dll_Ordinal_233
mov ebx, eax
test ebx, ebx
je 0x402650
lea ecx, [esp + 0x28]
push 0x4110c0
call sub.TL221MN.dll_Ordinal_134
mov ebp, eax
push ebx
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x1c]
push ebp
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x1c]
call sub.TL221MN.dll_Ordinal_137
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call sub.TL221MN.dll_Ordinal_125
lea eax, [ebx + 4]
lea ecx, [esp + 0x18]
push eax
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x18]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
push edi
call sub.TL221MN.dll_Ordinal_129
mov ebp, eax
push str.Sound
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x14]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x14]
push ebp
call sub.TL221MN.dll_Ordinal_148
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call sub.TL221MN.dll_Ordinal_125
lea ecx, [esp + 0x14]
call sub.TL221MN.dll_Ordinal_137
cmp dword [esp + 0x38], 0
je 0x4025e7
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [eax]
add eax, 4
push ecx
push eax
mov eax, dword [esp + 0x2c]
push 1
push 0
add eax, 4
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x24]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x2c]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x10]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x20]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x28]
call sub.TL221MN.dll_Ordinal_137
test ebx, ebx
je 0x402639
lea ecx, [ebx + 4]
call sub.TL221MN.dll_Ordinal_137
mov ecx, ebx
call sub.TL221MN.dll_Ordinal_137
push ebx
call fcn.0040b705
add esp, 4
inc di
lea ecx, [esi + 0x118]
call sub.TL221MN.dll_Ordinal_243
mov ebx, eax
test ebx, ebx
jne 0x402509
cmp dword [esp + 0x38], 0
je 0x402662
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x138]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x134]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x118]
call sub.TL221MN.dll_Ordinal_227
mov ecx, esi
call sub.SV221MN.dll_Ordinal_1917
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret