Function at 0x407dc0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x43fdf0]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
call fcn.00403530
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00402c10
push 0x5c
push 0x2f
lea ecx, [ebp - 4]
call fcn.004087e0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00408870
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x408018
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 4]
call fcn.00408770
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 4]
call fcn.00403560
push 0x435f38
lea ecx, [ebp - 0x10]
call fcn.00404b70
test eax, eax
jne 0x407e75
lea edx, [ebp - 0x14]
push edx
push 0x441210
lea eax, [ebp - 0x434]
push eax
call fcn.004084a0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408610
lea ecx, [ebp - 0x434]
call fcn.00403180
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x408006
push str.AppData
lea ecx, [ebp - 0x10]
call fcn.00404b70
test eax, eax
jne 0x407f0d
lea ecx, [ebp - 0x18]
call fcn.00403510
mov ecx, 0x441210
call fcn.00403550
push eax
lea edx, [ebp - 0x450]
push edx
call fcn.00420610
add esp, 8
mov ecx, eax
call fcn.00401550
push eax
lea ecx, [ebp - 0x18]
call fcn.00402c60
lea ecx, [ebp - 0x450]
call fcn.00401130
lea ecx, [ebp - 0x18]
call fcn.00403550
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x454]
push edx
call fcn.004084a0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408610
lea ecx, [ebp - 0x454]
call fcn.00403180
lea ecx, [ebp - 0x18]
call fcn.00403180
jmp 0x408006
push 0x435f60
lea ecx, [ebp - 0x10]
call fcn.00404b70
test eax, eax
jne 0x407f79
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x435f6c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404910
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x458]
push ecx
call fcn.004084a0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408610
lea ecx, [ebp - 0x458]
call fcn.00403180
lea ecx, [ebp - 0x1c]
call fcn.00403180
jmp 0x408006
push 0x435f78
lea ecx, [ebp - 0x10]
call fcn.00404b70
test eax, eax
jne 0x407ff9
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.00423050
add esp, 0xc
lea ecx, [ebp - 0x430]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x430]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402c60
push str.duowanyyyypip
mov ecx, dword [ebp + 0xc]
call fcn.004049b0
mov ecx, dword [ebp + 0xc]
call fcn.00403550
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408390
jmp 0x408006
push str.CSetupDecompressPage::ConfirmPath__7z_cabs_format_is_not_correct.
call fcn.004010c0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00403180
lea ecx, [ebp - 0x10]
call fcn.00403180
jmp 0x408025
push str.CSetupDecompressPage::ConfirmPath__file_path_is_invalid.
call fcn.004010c0
add esp, 4
lea ecx, [ebp - 4]
call fcn.00403180
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00422e00
mov esp, ebp
pop ebp
ret