Function at 0x1000ced0
Capabilities:
Check if file exists
Create directory
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100379bc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x424
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1007df28]
cmp dword [eax - 0xc], 0
je 0x1000d151
cmp dword [0x1007def4], 0xffffffff
mov byte [ebp - 0x42d], 0
je 0x1000d151
mov esi, dword [sym.imp.MSVCP140.dll__Mtx_lock]
push 0x1007def8
mov dword [ebp - 0x434], 0x1007def8
call esi
add esp, 4
test eax, eax
je 0x1000cf58
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0
push 2
push 0
push 0
push dword [0x1007def4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, byte [ebp - 0x42d]
cmp eax, 0x500000
mov edx, 1
cmovae ecx, edx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 4], 0xffffffff
push 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp byte [ebp - 0x41c], 1
jne 0x1000d151
mov ecx, 0x1007def0
call fcn.1000cda0
mov eax, dword [0x1007def4]
test eax, eax
jne 0x1000d13b
push 0x1007def8
mov dword [ebp - 0x434], 0x1007def8
call esi
add esp, 4
test eax, eax
je 0x1000cfe3
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 1
mov dword [0x1007def4], 0xffffffff
mov dword [ebp - 0x41c], 0
call fcn.100011b0
mov ecx, eax
test ecx, ecx
je 0x1000d16e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x41c]
push eax
push dword [0x1007df28]
call fcn.1000b4b0
cmp al, 1
jne 0x1000d05a
mov esi, dword [ebp - 0x41c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1000d05a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000d105
push 0x100
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 0
push 0
push dword [0x1007df28]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x42c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x42c], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x420]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
movzx eax, word [ebp - 0x426]
push eax
movzx eax, word [ebp - 0x42a]
push eax
movzx eax, word [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push str._s__04d_02d_02d__02d_02d_02d_s
push eax
call fcn.10006cb0
mov esi, dword [ebp - 0x41c]
add esp, 0x28
push esi
push dword [0x1007df28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000d121
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [0x1007def4]
add esp, 4
cmp eax, 0xffffffff
jne 0x1000d151
push dword [0x1007df28]
push dword [0x1007df2c]
call fcn.1000ca50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.10008700
int3