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

Disassembly:
push ebp
lea ebp, [esp - 0x410]
sub esp, 0x490
mov eax, dword [0x501f8c]
xor eax, ebp
mov dword [ebp + 0x40c], eax
mov eax, dword [ebp + 0x41c]
push esi
mov esi, dword [ebp + 0x418]
push edi
push esi
mov edi, ecx
mov dword [ebp - 0x60], eax
call fcn.00416434
test al, al
je 0x416da4
mov al, 1
jmp 0x4170a9
push ebx
xor ebx, ebx
push ebx
push 0x477d7c
mov ecx, esi
call fcn.0041628e
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
jne 0x416de4
push esi
add edi, 4
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00406c7c
mov ecx, dword [ebp - 0x60]
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
call fcn.004067b7
push ebx
push 1
lea ecx, [ebp - 0x20]
jmp 0x4170a1
lea ecx, [ebp - 0x59]
push ecx
push 0xffffffffffffffff
inc eax
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406a3d
lea eax, [ebp - 0x59]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
push ebx
push esi
call fcn.00406a3d
push str.InstallDir
lea ecx, [ebp - 0x20]
call fcn.00406c25
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408a8c
pop ecx
neg eax
sbb al, al
pop ecx
xor esi, esi
push ebx
inc al
inc esi
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x59], al
call fcn.004064d9
cmp byte [ebp - 0x59], bl
je 0x416e65
lea eax, [ebp - 0x3c]
push eax
add edi, 4
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00406c7c
mov ecx, dword [ebp - 0x60]
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
call fcn.004067b7
lea ecx, [ebp - 0x20]
jmp 0x41700f
push str.AppData
lea ecx, [ebp - 0x20]
call fcn.00406c25
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408a8c
pop ecx
pop ecx
neg eax
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x59], al
call fcn.004064d9
cmp byte [ebp - 0x59], bl
je 0x416ed2
add edi, 4
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00409a8e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00406c7c
add esp, 0x14
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push ebx
push eax
call fcn.004067b7
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004064d9
jmp 0x416e5d
push str.TEMP
lea ecx, [ebp - 0x20]
call fcn.00406c25
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408a8c
pop ecx
pop ecx
neg eax
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x59], al
call fcn.004064d9
cmp byte [ebp - 0x59], bl
je 0x416f60
xor eax, eax
push 0x206
mov word [ebp + 0x204], ax
lea eax, [ebp + 0x206]
push ebx
push eax
call fcn.00450020
add esp, 0xc
push 0x104
lea eax, [ebp + 0x204]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x204]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406c25
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00406c7c
add esp, 0xc
jmp 0x416eba
push 0x47b530
lea ecx, [ebp - 0x20]
call fcn.00406c25
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408a8c
pop ecx
pop ecx
neg eax
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x59], al
call fcn.004064d9
cmp byte [ebp - 0x59], bl
je 0x416fec
xor eax, eax
push 0x206
mov word [ebp + 0x204], ax
lea eax, [ebp + 0x206]
push ebx
push eax
call fcn.00450020
add esp, 0xc
lea eax, [ebp + 0x204]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp + 0x204]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406c25
push str.duowanyy_businessyypip
lea ecx, [ebp - 0x20]
call fcn.004069ac
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
jmp 0x416f4e
lea eax, [ebp - 0x3c]
push eax
add edi, 4
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00406c7c
mov ecx, dword [ebp - 0x60]
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
call fcn.004067b7
lea ecx, [ebp - 0x80]
push ebx
push esi
call fcn.004064d9
xor eax, eax
push 0x206
mov word [ebp - 4], ax
lea eax, [ebp - 2]
push ebx
push eax
call fcn.00450020
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x41703c
mov eax, dword [eax + 4]
jmp 0x41703f
add eax, 4
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
push 0x104
push eax
call fcn.0045183e
add esp, 0x10
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417092
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x417092
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 4]
push eax
push str.SHCreateDirectory_fail__path_is__s__last_error_is__d
call fcn.0044f300
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.004064d9
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004064d9
xor al, al
pop ebx
mov ecx, dword [ebp + 0x40c]
pop edi
xor ecx, ebp
pop esi
call fcn.0044fa41
add ebp, 0x410
leave
ret 8