Function at 0x402570
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
push ebx
push esi
mov dword [ecx], 0x413040
push edi
push ebp
mov esi, ecx
lea ecx, [esp + 0x38]
push str.24_Games_for_Windows_95
call sub.TL221MN.dll_Ordinal_134
lea eax, [esi + 0x180]
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], 0
push eax
call fcn.00401040
mov al, byte [esi + 0x10e]
cmp byte [esi + 0x10f], al
je 0x40260b
and ax, 0xff
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_129
mov edi, eax
push str.Background
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x4025f9
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov edi, dword [esi + 0x110]
test edi, edi
je 0x402625
mov ecx, edi
call sub.SV221MN.dll_Ordinal_1775
push edi
call fcn.0040c45d
add esp, 4
mov ecx, dword [esi + 0x11c]
test ecx, ecx
je 0x402635
push 1
mov eax, dword [ecx]
call dword [eax]
movsx eax, byte [esi + 0x115]
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.SoundEnabled
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x40267e
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov ax, word [esi + 0x10c]
test ax, ax
je 0x4026f0
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_129
mov edi, eax
push str.SkillLevel
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x4026de
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov al, byte [esi + 0x114]
cmp al, 0xff
je 0x402751
movsx eax, al
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.AnimationSpeed
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x40273f
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov al, byte [esi + 0x116]
cmp al, 0xff
je 0x4027b2
movsx eax, al
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.ShowDragZones
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x4027a0
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
mov al, byte [esi + 0x117]
cmp al, 0xff
je 0x402813
movsx eax, al
lea ecx, [esp + 0x30]
push eax
call sub.TL221MN.dll_Ordinal_130
mov edi, eax
push str.ShowDropZones
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_134
cmp dword [esp + 0x3c], 0
je 0x402801
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 + 0x44]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x34]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esp + 0x30]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x13c]
call sub.TL221MN.dll_Ordinal_233
test eax, eax
je 0x402851
lea ecx, [esi + 0x13c]
call sub.TL221MN.dll_Ordinal_233
push eax
lea ecx, [esi + 0x13c]
call sub.TL221MN.dll_Ordinal_246
push eax
call fcn.0040c45d
add esp, 4
lea ecx, [esi + 0x13c]
call sub.TL221MN.dll_Ordinal_233
test eax, eax
jne 0x402822
lea edi, [esi + 0x154]
mov ecx, edi
call sub.TL221MN.dll_Ordinal_233
test eax, eax
je 0x402885
mov ecx, edi
call sub.TL221MN.dll_Ordinal_233
push eax
mov ecx, edi
call sub.TL221MN.dll_Ordinal_246
push eax
call fcn.0040c45d
add esp, 4
mov ecx, edi
call sub.TL221MN.dll_Ordinal_233
test eax, eax
jne 0x402862
xor bx, bx
lea ecx, [esi + 0x120]
call sub.TL221MN.dll_Ordinal_233
mov ebp, eax
test ebp, ebp
je 0x4029f0
lea ecx, [esp + 0x28]
push 0x4140e4
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x38], eax
call sub.TL221MN.dll_Ordinal_125
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
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, [ebp + 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 ebx
call sub.TL221MN.dll_Ordinal_129
lea ecx, [esp + 0x30]
push str.Sound
mov dword [esp + 0x38], eax
call sub.TL221MN.dll_Ordinal_134
lea ecx, [esp + 0x14]
push eax
call sub.TL221MN.dll_Ordinal_125
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
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 + 0x3c], 0
je 0x402987
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 + 0x4c]
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 ebp, ebp
je 0x4029d9
lea ecx, [ebp + 4]
call sub.TL221MN.dll_Ordinal_137
mov ecx, ebp
call sub.TL221MN.dll_Ordinal_137
push ebp
call fcn.0040c45d
add esp, 4
inc bx
lea ecx, [esi + 0x120]
call sub.TL221MN.dll_Ordinal_243
mov ebp, eax
test ebp, ebp
jne 0x40289d
cmp dword [esp + 0x3c], 0
je 0x402a02
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x184]
call sub.TL221MN.dll_Ordinal_137
lea ecx, [esi + 0x180]
call sub.TL221MN.dll_Ordinal_137
mov ecx, edi
call sub.TL221MN.dll_Ordinal_227
lea ecx, [esi + 0x13c]
call sub.TL221MN.dll_Ordinal_227
lea ecx, [esi + 0x120]
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, 0x30
ret