Function at 0x477fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d57cc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x513480]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x2ac], 0
mov eax, dword [0x5132f8]
cmp eax, 0xffffffff
jne 0x478127
lea eax, [ebp - 0x290]
push eax
call fcn.00478a90
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push eax
call fcn.00401ec0
add esp, 0x10
lea ecx, [ebp - 0x290]
call fcn.00402480
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 3
call fcn.00407d60
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push str.SupportNewLangs
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov dword [0x5132f8], eax
cmp edx, 8
jb 0x4780f3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4780e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478591
push edx
push ecx
call fcn.00491e05
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00402480
mov eax, dword [0x5132f8]
cmp eax, 1
je 0x478133
xor eax, eax
jmp 0x478575
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [ebp - 4], 4
push eax
push 0x4db608
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00407d60
push 9
xor eax, eax
mov byte [ebp - 4], 5
push str.languages
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00407d60
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00494800
add esp, 0xc
lea eax, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea esi, [ebp - 0x248]
cmovae esi, dword [ebp - 0x248]
push 0x104
push eax
push esi
push str.SoftwareKingsoftOffice
call fcn.0047f290
push eax
call fcn.004749c0
add esp, 0x14
test eax, eax
je 0x47824e
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
push str.SoftwareKingsoftOffice
push 0x80000002
call fcn.004749c0
add esp, 0x14
test eax, eax
je 0x47824e
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004029f0
mov dword [ebp - 4], 8
mov ebx, 2
jmp 0x4782a5
xor eax, eax
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478274
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.00407d60
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 7
mov ebx, 1
push eax
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x2ac], ebx
call fcn.004029f0
or ebx, 4
test bl, 2
je 0x4782cd
lea ecx, [ebp - 0x2a8]
and ebx, 0xfffffffd
call fcn.00402480
mov dword [ebp - 4], 6
test bl, 1
je 0x478319
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x478319
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47830f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478596
push edx
push ecx
call fcn.00491e05
add esp, 8
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x290]
push 0x4e1f48
push eax
call fcn.00474ae0
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.00402480
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x478387
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47837d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47859b
push edx
push ecx
call fcn.00491e05
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4783e8
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4783de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47859b
push edx
push ecx
call fcn.00491e05
add esp, 8
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x220]
jne 0x4784ea
lea eax, [ebp - 0x224]
push eax
call fcn.00479020
mov esi, dword [ebp - 0x220]
add esp, 4
cmp dword [ebp - 0x224], esi
jne 0x4784ea
push str.en_US
lea ecx, [ebp - 0x248]
call fcn.004022e0
mov byte [ebp - 4], 0xa
cmp esi, dword [ebp - 0x21c]
je 0x478493
mov eax, dword [ebp - 0x248]
mov edx, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x248], ax
mov dword [ebp - 0x220], esi
jmp 0x4784ac
lea eax, [ebp - 0x248]
push eax
push esi
lea ecx, [ebp - 0x224]
call fcn.00401fb0
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4784ea
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4784e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4785a0
push edx
push ecx
call fcn.00491e05
add esp, 8
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00475ab0
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
add esp, 8
mov esi, dword [ebp - 0x224]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
test esi, esi
je 0x478573
lea ecx, [ebp - 0x224]
push ecx
push dword [ebp - 0x220]
push esi
call fcn.00401f40
mov ecx, dword [ebp - 0x21c]
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 0x478569
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4785a0
push ecx
push esi
call fcn.00491e05
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.00491e13
mov esp, ebp
pop ebp
ret
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
int3