Function at 0x407c40
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.00403510
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.004086c0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00408750
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x407e98
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 4]
call fcn.00408650
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 4]
call fcn.00403530
push 0x435e20
lea ecx, [ebp - 0x10]
call fcn.00404ae0
test eax, eax
jne 0x407cf5
lea edx, [ebp - 0x14]
push edx
push 0x441210
lea eax, [ebp - 0x434]
push eax
call fcn.00408380
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004084f0
lea ecx, [ebp - 0x434]
call fcn.00403160
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x407e86
push str.AppData
lea ecx, [ebp - 0x10]
call fcn.00404ae0
test eax, eax
jne 0x407d8d
lea ecx, [ebp - 0x18]
call fcn.004034f0
mov ecx, 0x441210
call fcn.00412ea0
push eax
lea edx, [ebp - 0x450]
push edx
call fcn.00420330
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.00412ea0
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.00408380
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004084f0
lea ecx, [ebp - 0x454]
call fcn.00403160
lea ecx, [ebp - 0x18]
call fcn.00403160
jmp 0x407e86
push 0x435e48
lea ecx, [ebp - 0x10]
call fcn.00404ae0
test eax, eax
jne 0x407df9
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x435e54
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404880
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x458]
push ecx
call fcn.00408380
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004084f0
lea ecx, [ebp - 0x458]
call fcn.00403160
lea ecx, [ebp - 0x1c]
call fcn.00403160
jmp 0x407e86
push 0x435e60
lea ecx, [ebp - 0x10]
call fcn.00404ae0
test eax, eax
jne 0x407e79
xor edx, edx
mov word [ebp - 0x430], dx
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.00422d40
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.00404920
mov ecx, dword [ebp + 0xc]
call fcn.00412ea0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408230
jmp 0x407e86
push str.CSetupDecompressPage::ConfirmPath__7z_cabs_format_is_not_correct.
call fcn.004010c0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00403160
lea ecx, [ebp - 0x10]
call fcn.00403160
jmp 0x407ea5
push str.CSetupDecompressPage::ConfirmPath__file_path_is_invalid.
call fcn.004010c0
add esp, 4
lea ecx, [ebp - 4]
call fcn.00403160
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00422af0
mov esp, ebp
pop ebp
ret