Function at 0x100372b0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dbc8e
mov eax, dword fs:[0]
push eax
mov eax, 0x2828
call fcn.1005eae0
mov eax, dword [0x10114894]
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
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2818], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2814], eax
push ebx
push dword [ebx + 4]
mov dword [ebp - 4], 0
push dword [ebx]
call fcn.10034ab0
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2818]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10037447
test esi, esi
je 0x10037447
push 3
push esi
push eax
call fcn.10085064
add esp, 0xc
push 0x800
push 0
test eax, eax
je 0x100374b6
lea eax, [ebp - 0x1810]
push eax
call fcn.10066cd0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10066cd0
push 0x400
lea eax, [ebp - 0x1810]
push esi
push eax
call fcn.100825ca
add esp, 0x24
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003742e
push esi
call fcn.10015c70
add esp, 4
test eax, eax
jne 0x1003742e
lea eax, [ebp - 0x810]
push eax
push 0
push 0x100e8b74
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x810]
je 0x10037467
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x2814]
test eax, eax
je 0x10037415
mov dword [eax], 4
cmp dword [edi + 0x74], 0
jne 0x1003742e
push esi
mov ecx, edi
call fcn.10036030
test eax, eax
je 0x1003742e
mov dword [edi + 0x74], 1
push 0
push esi
push dword [ebp - 0x2818]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100374af
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
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.1005e6b8
mov esp, ebp
pop ebp
ret 0x14
push 0
push eax
push dword [ebp - 0x2818]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x2814]
test eax, eax
je 0x10037496
mov dword [eax], 5
cmp dword [edi + 0x74], 0
jne 0x100374af
push esi
mov ecx, edi
call fcn.10036030
test eax, eax
je 0x100374af
mov dword [edi + 0x74], 1
mov eax, 1
jmp 0x10037449
lea eax, [ebp - 0x1010]
push eax
call fcn.10066cd0
push 0x400
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.100825ca
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x1010]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 3
push esi
push dword [ebp - 0x2818]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10037449
push 0x100e8b0c
lea ecx, [ebp - 0x2814]
call fcn.10008a60
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x2828]
call fcn.10034fc0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10038700
lea ecx, [ebp - 0x2828]
call fcn.10035420
mov edx, dword [ebp - 0x2814]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10037576
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0
push 0x100e8b1c
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100375e5
push 0x100e8b24
lea ecx, [ebp - 0x2814]
call fcn.10008a60
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 3
call eax
push eax
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x2828]
call fcn.10034fc0
mov byte [ebp - 4], 4
jmp 0x100376a0
push 3
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1003766b
lea eax, [ebp - 0x2010]
push eax
call fcn.10015c70
add esp, 4
test eax, eax
jne 0x1003761d
push 4
push eax
lea eax, [ebp - 0x2010]
mov ecx, edi
push eax
call fcn.10036140
push 3
push esi
push dword [ebp - 0x2818]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10037449
push 0x100e8b38
lea ecx, [ebp - 0x2814]
call fcn.10008a60
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 5
call eax
push eax
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x2828]
call fcn.10034fc0
mov byte [ebp - 4], 6
jmp 0x100376a0
push str.T_rT
lea ecx, [ebp - 0x2814]
call fcn.10008a60
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 7
call eax
push eax
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x2828]
call fcn.10034fc0
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.10038700
lea ecx, [ebp - 0x2828]
call fcn.10035420
lea ecx, [ebp - 0x2814]
mov dword [ebp - 4], 0xffffffff
call fcn.10007410
push 0x800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.10066cd0
add esp, 0xc
lea eax, [ebp - 0x2810]
push eax
push 0
push 0x100e8b1c
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 3
lea eax, [ebp - 0x2810]
push eax
push dword [ebp - 0x2818]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push esi
lea eax, [ebp - 0x2810]
mov ecx, edi
push eax
call fcn.10036140
mov dword [ebp - 0x2818], eax
test eax, eax
jne 0x10037785
push 0x100e8b5c
lea ecx, [ebp - 0x281c]
call fcn.10008a60
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x281c]
push eax
lea ecx, [ebp - 0x2834]
call fcn.10034fc0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.10038700
lea ecx, [ebp - 0x2834]
call fcn.10035420
lea ecx, [ebp - 0x281c]
mov dword [ebp - 4], 0xffffffff
call fcn.10007410
mov eax, dword [ebp - 0x2818]
cmp dword [edi + 0x74], 0
jne 0x10037449
push esi
mov ecx, edi
call fcn.10036030
test eax, eax
mov eax, dword [ebp - 0x2818]
je 0x10037449
mov dword [edi + 0x74], 1
jmp 0x10037449