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

Disassembly:
push 0xffffffffffffffff
push 0x56766d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40bcf0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x886d14
lea edx, [esp + 0x1c]
push edx
push ebx
push str.LastServer
push eax
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x885e80
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Location
push eax
mov dword [esp + 0x24], 0x400
call ebp
push str.Gunbound.INI
push str.graphics.xfs
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x885e80
call fcn.0044ce00
push str.BrokerServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [esp + 0x118], ebx
call fcn.0044d6b0
mov edx, 0x886a80
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40b940
push str.BuddyIP
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.0044d6b0
mov edx, 0x885bb8
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40b962
push str.BuddyPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.0044d6b0
push eax
call fcn.00554d7e
add esp, 4
push str.BrokerServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov word [0x8876a4], ax
call fcn.0044d6b0
push eax
call fcn.00554d7e
add esp, 4
push str.GameLanguage
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x887598], eax
call fcn.0044d6b0
push eax
call fcn.00554d7e
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0xc]
push edx
push 0x887118
mov dword [0x8876e8], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.Screen
push ecx
call ebp
test eax, eax
je 0x40ba03
xor eax, eax
mov cl, byte [eax + 0x885e80]
mov byte [eax + 0x887118], cl
inc eax
cmp cl, bl
jne 0x40b9f2
push esi
push str..Gunbound.erl
call fcn.00554ec6
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.Version
mov edi, 4
push edx
mov dword [esp + 0x28], edi
call ebp
mov edx, dword [0x5e5758]
mov eax, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.004ce8c0
mov esi, eax
call fcn.0040aeb0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x8d68f0
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.ShootingMode
mov esi, 1
push edx
mov dword [esp + 0x28], esi
call ebp
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x8d68f4
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.MouseSpeed
push edx
mov dword [esp + 0x28], edi
call ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x23]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.MidiMode
push eax
mov dword [esp + 0x28], esi
call ebp
cmp byte [esp + 0x1f], bl
lea edx, [esp + 0x10]
push edx
push 0x8d68fc
lea eax, [esp + 0x20]
push eax
sete cl
push ebx
mov byte [0x8d68f8], cl
mov ecx, dword [esp + 0x24]
push str.MusicVolume
push ecx
mov dword [esp + 0x28], edi
call ebp
lea edx, [esp + 0x10]
push edx
push 0x8d6900
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ebx
push str.EffectVolume
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8876a0
lea eax, [esp + 0x20]
push eax
push ebx
push str.AutoRefresh
push ecx
call ebp
test eax, eax
je 0x40bb2c
mov dword [0x8876a0], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d6906
lea eax, [esp + 0x20]
push eax
push ebx
push str.Effect3D
push ecx
mov dword [esp + 0x28], esi
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d6907
lea eax, [esp + 0x20]
push eax
push ebx
push str.Background
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d6904
lea eax, [esp + 0x20]
push eax
push ebx
push str.MusicUse
push ecx
call ebp
test eax, eax
je 0x40bb8f
mov byte [0x8d6904], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d6905
lea eax, [esp + 0x20]
push eax
push ebx
push str.EffectUse
push ecx
call ebp
test eax, eax
je 0x40bbb6
mov byte [0x8d6905], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x900d99
lea eax, [esp + 0x20]
push eax
push ebx
push str.ShowTurn
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x900d98
lea eax, [esp + 0x20]
push eax
push ebx
push str.ShowMoon
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x902044
lea eax, [esp + 0x20]
push eax
push ebx
push str.ShowOnlineUser
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x90207c
lea eax, [esp + 0x20]
push eax
push ebx
push str.InterfaceMode
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x902300
lea eax, [esp + 0x20]
push eax
push ebx
push str.Version
mov esi, 0x80
push ecx
mov dword [esp + 0x28], esi
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x887518
lea eax, [esp + 0x20]
push eax
push ebx
push str.GameName
push ecx
mov dword [esp + 0x28], esi
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x885c38
lea eax, [esp + 0x20]
push eax
push ebx
push str.ChannelName
push ecx
call ebp
mov edx, dword [0x8876e8]
lea eax, [esp + 0x10]
push eax
push 0x886d18
lea ecx, [esp + 0x20]
mov dword [0x887aac], edx
mov dword [esp + 0x18], esi
push ecx
mov edx, dword [esp + 0x20]
push ebx
push str.ShopURL
push edx
call ebp
test eax, eax
je 0x40bccd
mov ecx, 0xa
mov esi, str.http:__shop.gunbound.com_avatar_web.asp
mov edi, 0x886d18
rep movsd dword es:[edi], dword [esi]
mov edi, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.0044cf30
pop esi
jmp 0x40bcf5
mov edi, 4
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebx
push str.SoftwareSoftnyxGameBuddy
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd63
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push 0x886680
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Executable
push edx
mov dword [esp + 0x24], 0x400
call ebp
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push 0x886d00
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x58636c
push edx
mov dword [esp + 0x24], edi
call ebp
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x8c], bl
xor eax, eax
push 1
mov ecx, 0x1f
lea edi, [esp + 0x91]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x90]
push ecx
push 3
push ebx
stosw word es:[edi], ax
push str.LastID
push edx
mov dword [esp + 0x24], 1
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10c
ret