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

Disassembly:
push 0xffffffffffffffff
push 0x57ed68
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.0044e9b0
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call fcn.00414400
mov dword [esp + 0x118], ebx
mov ecx, dword [eax]
push str.Gunbound.INI
push ecx
push 0x59d814
mov edi, 0x92d644
call fcn.00417d20
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 0x40bdb6
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 0x40c2ef
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x89debc
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 0x89d020
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 0x89e2c0
lea edx, [esp + 0x1c]
push edx
push ebx
push str.Screen
push eax
call ebp
test eax, eax
je 0x40be52
xor eax, eax
mov cl, byte [eax + 0x89d020]
mov byte [eax + 0x89e2c0], cl
inc eax
cmp cl, bl
jne 0x40be41
push str.Gunbound.INI
push str.graphics.xfs
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x89d020
call fcn.00455630
push str.BrokerServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
mov dword [esp + 0x114], 1
call fcn.00455f20
mov edx, 0x89dc20
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40be90
push str.HiddenServerIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
call fcn.00455f20
mov edx, 0x89e7a0
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40beb2
push str.BuddyIP
mov edx, str.Gunbound
lea ecx, [esp + 0x28]
call fcn.00455f20
mov edx, 0x89cd58
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x40bed4
push esi
push str.BuddyPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
call fcn.00456100
push str.BrokerServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov word [0x89e750], ax
call fcn.00456100
push str.HiddenServerPort
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x89e740], eax
call fcn.00456100
push str.GameLanguage
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x89dca0], eax
call fcn.00456100
push str.PowerBall
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x89e798], eax
call fcn.00456100
dec eax
neg eax
sbb eax, eax
inc eax
push str.NewForce
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x89ee34], eax
call fcn.00456100
dec eax
neg eax
sbb eax, eax
inc eax
push str.NewItem
mov edx, str.Gunbound
lea ecx, [esp + 0x2c]
mov dword [0x89ee38], eax
call fcn.00456100
dec eax
neg eax
sbb eax, eax
inc eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
mov dword [0x89ee3c], 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 [0x5fc7e0]
mov eax, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x89e864]
lea eax, [esp + 0x10]
push eax
add ecx, 0x553ac
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x20], 1
push str.ShootingMode
mov eax, dword [esp + 0x28]
push eax
call ebp
test eax, eax
mov eax, dword [0x89e864]
je 0x40c01c
mov byte [eax + 0x553ac], bl
lea ecx, [esp + 0x10]
push ecx
add eax, 0x553b0
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 [0x89e864]
je 0x40c050
mov dword [eax + 0x553b0], 0x32
lea ecx, [esp + 0x10]
push ecx
add eax, 0x553b8
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 [0x89e864]
mov esi, 0x5f
je 0x40c085
mov dword [eax + 0x553b8], esi
lea ecx, [esp + 0x10]
push ecx
add eax, 0x553bc
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 0x40c0b2
mov ecx, dword [0x89e864]
mov dword [ecx + 0x553bc], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x89e74c
lea eax, [esp + 0x20]
push eax
push ebx
push str.AutoRefresh
push ecx
call ebp
test eax, eax
mov esi, 1
je 0x40c0dd
mov dword [0x89e74c], esi
mov eax, dword [0x89e864]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
add eax, 0x553c2
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 [0x89e864]
je 0x40c113
mov byte [eax + 0x553c2], 2
lea ecx, [esp + 0x10]
push ecx
add eax, 0x553c3
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 [0x89e864]
je 0x40c140
mov byte [eax + 0x553c3], 1
mov byte [eax + 0x553c0], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x553c1
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 [0x89e864]
je 0x40c174
mov byte [eax + 0x553c1], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x7f865
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 [0x89e864]
je 0x40c1a1
mov byte [eax + 0x7f865], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x7f864
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 [0x89e864]
je 0x40c1ce
mov byte [eax + 0x7f864], 1
lea ecx, [esp + 0x10]
push ecx
add eax, 0x80b18
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 [0x89e864]
je 0x40c1fa
mov dword [eax + 0x80b18], ebx
lea ecx, [esp + 0x10]
push ecx
add eax, 0x80b78
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 0x40c227
mov ecx, dword [0x89e864]
mov dword [ecx + 0x80b78], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x89e6c0
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 0x89cdd8
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 0x89e798
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 0x89dec0
lea eax, [esp + 0x20]
push eax
push ebx
push str.ShopURL
push ecx
mov dword [0x89e798], 1
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x40c2cc
mov ecx, 0xa
mov esi, str.http:__shop.gunbound.com_avatar_web.asp
mov edi, 0x89dec0
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.00455760
pop esi
jmp 0x40c2f4
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 0x40c362
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push 0x89d820
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 0x89dea8
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x59d650
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