Function at 0x101e8a1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x102c22c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x424], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x101e90b
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x101e912
xor eax, eax
jmp 0x101ec0c
push ebx
push edi
mov edi, 0xfffa
push edi
mov ebx, 0x106f8a0
push ebx
push dword [ebp - 0x424]
lea eax, [ebp - 0x108]
push eax
mov byte [0x107f8a0], 0
mov byte [0x106f8a0], 0
call fcn.01015121
push edi
push 0x107f8a0
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
call fcn.01015121
push ebx
push 0x107f8a0
call fcn.0100d6a3
test eax, eax
je 0x101ec0a
mov byte [0x107f8a0], 0
mov byte [0x106e760], 0
xor eax, eax
mov cl, byte [eax + 0x106f8a0]
mov byte [eax + 0x107f8a0], cl
inc eax
test cl, cl
jne 0x101e97a
push 0x1000
push 0x106e760
push 0x1007c28
lea eax, [ebp - 0x20c]
push eax
mov byte [0x106f8a0], cl
call fcn.01015121
push edi
push ebx
push dword [ebp - 0x424]
push 0x106e760
call fcn.01015121
cmp dword [ebp + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
je 0x101eb39
push 0x208
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x420], eax
mov dword [esp], 0x208
call sub.msvcrt.dll_malloc
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x420], ecx
mov dword [ebp - 0x418], eax
je 0x101eb39
cmp eax, ecx
je 0x101eb39
push esi
push dword [ebp - 0x420]
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call edi
push esi
push dword [ebp - 0x418]
mov ebx, 0x107f8a0
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
push dword [ebp - 0x420]
call fcn.0101a39e
push dword [ebp - 0x418]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], edx
call fcn.0101a39e
push dword [ebp - 0x420]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
call fcn.0101a48f
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
call fcn.0101a48f
cmp dword [ebp - 0x41c], eax
jb 0x101eb1f
mov ecx, dword [ebp - 0x42c]
or ecx, dword [ebp - 0x428]
je 0x101eb1f
mov edx, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x434]
or edx, ecx
je 0x101eb1f
cmp dword [ebp - 0x41c], eax
ja 0x101eb1a
cmp dword [ebp - 0x428], ecx
ja 0x101eb1a
jb 0x101eac2
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x438]
ja 0x101eb1a
mov eax, dword [ebp - 0x438]
cmp dword [ebp - 0x42c], eax
jne 0x101eb1f
cmp dword [ebp - 0x428], ecx
jne 0x101eb1f
push dword [ebp - 0x418]
push dword [ebp - 0x420]
call fcn.0101b5c0
test eax, eax
jne 0x101eb1f
xor esi, esi
push dword [ebp - 0x420]
call sub.msvcrt.dll_free
push dword [ebp - 0x418]
call sub.msvcrt.dll_free
pop ecx
pop ecx
push dword [ebp - 0x430]
push ebx
call fcn.0101d565
mov eax, esi
jmp 0x101ec0a
xor esi, esi
inc esi
jmp 0x101eaef
push dword [ebp - 0x420]
call sub.msvcrt.dll_free
push dword [ebp - 0x418]
call sub.msvcrt.dll_free
pop ecx
pop ecx
jmp 0x101eb3e
mov ebx, 0x107f8a0
push esi
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.01016f00
test eax, eax
mov dword [ebp - 0x418], eax
jne 0x101ebdf
push 0x208
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 0x41c], eax
je 0x101ebf3
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x424]
push 0
push 0
call edi
push 0
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
call fcn.01016f71
mov esi, eax
test esi, esi
mov dword [ebp - 0x418], esi
je 0x101ebbe
push esi
push dword [ebp - 0x424]
push 0x1008220
call fcn.01015c5a
add esp, 0xc
mov eax, dword [ebp - 0x43c]
xor ecx, ecx
inc ecx
cmp dword [eax], ecx
je 0x101ebd1
test esi, esi
jne 0x101ebd1
mov dword [eax], ecx
push dword [ebp - 0x41c]
call sub.msvcrt.dll_free
pop ecx
jmp 0x101ebf3
push eax
push dword [ebp - 0x424]
push 0x10081d0
call fcn.01015c5a
add esp, 0xc
push dword [ebp - 0x430]
push ebx
call fcn.0101d565
xor eax, eax
cmp dword [ebp - 0x418], eax
sete al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101439a
leave
ret 0x18