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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035484
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x1007700c]
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 eax, dword [0x10077148]
cmp dword [eax - 0xc], 0
je 0x1000c727
xor bl, bl
cmp dword [0x10077114], 0xffffffff
je 0x1000c727
mov esi, dword [sym.imp.MSVCP140.dll__Mtx_lock]
push 0x10077118
call esi
mov edi, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
test eax, eax
je 0x1000c50c
push eax
call edi
add esp, 4
push 2
push 0
push 0
push dword [0x10077114]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x500000
movzx ebx, bl
mov ecx, 1
cmovae ebx, ecx
push 0x10077118
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x1000c54d
push eax
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp bl, 1
jne 0x1000c727
mov ecx, 0x10077110
call fcn.1000c360
mov eax, dword [0x10077114]
test eax, eax
jne 0x1000c711
push 0x10077118
mov dword [ebp - 0x428], 0x10077118
call esi
add esp, 4
test eax, eax
je 0x1000c592
push eax
call edi
add esp, 4
mov dword [ebp - 4], 1
mov dword [0x10077114], 0xffffffff
call fcn.10001260
mov ecx, eax
test ecx, ecx
jne 0x1000c5b8
push 0x80004005
call fcn.10008930
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 2
push eax
push dword [0x10077148]
call fcn.1000b1e0
cmp al, 1
jne 0x1000c608
mov esi, dword [ebp - 0x414]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x1000c608
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
cmp al, 1
jne 0x1000c6ca
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0
push 0
push dword [0x10077148]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
xor eax, eax
add esp, 0x24
mov word [ebp - 0x424], ax
xorps xmm0, xmm0
mov dword [ebp - 0x41a], eax
mov word [ebp - 0x416], ax
lea eax, [ebp - 0x424]
push eax
movq qword [ebp - 0x422], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push str._s__04d_02d_02d__02d_02d_02d_s
push eax
call fcn.10006cd0
mov esi, dword [ebp - 0x414]
add esp, 0x28
push esi
push dword [0x10077148]
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 0x1000c6e6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10077118
mov dword [ebp - 4], 3
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x1000c705
push eax
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x10077114]
cmp eax, 0xffffffff
jne 0x1000c727
push dword [0x10077148]
push dword [0x1007714c]
call fcn.1000bff0
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.10033482
mov esp, ebp
pop ebp
ret