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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x494
push esi
xor eax, eax
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0x10]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x100ebca6
mov ecx, dword [esi]
push dword [ebp + 0x10]
mov edx, dword [esi + 0x10]
push 2
push 0x10266284
push ecx
call fcn.10021530
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ebdc3
xor ecx, ecx
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x10], eax
mov dword [ebp - 0x2c], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov word [ebp - 0x40], cx
jb 0x100ebce8
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.1001a600
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
movups xmm0, xmmword [ebp - 0x40]
xor eax, eax
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.1001a5a0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push edi
push eax
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x100ebd70
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x14], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x100ebdc6
mov esi, dword [ebp + 8]
xor eax, eax
movups xmm0, xmmword [ebp - 0x24]
mov word [ebp - 0x24], ax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x14]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
jmp 0x100ec2b9
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x100ebe0a
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x14], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100ebd88
push 0x20a
lea eax, [ebp - 0x294]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x294]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ebe70
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.1001a600
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x100ebed8
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x14], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100ebd88
push 0x20a
lea eax, [ebp - 0x4a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4a0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ebf45
sub ecx, edx
lea eax, [ebp - 0x4a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.1001a600
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x100ebfad
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x14], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x100ec000
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.1001a2b0
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x103215d0]
test al, 1
jne 0x100ec03c
or eax, 1
mov dword [0x103215c4], 0
push 0x10254bb0
mov dword [0x103215d0], eax
mov dword [0x103215c8], 0
mov dword [0x103215cc], 0
call fcn.1006eb53
add esp, 4
mov esi, dword [0x103215c4]
mov edx, dword [0x103215c8]
cmp esi, edx
jne 0x100ec0d8
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.path
call esi
mov edi, eax
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
add esp, 4
mov dword [ebp + 0x10], eax
push edi
push eax
push str.path
call esi
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x58]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.1001a2f0
push 0x103215c4
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push 0x3b
push eax
call sym.WMCommon.dll__StringToArray_GMStringToken_WM__SAXABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std___WAAV__vec
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
push esi
call fcn.1006e708
mov edx, dword [0x103215c8]
add esp, 4
mov esi, dword [0x103215c4]
mov edi, dword [ebp + 0xc]
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
xor ecx, ecx
sar edx, 2
mov eax, edx
mov dword [ebp + 0x10], ecx
shr eax, 0x1f
add eax, edx
je 0x100ec192
xor eax, eax
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
add eax, esi
push edi
push eax
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x100ec144
mov ecx, eax
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x14], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100ebd88
mov ecx, dword [0x103215c8]
mov eax, 0x2aaaaaab
mov esi, dword [0x103215c4]
sub ecx, esi
add dword [ebp - 0x28], 0x18
inc dword [ebp + 0x10]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x28]
jb 0x100ec100
cmp dword [ebp - 0x60], 0
je 0x100ec296
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp + 0x10], 0
jb 0x100ec1ad
mov eax, dword [edi]
lea ecx, [ebp + 0x10]
push ecx
push str.msvcr_d.dll
push eax
call fcn.10048270
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
jne 0x100ec1ed
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ec1d0
mov eax, dword [edi]
lea ecx, [ebp + 0x10]
push ecx
push str.msvcp_d.dll
push eax
call fcn.10048270
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x100ec296
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push str.Microsoft.VC_d.CRT
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
push edi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x88]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0x24
lea ecx, [ebp - 0x24]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x100ec282
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.1001a2b0
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
jmp 0x100ebfdd
lea ecx, [ebp - 0x58]
call fcn.1001a5a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1001a5a0
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 0x10255fec
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.1001a600
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
lea ecx, [ebp - 0x24]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret