Function at 0x40c4f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x88
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c781
mov ecx, dword [0x8927a4]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push 4
add ecx, 0x1e964
push ecx
push 4
push eax
push str.LastServer
push edx
call esi
mov eax, dword [0x8927a4]
mov ecx, dword [esp + 8]
push 1
add eax, 0x552ac
push eax
push 3
push 0
push str.ShootingMode
push ecx
call esi
mov edx, dword [0x8927a4]
mov eax, dword [esp + 8]
push 4
add edx, 0x552b0
push edx
push 4
push 0
push str.MouseSpeed
push eax
call esi
mov ecx, dword [0x8927a4]
mov dl, byte [ecx + 0x552b4]
mov ecx, dword [esp + 8]
push 1
lea eax, [esp + 0x13]
push eax
push 3
push 0
test dl, dl
push str.MidiMode
sete dl
push ecx
mov byte [esp + 0x27], dl
call esi
mov edx, dword [0x8927a4]
mov eax, dword [esp + 8]
push 4
add edx, 0x552b8
push edx
push 4
push 0
push str.MusicVolume
push eax
call esi
mov ecx, dword [0x8927a4]
mov edx, dword [esp + 8]
push 4
add ecx, 0x552bc
push ecx
push 4
push 0
push str.EffectVolume
push edx
call esi
mov eax, dword [esp + 8]
push 4
push 0x89268c
push 4
push 0
push str.AutoRefresh
push eax
call esi
mov ecx, dword [0x8927a4]
push 1
add ecx, 0x552c2
push ecx
push 3
push 0
mov edx, dword [esp + 0x18]
push str.Effect3D
push edx
call esi
mov eax, dword [0x8927a4]
mov ecx, dword [esp + 8]
push 1
add eax, 0x552c3
push eax
push 3
push 0
push str.Background
push ecx
call esi
mov edx, dword [0x8927a4]
mov eax, dword [esp + 8]
push 1
add edx, 0x552c0
push edx
push 3
push 0
push str.MusicUse
push eax
call esi
mov ecx, dword [0x8927a4]
mov edx, dword [esp + 8]
push 1
add ecx, 0x552c1
push ecx
push 3
push 0
push str.EffectUse
push edx
call esi
mov eax, dword [0x8927a4]
mov ecx, dword [esp + 8]
push 1
add eax, 0x7f755
push eax
push 3
push 0
push str.ShowTurn
push ecx
call esi
mov edx, dword [0x8927a4]
mov eax, dword [esp + 8]
push 1
add edx, 0x7f754
push edx
push 3
push 0
push str.ShowMoon
push eax
call esi
mov ecx, dword [0x8927a4]
mov edx, dword [esp + 8]
push 1
add ecx, 0x80a08
push ecx
push 3
push 0
push str.ShowOnlineUser
push edx
call esi
mov eax, dword [0x8927a4]
mov ecx, dword [esp + 8]
push 1
add eax, 0x80a68
push eax
push 3
push 0
push str.InterfaceMode
push ecx
call esi
mov eax, 0x892600
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c700
mov edx, dword [esp + 8]
sub eax, ecx
inc eax
push eax
push 0x892600
push 3
push 0
push str.GameName
push edx
call esi
mov eax, 0x890d18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c728
sub eax, ecx
inc eax
push eax
mov eax, dword [esp + 0xc]
push 0x890d18
push 3
push 0
push str.ChannelName
push eax
call esi
mov edx, dword [esp + 8]
mov byte [esp + 0x10], 0
xor eax, eax
push 1
mov ecx, 0x1f
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 3
push 0
stosw word es:[edi], ax
push str.LastID
push edx
stosb byte es:[edi], al
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x88
ret