Function at 0x431190
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45caeb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x46e320]
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, dword [ebp + 8]
mov ecx, 9
mov esi, str.BaiduBaiduPinyin
lea edi, [ebp - 0x420]
rep movsd dword es:[edi], dword [esi]
push 0x1e2
lea eax, [ebp - 0x3fa]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004480d0
add esp, 0xc
test ebx, ebx
je 0x4311f4
xor ecx, ecx
mov word [ebx], cx
lea ecx, [ebp - 0x43c]
call fcn.00436cc0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x428], 0
jne 0x43135a
call fcn.00431110
test al, al
je 0x43128b
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43128b
lea edx, [ebp - 0x440]
push edx
push 0
push 0x8000
push 0x462b48
mov dword [ebp - 0x440], 0
call eax
mov edx, dword [ebp - 0x440]
test edx, edx
je 0x43128b
lea eax, [ebp - 0x43c]
push eax
call fcn.00412dd0
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x420]
call fcn.004225f0
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x428], 0
jne 0x43135a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004480d0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4312e6
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x218], 0
je 0x431332
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431310
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x43c]
call fcn.00407860
cmp dword [ebp - 0x428], 0
jne 0x43135a
cmp dword [ebp - 0x424], 8
jb 0x431353
mov ecx, dword [ebp - 0x438]
push ecx
call fcn.00441aea
add esp, 4
xor eax, eax
jmp 0x431406
mov eax, dword [ebp - 0x438]
mov edi, 8
cmp dword [ebp - 0x424], edi
jae 0x431373
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43139b
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x431392
lea eax, [ebp - 0x438]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test ebx, ebx
je 0x4313e7
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x4313b3
lea eax, [ebp - 0x438]
push eax
mov ecx, 0x104
mov edx, ebx
call fcn.0040a550
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4313c5
sub eax, edx
sar eax, 1
mov esi, eax
cmp dword [ebp - 0x424], edi
jb 0x431404
mov edx, dword [ebp - 0x438]
push edx
jmp 0x4313fc
mov esi, dword [ebp - 0x428]
cmp dword [ebp - 0x424], edi
jb 0x431404
mov eax, dword [ebp - 0x438]
push eax
call fcn.00441aea
add esp, 4
mov eax, esi
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.00441af5
mov esp, ebp
pop ebp
ret