Function at 0x100eeee0
Capabilities:
Check if file exists
Check mutex on windows
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183771
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x6c], 0
jne 0x100eef1d
xor al, al
jmp 0x100ef285
lea eax, [esi + 0x4c]
push eax
lea ecx, [ebp - 0x258]
call fcn.10004390
mov dword [ebp - 4], 0
cmp dword [ebp - 0x248], 0
jne 0x100ef0fc
cmp dword [esi + 0x48], 8
lea edi, [esi + 0x34]
jb 0x100eef4b
mov edi, dword [edi]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100eeffa
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x270], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100eef92
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.10001c20
xor bl, bl
lea eax, [ebp - 0x270]
cmp dword [ebp - 0x25c], 8
push 0
cmovae eax, dword [ebp - 0x270]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x100eefe5
cmp eax, 0xb7
je 0x100eefe5
cmp eax, 0x50
jne 0x100eefe7
mov bl, 1
lea ecx, [ebp - 0x270]
call fcn.10001bc0
test bl, bl
je 0x100ef112
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ef020
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10001c20
mov ecx, edi
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ef070
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28c]
call fcn.10001c20
lea edx, [ebp - 0x28c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.10107470
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
mov bl, al
call fcn.10001bc0
test bl, bl
jne 0x100ef0c6
lea ecx, [ebp - 0x230]
call fcn.10001bc0
jmp 0x100ef278
lea eax, [ebp - 0x230]
lea ecx, [esi + 0x4c]
cmp ecx, eax
je 0x100ef0ed
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10001c20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.10001bc0
cmp dword [esi + 0x68], 0
lea ecx, [esi + 0x68]
jne 0x100ef119
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax]
call eax
test al, al
jne 0x100ef119
xor bl, bl
jmp 0x100ef278
cmp dword [esi + 0x90], 0
jne 0x100ef144
push 4
call fcn.1014d1eb
add esp, 4
mov dword [ebp - 0x274], eax
mov dword [eax], 0
mov dword [eax], 0
mov dword [esi + 0x90], eax
cmp dword [esi + 0x48], 8
lea edx, [esi + 0x34]
jb 0x100ef14f
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ef171
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.10001c20
mov edi, dword [esi + 0x90]
cmp dword [edi], 0
jne 0x100ef1e9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
jne 0x100ef1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100ef1e9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi], eax
lea ecx, [ebp - 0x230]
call fcn.10001bc0
lea eax, [ebp - 0x240]
push eax
call fcn.10165553
mov ecx, dword [ebp - 0x240]
add esp, 4
cmp byte [esi + 0xd1], 0
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xfc], eax
je 0x100ef26b
mov eax, dword [esi + 0x90]
mov eax, dword [eax]
test eax, eax
je 0x100ef26b
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100ef253
cmp eax, 0x80
jne 0x100ef26b
push ecx
mov ecx, esi
call fcn.10107950
mov eax, dword [esi + 0x90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100ef272
mov byte [esi + 0xd1], 0
mov byte [esi + 0x6d], 1
mov bl, 1
lea ecx, [ebp - 0x258]
call fcn.10001bc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret