Function at 0x108ca89
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x111027c]
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 0x108cae2
push 0x1008ebc
push 0xb5e
push 0x1008c24
call fcn.0107b644
test edi, edi
jne 0x108cb9d
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x108cb31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108cb84
test byte [eax + 0x1c], 2
je 0x108cb84
cmp byte [eax + 0x19], 2
jb 0x108cb84
push edi
push 0x1008bf8
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x108cb84
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x108cc4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108cb84
test byte [eax + 0x1c], 2
je 0x108cb84
cmp byte [eax + 0x19], 2
jb 0x108cb84
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1008bf8
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test edi, edi
jle 0x108cd95
and edi, 0xffff
or edi, 0x80070000
jmp 0x108cd95
push 0
lea eax, [ebp - 0x418]
push eax
push 0
push edi
call fcn.0107e13f
mov edi, eax
test edi, edi
jge 0x108cbf0
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108cd95
test byte [eax + 0x1c], 2
je 0x108cd95
cmp byte [eax + 0x19], 2
jb 0x108cd95
push edi
push 0x1008bf8
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x108cd95
push dword [ebp - 0x418]
push dword [ebp + 0xc]
push ebx
call fcn.010257dc
mov edi, eax
test edi, edi
jge 0x108cc4b
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108cd95
test byte [eax + 0x1c], 2
je 0x108cd95
cmp byte [eax + 0x19], 2
jb 0x108cd95
push 0x103
push dword [ebp - 0x418]
push 0x1008bf8
push 0x5c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x108cd95
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108cc50
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11105cc]
lea ecx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108cc68
sub eax, ecx
sar eax, 1
add eax, edx
cmp eax, esi
jb 0x108cc90
push 0x1008e80
push 0xb8d
push 0x1008c24
call fcn.0107b644
push dword [0x11105cc]
push dword [ebp + 0xc]
push ebx
call fcn.01040cf0
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108cca4
sub eax, ecx
mov ecx, dword [0x11105c8]
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x108ccbb
sub ecx, edx
sar ecx, 1
lea eax, [ecx + eax + 1]
cmp eax, esi
jb 0x108cce5
push 0x1008e40
push 0xb95
push 0x1008c24
call fcn.0107b644
push 0x10019e4
push dword [ebp + 0xc]
push ebx
call fcn.01040cf0
push dword [0x11105c8]
push dword [ebp + 0xc]
push ebx
call fcn.01040cf0
cmp byte [ebp + 0x14], 0
jne 0x108cd16
push 0
push ebx
call fcn.0107f183
mov edi, eax
test edi, edi
jl 0x108cd95
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108cd1b
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [0x11105d0]
lea ecx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108cd33
sub eax, ecx
sar eax, 1
lea eax, [eax + edx + 1]
cmp eax, esi
jb 0x108cd5d
push 0x1008df8
push 0xba5
push 0x1008c24
call fcn.0107b644
push dword [0x11105d0]
lea eax, [ebp - 0x414]
push ebx
push 0x10080b4
push esi
push eax
call fcn.01025c20
mov edi, eax
add esp, 0x14
test edi, edi
jl 0x108cd95
cmp byte [ebp + 0x14], 0
jne 0x108cd95
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0107f183
mov edi, eax
cmp dword [ebp - 0x418], 0
je 0x108cdaa
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.0106f798
leave
ret 0x10