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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2306
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x521284]
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 edi, ecx
cmp byte [edi + 0x6c], 0
jne 0x41c10d
xor al, al
jmp 0x41c494
lea eax, [edi + 0x4c]
push eax
lea ecx, [ebp - 0x258]
call fcn.00402eb0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x248], 0
jne 0x41c2fe
cmp dword [edi + 0x48], 8
lea esi, [edi + 0x34]
jb 0x41c13b
mov esi, dword [esi]
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 0x41c1ef
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x260], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x25c], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c181
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00402a90
cmp dword [ebp - 0x25c], 8
lea eax, [ebp - 0x270]
push 0
cmovae eax, dword [ebp - 0x270]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41c1e4
cmp eax, 0xb7
je 0x41c1e4
cmp eax, 0x50
je 0x41c1e4
lea ecx, [ebp - 0x270]
call fcn.00402a30
xor bl, bl
jmp 0x41c487
lea ecx, [ebp - 0x270]
call fcn.00402a30
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c220
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a90
mov ecx, esi
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c272
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x288]
call fcn.00402a90
lea edx, [ebp - 0x288]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00425ad0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00402a30
test bl, bl
jne 0x41c2c8
lea ecx, [ebp - 0x230]
call fcn.00402a30
jmp 0x41c487
lea eax, [ebp - 0x230]
lea ecx, [edi + 0x4c]
cmp ecx, eax
je 0x41c2ef
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00402a90
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00402a30
cmp dword [edi + 0x68], 0
lea ecx, [edi + 0x68]
jne 0x41c323
mov eax, dword [edi]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f4350]
mov ecx, edi
call esi
test al, al
jne 0x41c323
xor bl, bl
jmp 0x41c487
cmp dword [edi + 0x90], 0
jne 0x41c34e
push 4
call fcn.004cc236
add esp, 4
mov dword [ebp - 0x28c], eax
mov dword [eax], 0
mov dword [eax], 0
mov dword [edi + 0x90], eax
cmp dword [edi + 0x48], 8
lea edx, [edi + 0x34]
jb 0x41c359
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c380
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00402a90
mov esi, dword [edi + 0x90]
cmp dword [esi], 0
jne 0x41c3f8
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 [esi], eax
test eax, eax
jne 0x41c3f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41c3f8
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 [esi], eax
lea ecx, [ebp - 0x230]
call fcn.00402a30
lea eax, [ebp - 0x240]
push eax
call fcn.004da37f
mov ecx, dword [ebp - 0x240]
add esp, 4
cmp byte [edi + 0xd1], 0
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0xf0], ecx
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xfc], eax
je 0x41c47a
mov eax, dword [edi + 0x90]
mov eax, dword [eax]
test eax, eax
je 0x41c47a
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41c462
cmp eax, 0x80
jne 0x41c47a
push ecx
mov ecx, edi
call fcn.00425fb0
mov eax, dword [edi + 0x90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41c481
mov byte [edi + 0xd1], 0
mov byte [edi + 0x6d], 1
mov bl, 1
lea ecx, [ebp - 0x258]
call fcn.00402a30
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.004cc21a
mov esp, ebp
pop ebp
ret