Function at 0x518870
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aacb5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x63434c]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x5c], al
mov eax, dword [0x60e98c]
cmp eax, 0xffffffff
jne 0x5189a0
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00518dd0
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00438a20
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.0042aad0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0042e2d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x14]
mov dword [0x60e98c], eax
cmp edx, 8
jb 0x518978
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51896e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518c88
push edx
push ecx
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0042aad0
mov eax, dword [0x60e98c]
cmp eax, 1
je 0x5189ac
xor eax, eax
jmp 0x518c6c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 4
push 0x5b7370
push str.SoftwareKingsoftOffice
push eax
call fcn.005137f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
push 0x5b7e38
push eax
call fcn.00514370
add esp, 0x1c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.0042aad0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ebx, esi
jne 0x518be9
mov eax, dword fs:[0x2c]
mov ecx, dword [0x63ec50]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x63e354]
cmp eax, dword [ecx + 4]
jg 0x518c8d
cmp dword [0x60e984], 0
jne 0x518b0e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0051a220
mov edi, eax
add esp, 8
cmp edi, 0x60e974
je 0x518afd
mov edx, dword [0x60e988]
cmp edx, 8
jb 0x518a9f
mov ecx, dword [0x60e974]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x518a95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518ce1
push edx
push ecx
call fcn.00558004
add esp, 8
mov dword [0x60e984], 0
xor eax, eax
mov word [0x60e974], ax
mov dword [0x60e988], 7
mov eax, dword [edi]
mov dword [0x60e974], eax
mov eax, dword [edi + 4]
mov dword [0x60e978], eax
mov eax, dword [edi + 8]
mov dword [0x60e97c], eax
mov eax, dword [edi + 0xc]
mov dword [0x60e980], eax
mov eax, dword [edi + 0x10]
mov dword [0x60e984], eax
mov eax, dword [edi + 0x14]
mov dword [0x60e988], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x58]
call fcn.0042aad0
cmp dword [0x60e984], 0
je 0x518b36
push 0x60e974
cmp esi, dword [ebp - 0x14]
je 0x518b27
mov ecx, esi
call fcn.0043f9e0
add esi, 0x18
mov dword [ebp - 0x18], esi
jmp 0x518b36
push esi
lea ecx, [ebp - 0x1c]
call fcn.004a0e00
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp ebx, esi
jne 0x518be9
push str.en_US
lea ecx, [ebp - 0x40]
call fcn.0043fa80
mov byte [ebp - 4], 6
cmp esi, dword [ebp - 0x14]
je 0x518b9e
mov eax, dword [ebp - 0x40]
mov edx, 7
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], esi
jmp 0x518bae
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0043f410
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x518be9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x518bdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518ce6
push edx
push ecx
call fcn.00558004
add esp, 8
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.005135a0
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
add esp, 8
mov esi, dword [ebp - 0x1c]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
test esi, esi
je 0x518c6a
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push esi
call fcn.0043f3a0
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x518c60
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518ce6
push ecx
push esi
call fcn.00558004
add esp, 8
mov eax, edi
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
push 0x63e354
call fcn.00558348
add esp, 4
cmp dword [0x63e354], 0xffffffff
jne 0x518a2e
push 0x5b0940
mov dword [0x60e974], 0
mov dword [0x60e984], 0
mov dword [0x60e988], 7
call fcn.0055865a
push 0x63e354
call fcn.005582fe
add esp, 8
jmp 0x518a2e
call fcn.00566a14
call fcn.00566a14
int3