Function at 0x401b8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push esi
push edi
mov esi, 0x4b1c74
lea edi, [ebp - 0x114]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4b1d78
lea edi, [ebp - 0x218]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4b1e7c
lea edi, [ebp - 0x31c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x4b37bf
push dword [ebp + 8]
call fcn.0049fcb8
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401bee
xor eax, eax
jmp 0x401e87
push 0x103
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x4b37c8
lea ecx, [ebp - 0x114]
push ecx
push 0x4b37c2
lea eax, [ebp - 0x218]
push eax
call fcn.004a16bc
add esp, 0x10
push 0x4b37d8
lea edx, [ebp - 0x114]
push edx
push 0x4b37d2
lea ecx, [ebp - 0x31c]
push ecx
call fcn.004a16bc
add esp, 0x10
xor eax, eax
mov dword [ebp - 8], eax
push 2
push 0xfffffffffffffffc
push dword [ebp - 4]
call fcn.0049ff98
add esp, 0xc
push dword [ebp - 4]
push 1
push 4
lea edx, [ebp - 8]
push edx
call fcn.0049fef8
add esp, 0x10
push 2
mov ecx, 0xfffffffc
mov eax, dword [ebp - 8]
sub ecx, eax
push ecx
push dword [ebp - 4]
call fcn.0049ff98
add esp, 0xc
mov edx, dword [ebp - 8]
inc edx
push edx
call fcn.0049cfe8
pop ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push 0
push dword [ebp - 0xc]
call fcn.0049d948
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
call fcn.0049fef8
add esp, 0x10
push 0xd74
push dword [ebp - 0xc]
push 0x4af0e4
call fcn.0049d8d8
add esp, 0xc
push dword [ebp - 4]
call fcn.0049f94c
pop ecx
push 0x4b37e9
lea eax, [ebp - 0x218]
push eax
call fcn.0049fcb8
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x401d09
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
call fcn.004a016c
add esp, 0x10
push dword [ebp - 4]
call fcn.0049f94c
pop ecx
push dword [ebp - 0xc]
call fcn.0049ce20
pop ecx
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x4b37ec
push dword [ebp + 8]
call fcn.0049fcb8
add esp, 8
mov dword [ebp - 4], eax
push 2
xor edx, edx
mov ecx, dword [ebp - 8]
sub edx, ecx
sub edx, 4
push edx
push dword [ebp - 4]
call fcn.0049ff98
add esp, 0xc
push dword [ebp - 4]
push 1
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.0049fef8
add esp, 0x10
push 2
xor edx, edx
mov ecx, dword [ebp - 8]
sub edx, ecx
sub edx, 4
mov eax, dword [ebp - 0x10]
sub edx, eax
push edx
push dword [ebp - 4]
call fcn.0049ff98
add esp, 0xc
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0049cfe8
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
call fcn.0049fef8
add esp, 0x10
push dword [ebp - 4]
call fcn.0049f94c
pop ecx
push 0x4b37ef
lea ecx, [ebp - 0x31c]
push ecx
call fcn.0049fcb8
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x401ddf
push dword [ebp - 4]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
call fcn.004a016c
add esp, 0x10
push dword [ebp - 4]
call fcn.0049f94c
pop ecx
push dword [ebp - 0xc]
call fcn.0049ce20
pop ecx
push 0x4af0e4
lea edx, [ebp - 0x218]
push edx
call fcn.0049afb4
add esp, 8
mov ecx, dword [0x4afd4c]
dec ecx
je 0x401e10
dec ecx
je 0x401e2d
dec ecx
je 0x401e4a
dec ecx
je 0x401e67
jmp 0x401e82
lea eax, [ebp - 0x31c]
push eax
push 0x4b3804
push 0x4b37fb
push 0x4b37f2
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x401e82
lea edx, [ebp - 0x31c]
push edx
push str.CHINESE
push 0x4b3815
push 0x4b380c
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x401e82
lea ecx, [ebp - 0x31c]
push ecx
push str.TCHINESE
push 0x4b382f
push 0x4b3826
call sub.KERNEL32.DLL_WritePrivateProfileStringA
jmp 0x401e82
lea eax, [ebp - 0x31c]
push eax
push str.JAPANESE
push 0x4b384a
push 0x4b3841
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret