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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov ebx, ecx
push str.PATHTREE_SaveEntireTreeToDisk__s_
push eax
movq qword [ebp - 0x18], xmm0
call fcn.10044f30
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10034551
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [esi], 0
jne 0x10034560
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100000
mov dword [ebp - 0x18], 0x100000
call fcn.10104809
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100345b1
lea edx, [ebx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [edx], 2
push 4
call fcn.100335b0
add esp, 4
test eax, eax
je 0x100345b1
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x100344b0
push 0
mov ecx, ebx
call fcn.10034300
mov dword [ebp - 8], 1
mov eax, dword [0x10175720]
test eax, eax
jne 0x1003465a
push esi
call fcn.10104bb4
push 0x5c
push eax
mov dword [0x1017571c], eax
call fcn.101033a1
add esp, 0xc
mov ebx, 0x5f
test eax, eax
je 0x100345f7
lea ecx, [ecx]
push 0x5c
push dword [0x1017571c]
mov word [eax], bx
call fcn.101033a1
add esp, 8
test eax, eax
jne 0x100345e0
push 0x3a
push dword [0x1017571c]
call fcn.101033a1
add esp, 8
test eax, eax
je 0x10034627
jmp 0x10034610
push 0x3a
push dword [0x1017571c]
mov word [eax], bx
call fcn.101033a1
add esp, 8
test eax, eax
jne 0x10034610
push dword [0x1017571c]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x10175720], eax
test eax, eax
jne 0x1003465a
push dword [0x1017571c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10175720], eax
test eax, eax
je 0x10034663
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
lea eax, [ebp - 4]
push str._s._d.tmp
push eax
call fcn.10044f30
mov ecx, dword [ebp - 0x14]
movsx eax, byte [ecx + 7]
push eax
movsx eax, byte [ecx + 6]
push eax
movsx eax, byte [ecx + 5]
push eax
movsx eax, byte [ecx + 4]
push eax
movsx eax, byte [ecx + 3]
push eax
movsx eax, byte [ecx + 2]
push eax
movsx eax, byte [ecx + 1]
push eax
movsx eax, byte [ecx]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push esi
push str.PATHTREE_SaveEntireTreeToDisk__s_:_writing_to_temp_file:__s:__.2X__.2X__.2X__.2X__.2X__.2X__.2X__.2X
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0x40
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100346e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push SysReAllocStringLen
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov ebx, eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034724
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
je 0x1003472b
mov dword [ebp - 8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp - 0xc]
push str.PATHTREE_SaveEntireTreeToDisk__s_:_finished_writing_to_temp_file
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10034774
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea eax, [ebp - 0xc]
push str.PATHTREE_SaveEntireTreeToDisk__s_:_deleting_final_file
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100347af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
push esi
call fcn.10023fc0
call fcn.100475f0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push esi
push str.PATHTREE_SaveEntireTreeToDisk__s_:_renaming_temp_to_final_file_to:__s
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0x14
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100347fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
lea eax, [ebp - 0xc]
push str.PATHTREE_SaveEntireTreeToDisk__s_:_finished_transaction
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10034840
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 4]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003485c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x10175720]
test eax, eax
je 0x1003486c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x14]
call fcn.10103713
mov ebx, dword [ebp - 8]
add esp, 4
test ebx, ebx
jne 0x100348ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0xc]
push str._PATHTREE_SaveEntireTreeToDisk__s_:_FAILED__LE_d
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, str.PathTree
call fcn.10043b30
mov edx, dword [ebp - 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100348be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
push str.PATHTREE_SaveEntireTreeToDisk__s_:_done
push eax
call fcn.10044f30
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, str.PathTree
call fcn.10043b30
mov esi, dword [ebp - 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10034907
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret