Function at 0x458230
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 0x4c9730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x330
push esi
push edi
push 0x208
lea eax, [ebp - 0x340]
mov dword [ebp - 0x34], ecx
push 0
push eax
mov edi, edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x340]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x7c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4582b2
sub ecx, edx
lea eax, [ebp - 0x340]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00454a60
push 0xbc69b4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0
call fcn.0044fe10
sub esp, 8
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0044de40
cmp dword [ebp - 0xdc], 0
jne 0x45830b
mov byte [ebp - 0x11], 0
jmp 0x4585ad
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 0x138]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x138]
call fcn.0045a3e0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp dword [ebp - 0x1c], 0xf
cmova eax, esi
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x458560
push ecx
push 0x3a
push eax
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x458560
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x458560
cmp dword [ebp - 0x20], eax
mov ecx, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], 0
cmovb ecx, dword [ebp - 0x20]
xorps xmm0, xmm0
cmp dword [ebp - 0x1c], 0xf
push ecx
cmova eax, esi
mov dword [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.004067f0
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
cmp esi, eax
je 0x45841d
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x458401
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4583f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45867f
mov eax, edx
push ecx
push eax
call fcn.004c6df9
add esp, 8
movups xmm0, xmmword [ebp - 0x4c]
mov ecx, 0xf
mov byte [ebp - 0x4c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x10], xmm0
jmp 0x458420
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x458451
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x458447
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45867f
push ecx
push edx
call fcn.004c6df9
add esp, 8
mov edx, dword [ebp - 0x18]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x64], xmm0
cmp eax, edx
jb 0x4586a5
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push ecx
add eax, edx
lea ecx, [ebp - 0x64]
push eax
call fcn.004067f0
lea eax, [ebp - 0x64]
cmp edi, eax
je 0x4584ed
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x4584d1
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4584c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45867f
mov eax, edx
push ecx
push eax
call fcn.004c6df9
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
mov ecx, 0xf
mov byte [ebp - 0x64], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [edi + 0x10], xmm0
jmp 0x4584f0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x458521
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x458517
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45867f
push ecx
push edx
call fcn.004c6df9
add esp, 8
lea ecx, [ebp - 0x128]
call fcn.00451b40
test eax, eax
jne 0x458549
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, esi
call fcn.004469f0
mov ecx, edi
call fcn.004469f0
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x11], 1
jmp 0x458564
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 0xf
jbe 0x45859b
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x458591
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45867f
push ecx
push esi
call fcn.004c6df9
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x13c], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xdc], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x45861b
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0xec]
cmp dword [eax], ecx
jne 0x45861b
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd8]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x10c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xfc]
mov dword [eax], edx
cmp byte [ebp - 0xe0], 0
je 0x45862f
lea ecx, [ebp - 0x128]
call fcn.00451b40
lea ecx, [ebp - 0x128]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x120]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x68]
cmp ecx, 7
jbe 0x45868f
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458685
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x458685
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c6df9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00406560
int3