Function at 0x401480
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410f16
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x244], esi
push 0x20a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40158a
cmp eax, 0x105
ja 0x40158a
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401513
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x22a], 0x5c
jne 0x40154a
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x401783
xor eax, eax
mov word [ebp + ecx - 0x228], ax
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401571
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
jmp 0x4015cc
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_get_temp_path
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
push 0
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x22c], 0
push 0x41253c
lea ecx, [ebp - 0x240]
call fcn.00408a20
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x230]
test edi, edi
jne 0x401645
xorps xmm0, xmm0
mov ecx, esi
push edi
movups xmmword [esi], xmm0
push 0x41253c
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00408a20
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x401763
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401759
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401759
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x260]
call fcn.00401240
mov dword [ebp - 0x244], eax
mov eax, 0x7ffffffe
mov byte [ebp - 4], 1
sub eax, edi
cmp eax, 1
jb 0x401788
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
push 1
cmova eax, dword [ebp - 0x240]
push 0x412540
push edi
push eax
push ecx
push dword [ebp - 0x244]
lea ecx, [ebp - 0x278]
call fcn.00409050
push dword [ebp - 0x244]
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x244]
mov ecx, esi
call fcn.00408e50
mov ecx, dword [ebp - 0x264]
cmp ecx, 7
jbe 0x4016f7
mov edx, dword [ebp - 0x278]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40163f
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x401737
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40172d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40163f
push ecx
push edx
call fcn.0040fe5c
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
jmp 0x401601
push ecx
push edx
call fcn.0040fe5c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040ffe8
call fcn.00401170
int3