Function at 0x421560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov esi, ecx
push str.Info
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0046b468
push str.Setting
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0046b468
push str.Language
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0046b468
mov eax, dword [0x4bf204]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 4
mov eax, dword [ecx - 8]
test eax, eax
je 0x4215dd
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
push edx
call fcn.0046b533
jmp 0x42168b
lea ecx, [ebp - 0x6c]
call fcn.0043a887
mov eax, dword [esi + 0xc]
push 0
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0043a94a
test eax, eax
jne 0x42164b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, eax
and ecx, 0x3ff
shr ax, 0xa
cmp cx, 4
jne 0x42161e
and eax, 0xffff
dec eax
je 0x42163c
dec eax
je 0x42162d
push str.English
lea ecx, [ebp - 0x10]
call fcn.0046b583
jmp 0x42167f
push str.Chinese_Simplified_
lea ecx, [ebp - 0x10]
call fcn.0046b583
jmp 0x42167f
push str.Chinese_Traditional_
lea ecx, [ebp - 0x10]
call fcn.0046b583
jmp 0x42167f
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push eax
push 0x3e8
push 0x3e8
lea ecx, [ebp - 0x10]
call fcn.0046b82a
push eax
push str.English
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0046b879
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.0043a8c4
mov eax, dword [0x4bf204]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.0043a887
lea ecx, [esi + 4]
push 0x4bca4c
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 7
call fcn.0046b68f
push str.Language.ini
push eax
lea eax, [ebp - 0x28]
mov bl, 8
push eax
mov byte [ebp - 4], bl
call fcn.0046b68f
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
call fcn.0043a94a
lea ecx, [ebp - 0x28]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0046b3fa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0046b3fa
push 0x4c4d50
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], 0
call fcn.0046b468
test edi, edi
mov byte [ebp - 4], 0xa
je 0x42181a
lea ecx, [ebp - 0x50]
call fcn.0043ab6a
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
call fcn.0043ab31
test eax, eax
jne 0x4217e2
mov edx, dword [ebp - 0x50]
push 0x10
lea ecx, [ebp - 0x50]
call dword [edx + 0x38]
test eax, eax
jne 0x4217e2
mov eax, dword [0x4bf204]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push ecx
lea ecx, [ebp - 0x50]
call fcn.0043ac39
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
push edx
push 0x3e8
push 0x3e8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.0046b82a
push eax
push 0x4c4d50
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4217ca
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0046b879
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00443f3f
add esp, 8
test eax, eax
je 0x4217ef
mov edx, dword [ebp - 0x14]
push str.English
push edx
call fcn.00443f3f
add esp, 8
test eax, eax
jne 0x4217ca
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0046b533
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.0046b3fa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0046b3fa
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x421713
jmp 0x42181a
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + 0x30]
call fcn.0046b533
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0xb
call fcn.0046b3fa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0046b3fa
lea ecx, [ebp - 0x50]
call fcn.0043a900
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x421859
mov edx, dword [ebp - 0x1c]
push 0x4c4d50
push edx
call fcn.00443f3f
add esp, 8
test eax, eax
jne 0x42184d
push str.English
lea ecx, [ebp - 0x10]
call fcn.0046b583
jmp 0x421859
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x30]
push eax
call fcn.0046b533
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x38]
call fcn.0046b533
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.0046b3fa
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.0043a8c4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0046b3fa
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0046b3fa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0046b3fa
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0046b3fa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0046b3fa
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b3fa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4