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

Disassembly:
push 0xffffffffffffffff
push 0x56481d
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 0x40bcb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x883d14
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 0x882e80
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, 0x882e80
call fcn.0044c660
push str.BrokerServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [esp + 0x118], ebx
call fcn.0044cf10
mov edx, 0x883a80
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40b900
push str.BuddyIP
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.0044cf10
mov edx, 0x882bb8
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40b922
push str.BuddyPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.0044cf10
push eax
call fcn.00552251
add esp, 4
push str.BrokerServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov word [0x8845a4], ax
call fcn.0044cf10
push eax
call fcn.00552251
add esp, 4
push str.GameLanguage
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x884598], eax
call fcn.0044cf10
push eax
call fcn.00552251
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0xc]
push edx
push 0x884118
mov dword [0x8845e8], eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.Screen
push ecx
call ebp
test eax, eax
je 0x40b9c3
xor eax, eax
mov cl, byte [eax + 0x882e80]
mov byte [eax + 0x884118], cl
inc eax
cmp cl, bl
jne 0x40b9b2
push esi
push str..Gunbound.erl
call fcn.005523a6
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 [0x5e2758]
mov eax, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], eax
call fcn.004cc430
mov esi, eax
call fcn.0040ae50
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x8d3728
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 0x8d372c
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 0x8d3734
lea eax, [esp + 0x20]
push eax
sete cl
push ebx
mov byte [0x8d3730], 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 0x8d3738
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 0x8845a0
lea eax, [esp + 0x20]
push eax
push ebx
push str.AutoRefresh
push ecx
call ebp
test eax, eax
je 0x40baec
mov dword [0x8845a0], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d373e
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 0x8d373f
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 0x8d373c
lea eax, [esp + 0x20]
push eax
push ebx
push str.MusicUse
push ecx
call ebp
test eax, eax
je 0x40bb4f
mov byte [0x8d373c], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8d373d
lea eax, [esp + 0x20]
push eax
push ebx
push str.EffectUse
push ecx
call ebp
test eax, eax
je 0x40bb76
mov byte [0x8d373d], 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8fdbd1
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 0x8fdbd0
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 0x8fee7c
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 0x8feeb4
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 0x8ff134
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 0x884518
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 0x882c38
lea eax, [esp + 0x20]
push eax
push ebx
push str.ChannelName
push ecx
call ebp
mov edx, dword [0x8845e8]
lea eax, [esp + 0x10]
push eax
push 0x883d18
lea ecx, [esp + 0x20]
mov dword [0x8849ac], 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 0x40bc8d
mov ecx, 0xa
mov esi, str.http:__shop.gunbound.com_avatar_web.asp
mov edi, 0x883d18
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.0044c790
pop esi
jmp 0x40bcb5
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 0x40bd23
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push 0x883680
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 0x883d00
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x583364
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