Function at 0x108cab9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, 0x104
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x108cb12
push 0x1008eac
push 0xb5e
push 0x1008c14
call fcn.0107b4be
test edi, edi
jne 0x108cbcd
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x108cb61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108cbb4
test byte [eax + 0x1c], 2
je 0x108cbb4
cmp byte [eax + 0x19], 2
jb 0x108cbb4
push edi
push 0x1008be8
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x108cbb4
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x108cc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108cbb4
test byte [eax + 0x1c], 2
je 0x108cbb4
cmp byte [eax + 0x19], 2
jb 0x108cbb4
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1008be8
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test edi, edi
jle 0x108cdc5
and edi, 0xffff
or edi, 0x80070000
jmp 0x108cdc5
push 0
lea eax, [ebp - 0x418]
push eax
push 0
push edi
call fcn.0107dfb4
mov edi, eax
test edi, edi
jge 0x108cc20
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108cdc5
test byte [eax + 0x1c], 2
je 0x108cdc5
cmp byte [eax + 0x19], 2
jb 0x108cdc5
push edi
push 0x1008be8
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x108cdc5
push dword [ebp - 0x418]
push dword [ebp + 0xc]
push ebx
call fcn.01025872
mov edi, eax
test edi, edi
jge 0x108cc7b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108cdc5
test byte [eax + 0x1c], 2
je 0x108cdc5
cmp byte [eax + 0x19], 2
jb 0x108cdc5
push 0x103
push dword [ebp - 0x418]
push 0x1008be8
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108cdc5
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108cc80
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11115cc]
lea ecx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108cc98
sub eax, ecx
sar eax, 1
add eax, edx
cmp eax, esi
jb 0x108ccc0
push 0x1008e70
push 0xb8d
push 0x1008c14
call fcn.0107b4be
push dword [0x11115cc]
push dword [ebp + 0xc]
push ebx
call fcn.01040bdd
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108ccd4
sub eax, ecx
mov ecx, dword [0x11115c8]
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x108cceb
sub ecx, edx
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, esi
jb 0x108cd15
push 0x1008e30
push 0xb95
push 0x1008c14
call fcn.0107b4be
push 0x10019e4
push dword [ebp + 0xc]
push ebx
call fcn.01040bdd
push dword [0x11115c8]
push dword [ebp + 0xc]
push ebx
call fcn.01040bdd
cmp byte [ebp + 0x14], 0
jne 0x108cd46
push 0
push ebx
call fcn.0107f0d0
mov edi, eax
test edi, edi
jl 0x108cdc5
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108cd4b
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11115d0]
lea ecx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108cd63
sub eax, ecx
sar eax, 1
lea eax, [eax + edx + 1]
cmp eax, esi
jb 0x108cd8d
push 0x1008de8
push 0xba5
push 0x1008c14
call fcn.0107b4be
push dword [0x11115d0]
lea eax, [ebp - 0x414]
push ebx
push 0x10080a4
push esi
push eax
call fcn.01025c69
mov edi, eax
add esp, 0x14
test edi, edi
jl 0x108cdc5
cmp byte [ebp + 0x14], 0
jne 0x108cdc5
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0107f0d0
mov edi, eax
cmp dword [ebp - 0x418], 0
je 0x108cdda
push dword [ebp - 0x418]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x10