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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cb2b
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.004480e0
add esp, 0xc
test ebx, ebx
je 0x431264
xor ecx, ecx
mov word [ebx], cx
lea ecx, [ebp - 0x43c]
call fcn.00436ce0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x428], 0
jne 0x4313ca
call fcn.00431180
test al, al
je 0x4312fb
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 0x4312fb
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 0x4312fb
lea eax, [ebp - 0x43c]
push eax
call fcn.00406b20
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x420]
call fcn.004225c0
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x428], 0
jne 0x4313ca
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004480e0
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 0x431356
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x218], 0
je 0x4313a2
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 0x431380
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 0x4313ca
cmp dword [ebp - 0x424], 8
jb 0x4313c3
mov ecx, dword [ebp - 0x438]
push ecx
call fcn.00441afa
add esp, 4
xor eax, eax
jmp 0x431476
mov eax, dword [ebp - 0x438]
mov edi, 8
cmp dword [ebp - 0x424], edi
jae 0x4313e3
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43140b
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x431402
lea eax, [ebp - 0x438]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test ebx, ebx
je 0x431457
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x424], edi
jae 0x431423
lea eax, [ebp - 0x438]
push eax
mov ecx, 0x104
mov edx, ebx
call fcn.0040a590
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431435
sub eax, edx
sar eax, 1
mov esi, eax
cmp dword [ebp - 0x424], edi
jb 0x431474
mov edx, dword [ebp - 0x438]
push edx
jmp 0x43146c
mov esi, dword [ebp - 0x428]
cmp dword [ebp - 0x424], edi
jb 0x431474
mov eax, dword [ebp - 0x438]
push eax
call fcn.00441afa
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.00441b05
mov esp, ebp
pop ebp
ret