Function at 0x40bc50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x572698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push ebp
push edi
push str.GetRegistryData_n
call fcn.0044da10
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call fcn.00414200
mov dword [esp + 0x118], ebx
mov ecx, dword [eax]
push str.Gunbound.INI
push ecx
push 0x5921f0
mov edi, 0x921460
call fcn.00417950
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bcd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40c217
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x891dfc
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 0x890f60
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Location
push eax
mov dword [esp + 0x24], 0x400
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x892200
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Screen
push eax
call ebp
test eax, eax
je 0x40bd72
xor eax, eax
mov cl, byte [eax + 0x890f60]
mov byte [eax + 0x892200], cl
inc eax
cmp cl, bl
jne 0x40bd61
push str.Gunbound.INI
push str.graphics.xfs
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x890f60
call fcn.00454020
push str.BrokerServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
mov dword [esp + 0x114], 1
call fcn.00454910
mov edx, 0x891b60
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40bdb0
push str.HiddenServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
call fcn.00454910
mov edx, 0x8926e0
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40bdd2
push str.BuddyIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
call fcn.00454910
mov edx, 0x890c98
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40bdf4
push esi
push str.BuddyPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.00454af0
push str.BrokerServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov word [0x892690], ax
call fcn.00454af0
push str.HiddenServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x892680], eax
call fcn.00454af0
push str.GameLanguage
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x891be0], eax
call fcn.00454af0
push str.PowerBall
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x8926d8], eax
call fcn.00454af0
dec eax
neg eax
sbb eax, eax
inc eax
push str.NewForce
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x892d74], eax
call fcn.00454af0
dec eax
neg eax
sbb eax, eax
inc eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
mov dword [0x892d78], eax
lea eax, [esp + 0x28]
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 [0x5f07a8]
mov eax, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [0x8927a4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
add ecx, 0x552ac
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.ShootingMode
push eax
mov dword [esp + 0x28], 1
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40bf1e
mov byte [eax + 0x552ac], bl
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552b0
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.MouseSpeed
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40bf52
mov dword [eax + 0x552b0], 0x32
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552b8
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.MusicVolume
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
mov eax, dword [0x8927a4]
mov esi, 0x5f
je 0x40bf87
mov dword [eax + 0x552b8], esi
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552bc
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.EffectVolume
push eax
call ebp
test eax, eax
je 0x40bfb4
mov ecx, dword [0x8927a4]
mov dword [ecx + 0x552bc], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x89268c
lea eax, [esp + 0x20]
push eax
push ebx
push str.AutoRefresh
push ecx
call ebp
test eax, eax
mov esi, 1
je 0x40bfdf
mov dword [0x89268c], esi
mov eax, dword [0x8927a4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
add eax, 0x552c2
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.Effect3D
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c015
mov byte [eax + 0x552c2], 2
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552c3
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.Background
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c042
mov byte [eax + 0x552c3], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552c0
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.MusicUse
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c06f
mov byte [eax + 0x552c0], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x552c1
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.EffectUse
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c09c
mov byte [eax + 0x552c1], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x7f755
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.ShowTurn
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c0c9
mov byte [eax + 0x7f755], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x7f754
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.ShowMoon
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c0f6
mov byte [eax + 0x7f754], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x80a08
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.ShowOnlineUser
push eax
call ebp
test eax, eax
mov eax, dword [0x8927a4]
je 0x40c122
mov dword [eax + 0x80a08], ebx
lea ecx, [esp + 0x10]
push ecx
add eax, 0x80a68
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push ebx
push str.InterfaceMode
push eax
call ebp
test eax, eax
je 0x40c14f
mov ecx, dword [0x8927a4]
mov dword [ecx + 0x80a68], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x892600
lea eax, [esp + 0x20]
push eax
push ebx
push str.GameName
mov esi, 0x80
push ecx
mov dword [esp + 0x28], esi
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x890d18
lea eax, [esp + 0x20]
push eax
push ebx
push str.ChannelName
push ecx
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x8926d8
lea eax, [esp + 0x20]
push eax
push ebx
push str.Language
push ecx
mov dword [esp + 0x28], edi
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x891e00
lea eax, [esp + 0x20]
push eax
push ebx
push str.ShopURL
push ecx
mov dword [0x8926d8], 1
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x40c1f4
mov ecx, 0xa
mov esi, str.http:__shop.gunbound.com_avatar_web.asp
mov edi, 0x891e00
rep movsd dword es:[edi], dword [esi]
mov edi, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x118], 0xffffffff
call fcn.00454150
pop esi
jmp 0x40c21c
mov edi, 4
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push str.SoftwareSoftnyxGameBuddy
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c28a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0x891760
lea eax, [esp + 0x1c]
push eax
push ebx
push str.Executable
push ecx
mov dword [esp + 0x24], 0x400
call ebp
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0x891de8
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x592028
push ecx
mov dword [esp + 0x24], edi
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov byte [esp + 0x88], bl
mov ecx, 0x1f
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
lea eax, [esp + 0x8c]
push eax
push 3
push ebx
push str.LastID
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x108]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret