Function at 0x4866e0
Capabilities:
Check mutex on windows
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x14], esp
push esi
xor edi, edi
push str.PATHTREE_SaveEntireTreeToDisk__s_
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], edi
call fcn.00466a00
add esp, 0xc
call fcn.00485630
add esp, 4
cmp word [esi], di
jne 0x48672b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100000
mov dword [ebp - 0x1c], 0x100000
call fcn.004ac152
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x486784
lea eax, [ebx + 0xc]
push eax
mov edi, 4
lea esi, [ebp - 0x20]
mov dword [eax], 2
call fcn.004857c0
add esp, 4
test eax, eax
je 0x48677f
mov edx, dword [ebx + 8]
mov ecx, esi
push ecx
push 0x4866b0
push 0
push edx
push ebx
call fcn.00486560
mov dword [ebp - 8], 1
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [0x50a5bc]
cmp eax, edi
jne 0x486831
push esi
call fcn.004ae389
push 0x5c
push eax
mov dword [0x50a5c0], eax
call fcn.004ac398
add esp, 0xc
cmp eax, edi
je 0x4867cd
jmp 0x4867b0
mov edx, dword [0x50a5c0]
mov ecx, 0x5f
push 0x5c
push edx
mov word [eax], cx
call fcn.004ac398
add esp, 8
cmp eax, edi
jne 0x4867b0
mov eax, dword [0x50a5c0]
push 0x3a
push eax
call fcn.004ac398
add esp, 8
cmp eax, edi
je 0x4867fe
mov edx, dword [0x50a5c0]
mov ecx, 0x5f
push 0x3a
push edx
mov word [eax], cx
call fcn.004ac398
add esp, 8
cmp eax, edi
jne 0x4867e1
mov eax, dword [0x50a5c0]
push eax
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x50a5bc], eax
cmp eax, edi
jne 0x486831
mov ecx, dword [0x50a5c0]
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x50a5bc], eax
cmp eax, edi
je 0x48683a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea edx, [ebp - 4]
push str._s._d.tmp
push edx
call fcn.00466a00
mov eax, dword [ebp - 4]
add esp, 0x10
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x20]
push edi
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebp - 0x18]
push edx
push eax
push esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48688d
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x20]
je 0x486890
mov dword [ebp - 8], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0049d1fb
test eax, eax
jne 0x4868b0
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
test esi, 0xffff0000
jne 0x486a39
movzx esi, si
push esi
call fcn.004a5121
mov edi, eax
test edi, edi
je 0x4869a1
mov ecx, esi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4869a1
push esi
push eax
push edi
call fcn.004216fe
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4869a1
mov eax, dword [ebx]
movzx edi, word [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x486931
push edi
mov ecx, ebx
call fcn.0042151d
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x48694b
push esi
call fcn.004ab8ea
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x10]
push edx
lea ecx, [edi + edi]
push esi
push ecx
push eax
mov dword [ebp - 0x14], ecx
call fcn.004ab372
add esp, 0x10
cmp eax, 0x50
ja case.0x48696f.1
movzx ecx, byte [eax + 0x486a60]
jmp dword [ecx*4 + 0x486a50]
call fcn.0049d763
call fcn.0049d79b
test edi, edi
jl 0x486a2f
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x486a2f
mov ecx, dword [ebp - 0x14]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
mov esi, dword [ebp + 8]
call fcn.0046a050
mov edx, dword [ebp - 4]
add esp, 4
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4869d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x50a5bc]
test eax, eax
je 0x4869e6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004ac035
mov edi, dword [ebp - 8]
add esp, 4
test edi, edi
jne 0x486a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push esi
push str._PATHTREE_SaveEntireTreeToDisk__s_:_FAILED__LE_d
push edx
call fcn.00466a00
add esp, 0x10
call fcn.00485630
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00421000
push esi
call fcn.004ab8ea
add esp, 4
push eax
push esi
mov ecx, ebx
call fcn.00423f13
jmp 0x4869a4