Function at 0x1001cb30
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098da4
mov eax, dword fs:[0]
push eax
sub esp, 0x6d0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x6c8], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x6e0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2cc], ax
lea eax, [esp + 0x2ce]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c4]
push 0x100b376c
push eax
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
cmp word [esp + 0xbc], ax
jne 0x1001cc1a
xor ecx, ecx
jmp 0x1001cc33
lea ecx, [esp + 0xbc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001cc24
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x7c]
call fcn.100089b0
mov dword [esp + 0x6e8], 0
cmp dword [esp + 0x88], 8
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0x74]
cmovae ecx, dword [esp + 0x74]
cmp dword [esi + 0x14], 8
jb 0x1001cc72
mov eax, dword [esi]
jmp 0x1001cc74
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push ebx
push ecx
push eax
call edi
test eax, eax
jne 0x1001cf09
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
cmp dword [esi + 0x14], 8
jb 0x1001cca2
mov ecx, dword [esi]
jmp 0x1001cca4
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1001ccb7
xor bl, bl
jmp 0x1001d15e
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.10008c80
push 0x100b3c28
lea edx, [esp + 0x48]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6ec], 1
call fcn.10011da0
add esp, 4
mov byte [esp + 0x6e8], 3
cmp dword [esp + 0x58], 8
jb 0x1001cd1b
push dword [esp + 0x44]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0xa0], 8
lea ecx, [esp + 0x8c]
cmovae ecx, dword [esp + 0x8c]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
jb 0x1001cd53
mov edx, dword [esi]
jmp 0x1001cd55
mov edx, esi
lea eax, [ebx + 0xd]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x1001cec6
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.10008c80
push 0x100b3c44
lea edx, [esp + 0x18]
lea ecx, [esp + 0x60]
mov byte [esp + 0x6ec], 4
call fcn.10011da0
add esp, 4
mov byte [esp + 0x6e8], 6
cmp dword [esp + 0x28], 8
jb 0x1001cdc6
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], 8
lea ecx, [esp + 0x5c]
cmovae ecx, dword [esp + 0x5c]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x1001cdf5
mov edx, dword [esi]
jmp 0x1001cdf7
mov edx, esi
lea eax, [ebx + 0xa]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x1001ce9b
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.10008c80
push str.Windows
lea edx, [esp + 0x48]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x6ec], 7
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x6e8], 6
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xb8], 8
lea edx, [esp + 0xa4]
cmovae edx, dword [esp + 0xa4]
cmp dword [esi + 0x14], 8
jb 0x1001ce81
mov ecx, dword [esi]
jmp 0x1001ce83
mov ecx, esi
lea eax, [ebx + 8]
push eax
push edx
push ecx
call edi
lea ecx, [esp + 0xa4]
test eax, eax
jne 0x1001cee7
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0x70], 8
jb 0x1001ceaf
push dword [esp + 0x5c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
cmp dword [esp + 0xa0], 8
jb 0x1001cee0
push dword [esp + 0x8c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor bl, bl
jmp 0x1001d15e
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x5c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x8c]
mov byte [esp + 0x6e8], 0
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
xor eax, eax
push 0x206
push eax
mov word [esp + 0x4d4], ax
lea eax, [esp + 0x4d6]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x4cc]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x4cc]
mov edx, eax
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001cf50
sub ecx, ebx
sar ecx, 1
je 0x1001d15c
test edx, edx
je 0x1001d15c
lea eax, [esp + 0x4cc]
push eax
lea ecx, [esp + 0x48]
call fcn.10008550
mov byte [esp + 0x6e8], 8
cmp dword [esp + 0x58], 8
mov ebx, dword [esp + 0x54]
lea ecx, [esp + 0x44]
cmovae ecx, dword [esp + 0x44]
cmp dword [esi + 0x14], 8
jb 0x1001cfa2
mov eax, dword [esi]
jmp 0x1001cfa4
mov eax, esi
push ebx
push ecx
push eax
call edi
test eax, eax
jne 0x1001d153
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
cmp dword [esi + 0x14], 8
jb 0x1001cfc9
mov ecx, dword [esi]
jmp 0x1001cfcb
mov ecx, esi
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1001d12c
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push 0x100b3c28
mov edx, eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x6ec], 9
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x6e8], 0xb
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0x70], 8
lea edx, [esp + 0x5c]
cmovae edx, dword [esp + 0x5c]
cmp dword [esi + 0x14], 8
jb 0x1001d02d
mov ecx, dword [esi]
jmp 0x1001d02f
mov ecx, esi
lea eax, [ebx + 0xd]
push eax
push edx
push ecx
call edi
test eax, eax
je 0x1001d123
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::constructor_class_elex::strings::CAnalyzeCmdline_const__
push 0x100b3c44
mov edx, eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x6ec], 0xc
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6e8], 0xe
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xa0], 8
lea edx, [esp + 0x8c]
cmovae edx, dword [esp + 0x8c]
cmp dword [esi + 0x14], 8
jb 0x1001d09d
mov ecx, dword [esi]
jmp 0x1001d09f
mov ecx, esi
lea eax, [ebx + 0xa]
push eax
push edx
push ecx
call edi
test eax, eax
je 0x1001d117
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
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 + 0xa8]
mov byte [esp + 0x6ec], 0xf
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x14]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp dword [esp + 0xb8], 8
lea ecx, [esp + 0xa4]
cmovae ecx, dword [esp + 0xa4]
cmp dword [esi + 0x14], 8
jb 0x1001d0ff
mov esi, dword [esi]
lea eax, [ebx + 8]
push eax
push ecx
push esi
call edi
lea ecx, [esp + 0xa4]
test eax, eax
jne 0x1001d139
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x8c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x5c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x44]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
xor bl, bl
jmp 0x1001d15e
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x8c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x5c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [esp + 0x44]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
mov bl, 1
cmp dword [esp + 0x88], 8
jb 0x1001d175
push dword [esp + 0x74]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x6e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c8]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 4