Function at 0x474130
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6da0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [0x565e40]
push 1
push str._Config_Sound_Enable
call fcn.004aba30
neg eax
push 0x1b3
sbb eax, eax
neg eax
mov dword [ebx + 0x44], eax
mov ecx, dword [0x565e40]
push str._Config_Master_Volume
call fcn.004aba30
push 1
mov dword [ebx + 0x58], eax
mov ecx, dword [0x565e40]
push str._Config_Music_Enable
call fcn.004aba30
neg eax
push 0x105
sbb eax, eax
neg eax
mov dword [ebx + 0x48], eax
mov ecx, dword [0x565e40]
push str._Config_Music_Volume
call fcn.004aba30
push 1
mov dword [ebx + 0x5c], eax
mov ecx, dword [0x565e40]
push str._Config_Effect_Enable
call fcn.004aba30
neg eax
push 0x18b
sbb eax, eax
neg eax
mov dword [ebx + 0x4c], eax
mov ecx, dword [0x565e40]
push str._Config_Effect_Volume
call fcn.004aba30
push 1
mov dword [ebx + 0x60], eax
mov ecx, dword [0x565e40]
push str._Config_HEffect_Enable
call fcn.004aba30
neg eax
push 0x18b
sbb eax, eax
neg eax
mov dword [ebx + 0x50], eax
mov ecx, dword [0x565e40]
push str._Config_HEffect_Volume
call fcn.004aba30
push 1
mov dword [ebx + 0x64], eax
mov ecx, dword [0x565e40]
push str._Config_Voice_Enable
call fcn.004aba30
neg eax
push 0x1b3
sbb eax, eax
neg eax
mov dword [ebx + 0x54], eax
mov ecx, dword [0x565e40]
push str._Config_Voice_Volume
call fcn.004aba30
push 0
mov dword [ebx + 0x68], eax
mov ecx, dword [0x565e40]
push str._Config_OneMes
call fcn.004aba30
dec eax
neg eax
push 0xe2
sbb eax, eax
inc eax
mov dword [ebx + 0x30], eax
mov ecx, dword [0x565e40]
push str._Config_OneMesSpeed
call fcn.004aba30
mov esi, 0xe2
cmp eax, esi
cmovg eax, esi
push 0
mov dword [ebx + 0x34], eax
mov ecx, dword [0x565e40]
push str._Config_AutoRead
call fcn.004aba30
dec eax
neg eax
push 0xbe
sbb eax, eax
inc eax
mov dword [ebx + 0x38], eax
mov ecx, dword [0x565e40]
push str._Config_AutoMesSpeed
call fcn.004aba30
cmp eax, esi
push 0
cmovg eax, esi
mov dword [ebx + 0x3c], eax
mov ecx, dword [0x565e40]
push str._Config_SceneSkip
call fcn.004aba30
dec eax
neg eax
push 1
sbb eax, eax
inc eax
mov dword [ebx + 0x40], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_ShowSpeedEnable
call fcn.004aba30
neg eax
push 0x9e
sbb eax, eax
neg eax
mov dword [ebx + 0x28], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_Speed
call fcn.004aba30
cmp eax, esi
push 0x56
cmovg eax, esi
mov dword [ebx + 0x2c], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_Alpha
call fcn.004aba30
push 0x56
mov dword [ebx + 0xc], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_Red
call fcn.004aba30
push 0x56
mov dword [ebx], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_Green
call fcn.004aba30
push 0x56
mov dword [ebx + 4], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_Blue
call fcn.004aba30
push 0
mov dword [ebx + 8], eax
mov ecx, dword [0x565e40]
push str._Config_DisplayEffect_Speed
call fcn.004aba30
push 1
mov dword [ebx + 0x90], eax
mov ecx, dword [0x565e40]
push str._Config_Movie_Play
call fcn.004aba30
neg eax
push 0
sbb eax, eax
neg eax
mov dword [ebx + 0xa0], eax
mov ecx, dword [0x565e40]
push str.Config_Movie_VSync
call fcn.004aba30
neg eax
sbb eax, eax
neg eax
push 0
mov dword [ebx + 0xa4], eax
mov ecx, dword [0x565e40]
push str._Config_System
call fcn.004aba30
push 0
mov dword [ebx + 0xa8], eax
mov ecx, dword [0x565e40]
push str._Config_BackLogMode
call fcn.004aba30
push 0
mov dword [ebx + 0xac], eax
mov ecx, dword [0x565e40]
push str._Config_Voice_CickEnd
call fcn.004aba30
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 0x8c], eax
call fcn.00473da0
movzx eax, al
mov dword [ebx + 0x18], eax
call fcn.00473e50
movzx eax, al
mov dword [ebx + 0x10], eax
call fcn.00473fb0
movzx eax, al
mov dword [ebx + 0x14], eax
call fcn.00473f00
movzx eax, al
push 1
mov dword [ebx + 0x1c], eax
mov ecx, dword [0x565e40]
push str._Config_MesWnd_IsMove
call fcn.004aba30
dec eax
mov dword [ebp - 0x18], 0
neg eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
sbb eax, eax
inc eax
mov dword [ebx + 0x20], eax
push str._Config_Movie_MoveMovie
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a9b80
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00428650
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [0x565e40]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004aba30
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00428650
xor ecx, ecx
test esi, esi
setne cl
xor esi, esi
mov dword [ebx + 0x24], ecx
add ebx, 0x7c
nop dword [eax + eax]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push esi
push str._Config_CharVoice__02u_Enable
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00428650
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [0x565e40]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004aba30
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00428650
xor ecx, ecx
mov dword [ebp - 0x18], 0
test edi, edi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
setne cl
mov dword [ebx - 0x10], ecx
push esi
push str._Config_CharVoice__02u_Volume
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00428650
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [esi + 0x1f]
cmovae edx, dword [ebp - 0x28]
call fcn.00474060
mov ecx, dword [0x565e40]
push eax
push edx
call fcn.004aba30
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00428650
inc esi
mov dword [ebx], edi
lea ebx, [ebx + 4]
cmp esi, 4
jl 0x4744d0
mov ebx, dword [ebp - 0x2c]
xor edi, edi
add ebx, 0xb0
nop
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push edi
push str._Config_Dialog__02u_Enable
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a9b80
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00428650
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [0x565e40]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004aba30
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00428650
xor ecx, ecx
lea ebx, [ebx + 4]
test esi, esi
setne cl
inc edi
mov dword [ebx - 4], ecx
cmp edi, 0xc
jl 0x4745b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret