Function at 0x1001d5a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098e85
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x134c
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x1348], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x1360]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [esp + 0xb3c], ax
lea eax, [esp + 0xb3e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xb38]
push eax
mov dword [esp + 0x98], 0x104
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x1001dec8
lea eax, [esp + 0xb34]
push eax
lea ecx, [esp + 0xf8]
call fcn.10008550
mov dword [esp + 0x1368], 0
push dword [esp + 0x104]
mov ebx, dword [esp + 0x10c]
mov edi, dword [esp + 0xf8]
lea eax, [esp + 0xf8]
cmp ebx, 8
cmovae eax, edi
push 0
push eax
mov ecx, esi
call fcn.10008750
cmp eax, 0xffffffff
je 0x1001deb9
xor eax, eax
push 0x206
push eax
mov word [esp + 0x114], ax
lea eax, [esp + 0x116]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x64]
call fcn.10008550
mov byte [esp + 0x1368], 1
mov edx, dword [esp + 0x70]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov dword [esp + 0x14], edx
test edx, edx
jle 0x1001dc87
test edi, edi
je 0x1001dc87
cmp dword [esp + 0x74], 8
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
cmp dword [esi + 0x14], 8
jb 0x1001d70a
mov ecx, dword [esi]
jmp 0x1001d70c
mov ecx, esi
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x1001dc87
cmp dword [esp + 0x74], 8
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
cmp dword [esi + 0x14], 8
jb 0x1001d731
mov ecx, dword [esi]
jmp 0x1001d733
mov ecx, esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push eax
push ecx
call edi
test eax, eax
jne 0x1001d74e
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
xor bl, bl
jmp 0x1001de78
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xc8]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push 0x100b3c44
mov edx, eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x136c], 2
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1368], 4
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xc0], 8
lea edx, [esp + 0xac]
cmovae edx, dword [esp + 0xac]
cmp dword [esi + 0x14], 8
jb 0x1001d7b2
mov ecx, dword [esi]
jmp 0x1001d7b4
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 0xa
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x1001d7dd
lea ecx, [esp + 0xac]
xor bl, bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x1001de78
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xe0]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push str.Windows
mov edx, eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x136c], 5
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1368], 7
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xa8], 8
lea edx, [esp + 0x94]
cmovae edx, dword [esp + 0x94]
cmp dword [esi + 0x14], 8
jb 0x1001d841
mov ecx, dword [esi]
jmp 0x1001d843
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 8
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x1001dc62
xor eax, eax
push 0x206
push eax
mov word [esp + 0x72c], ax
lea eax, [esp + 0x72e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10c]
push str.Temp
push eax
lea eax, [esp + 0x72c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x1001d89c
mov eax, dword [esi]
jmp 0x1001d89e
mov eax, esi
lea ecx, [esp + 0x724]
push ecx
push eax
call edi
test eax, eax
je 0x1001dc62
xor eax, eax
push 0x206
push eax
mov word [esp + 0xf4c], ax
lea eax, [esp + 0xf4e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10c]
push str.Packages
push eax
lea eax, [esp + 0xf4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x1001d8f6
mov eax, dword [esi]
jmp 0x1001d8f8
mov eax, esi
lea ecx, [esp + 0xf44]
push ecx
push eax
call edi
test eax, eax
je 0x1001dc62
xor eax, eax
push 0x206
push eax
mov word [esp + 0x31c], ax
lea eax, [esp + 0x31e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x10c]
push str.Programs
push eax
lea eax, [esp + 0x31c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x1001d950
mov eax, dword [esi]
jmp 0x1001d952
mov eax, esi
lea ecx, [esp + 0x314]
push ecx
push eax
call edi
test eax, eax
je 0x1001dc62
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10008550
push 0x100b3d48
mov edx, eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x136c], 8
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1368], 0xa
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x5c], 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001dc55
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
cmp dword [esi + 0x14], 8
jb 0x1001d9df
mov ecx, dword [esi]
jmp 0x1001d9e1
mov ecx, esi
push dword [esp + 0x14]
push eax
push ecx
call ebx
test eax, eax
jne 0x1001dc55
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
cmp dword [esi + 0x14], 8
jb 0x1001da09
mov ecx, dword [esi]
jmp 0x1001da0b
mov ecx, esi
push eax
push ecx
call edi
test eax, eax
jne 0x1001da23
lea ecx, [esp + 0x48]
xor bl, bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001dc64
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push 0x100b3c44
mov edx, eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x136c], 0xb
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1368], 0xd
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xd8], 8
lea edx, [esp + 0xc4]
cmovae edx, dword [esp + 0xc4]
cmp dword [esi + 0x14], 8
jb 0x1001da81
mov ecx, dword [esi]
jmp 0x1001da83
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 0xa
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x1001daaf
lea ecx, [esp + 0xc4]
xor bl, bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x48]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001dc64
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push str.Windows
mov edx, eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x136c], 0xe
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x18]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xf0], 8
lea edx, [esp + 0xdc]
cmovae edx, dword [esp + 0xdc]
cmp dword [esi + 0x14], 8
jb 0x1001db05
mov ecx, dword [esi]
jmp 0x1001db07
mov ecx, esi
mov eax, dword [esp + 0x14]
add eax, 8
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x1001dc30
xor eax, eax
push 0x206
push eax
mov word [esp + 0x524], ax
lea eax, [esp + 0x526]
push eax
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push str.Temp
push eax
lea eax, [esp + 0x524]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x1001db69
mov eax, dword [esi]
jmp 0x1001db6b
mov eax, esi
lea ecx, [esp + 0x51c]
push ecx
push eax
call edi
test eax, eax
je 0x1001dc30
xor eax, eax
push 0x206
push eax
mov word [esp + 0x934], ax
lea eax, [esp + 0x936]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push str.Packages
push eax
lea eax, [esp + 0x934]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x1001dbc6
mov eax, dword [esi]
jmp 0x1001dbc8
mov eax, esi
lea ecx, [esp + 0x92c]
push ecx
push eax
call edi
test eax, eax
je 0x1001dc30
xor eax, eax
push 0x206
push eax
mov word [esp + 0xd44], ax
lea eax, [esp + 0xd46]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push str.Programs
push eax
lea eax, [esp + 0xd44]
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x1001dc1d
mov esi, dword [esi]
lea eax, [esp + 0xd3c]
push eax
push esi
call edi
test eax, eax
je 0x1001dc30
mov bl, 1
jmp 0x1001dc32
xor bl, bl
lea ecx, [esp + 0xdc]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0xc4]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x48]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001dc64
lea ecx, [esp + 0x48]
mov bl, 1
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001dc64
xor bl, bl
lea ecx, [esp + 0x94]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0xac]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x1001de78
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1154], ax
lea eax, [esp + 0x1156]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x114c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x114c]
push eax
lea ecx, [esp + 0x7c]
call fcn.10008550
mov byte [esp + 0x1368], 0xf
mov edi, dword [esp + 0x88]
test edi, edi
jle 0x1001de40
cmp dword [esp + 0x14], 0
je 0x1001de40
cmp dword [esp + 0x8c], 8
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
cmp dword [esi + 0x14], 8
jb 0x1001dd0d
mov ecx, dword [esi]
jmp 0x1001dd0f
mov ecx, esi
push edi
push eax
push ecx
call ebx
test eax, eax
jne 0x1001de40
cmp dword [esp + 0x8c], 8
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
cmp dword [esi + 0x14], 8
jb 0x1001dd37
mov ecx, dword [esi]
jmp 0x1001dd39
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1001de40
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x34]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push 0x100b3c44
mov edx, eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x136c], 0x10
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1368], 0x12
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xa8], 8
lea edx, [esp + 0x94]
cmovae edx, dword [esp + 0x94]
cmp dword [esi + 0x14], 8
jb 0x1001dda7
mov ecx, dword [esi]
jmp 0x1001dda9
mov ecx, esi
lea eax, [edi + 0xa]
push eax
push edx
push ecx
call ebx
test eax, eax
jne 0x1001ddc5
lea ecx, [esp + 0x94]
xor bl, bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001de42
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push str.Windows
mov edx, eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x136c], 0x13
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x18]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xc0], 8
lea ecx, [esp + 0xac]
cmovae ecx, dword [esp + 0xac]
cmp dword [esi + 0x14], 8
jb 0x1001de19
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ecx
push esi
call ebx
test eax, eax
lea ecx, [esp + 0xac]
setne bl
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x94]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x1001de42
xor bl, bl
cmp dword [esp + 0x8c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1001de5b
push dword [esp + 0x78]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
cmp dword [esp + 0x74], 8
jb 0x1001de88
push dword [esp + 0x60]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x108], 8
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
jb 0x1001deb5
push dword [esp + 0xf4]
call esi
add esp, 4
mov al, bl
jmp 0x1001deca
cmp ebx, 8
jb 0x1001dec8
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1348]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 4