Function at 0x100a819
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 8], 0
mov eax, 0x105
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x28]
push eax
mov ebx, ecx
mov eax, dword [ebx + 4]
add eax, 0x38b2
push eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x30], 0x20
mov dword [ebp - 0x2c], 1
call fcn.0100d1fa
and dword [ebp - 0x1c], 0
lea eax, [ebx + 0x50]
push 0x10014e8
push eax
call fcn.0100d25d
test al, al
je 0x100aafe
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 4]
add eax, 0x3abc
push eax
call fcn.0100d1fa
push 0x200
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x100a89e
mov byte [ebp - 1], al
jmp 0x100aab2
mov esi, dword [ebx + 4]
push edi
add esi, 0x3abc
push 2
mov edi, 0x1002130
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov ecx, ebx
je 0x100a8db
push eax
push dword [ebp - 8]
call fcn.0100a732
test al, al
je 0x100a8e4
lea esi, [ebx + 0x50]
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x1c]
push esi
call fcn.0100d25d
jmp 0x100a8e4
mov byte [ebx + 0x18], 1
call fcn.0100a60a
push dword [ebp - 0x28]
and dword [ebp - 0x24], 0
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.0100a544
test al, al
jne 0x100a902
mov byte [ebp - 1], 0
jmp 0x100aab1
mov eax, dword [ebx + 0x4c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x100a92f
push 0x10014e8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100a92f
push dword [ebx + 0x4c]
lea eax, [ebp - 0x24]
push eax
call fcn.0100d25d
jmp 0x100a97c
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x24], eax
je 0x100a97c
mov eax, dword [0x10105e8]
test eax, eax
je 0x100a97c
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebx + 4]
push dword [ecx + 0x4008]
call eax
mov esi, eax
test esi, esi
jne 0x100a97c
call edi
cmp eax, 0x7a
je 0x100a96b
inc esi
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0x24], 0
test esi, esi
pop ecx
je 0x100a92f
lea esi, [ebx + 0x40]
mov eax, dword [esi]
test eax, eax
je 0x100a9c1
push 0x10014e8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100a9c1
cmp dword [ebp - 0x24], eax
je 0x100a9c1
push 0x10014e8
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100a9c1
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
push esi
call fcn.0100d25d
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x100aa05
mov eax, dword [0x10105ec]
test eax, eax
je 0x100aa05
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
call eax
mov esi, eax
test esi, esi
jne 0x100aa05
call edi
cmp eax, 0x7a
je 0x100a9f4
inc esi
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0x20], 0
test esi, esi
pop ecx
je 0x100a9c1
mov eax, dword [0x10105d4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], esi
je 0x100aa38
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 4]
push dword [ecx + 0x4008]
call eax
test eax, eax
je 0x100aa32
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov byte [ebp - 1], 1
jmp 0x100aa38
call edi
mov byte [ebp - 1], 0
push 0x20a
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebx + 0x54], eax
je 0x100a8f9
mov eax, dword [ebx + 4]
push dword [eax + 0x4008]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100aab1
mov eax, dword [ebx + 4]
cmp byte [eax + 0x3fe4], 0
je 0x100aa75
mov eax, dword [eax + 0x4008]
jmp 0x100aa77
xor eax, eax
push dword [ebx + 0x54]
push esi
push eax
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x100aa92
call edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100aab1
call edi
push eax
push 0xc0001772
push 1
call fcn.0100d50f
mov byte [ebp - 1], 0
call edi
pop edi
xor esi, esi
cmp dword [ebp - 0x28], esi
je 0x100aac2
push dword [ebp - 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x100aad0
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x20], esi
je 0x100aade
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x24], esi
je 0x100aaec
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 8], esi
pop esi
je 0x100aafb
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, byte [ebp - 1]
pop ebx
leave
ret