Function at 0x100a8950
Capabilities:
Copy file
Delete file
Get file attributes
Move file
Set file attributes

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 0x1024c7ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xe8
push esi
push edi
push 4
mov dword [ebp - 0x18], 0
call fcn.1006e6a7
mov edi, eax
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0xf4], edi
mov dword [edi], 0xffffffff
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0xf0], xmm0
movlpd qword [ebp - 0xd0], xmm0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0xb0]
push 0x5c
mov byte [ebp - 4], 1
call fcn.10031fe0
add esp, 4
push 3
push 0x1026628c
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001a7c0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], 0
mov esi, 1
mov dword [ebp - 0x18], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.100320b0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x11], al
call fcn.1001a5a0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.1001a5a0
cmp byte [ebp - 0x11], 0
jne 0x100a8a7f
mov byte [ebp - 0x11], 0
jmp 0x100a9234
mov edi, dword [ebx + 0xc]
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100a8aa0
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
nop dword [eax + eax]
mov ecx, dword [ebp - 0xd0]
and ecx, 0x10
mov dword [ebp - 0x88], esi
mov eax, ecx
or eax, 0
je 0x100a8aba
mov al, 1
jmp 0x100a8abc
xor al, al
mov edx, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xc8]
test al, al
je 0x100a8b0d
test esi, esi
je 0x100a8b0d
cmp edx, 8
lea eax, [ebp - 0xc8]
cmovae eax, edi
cmp word [eax], 0x2e
jne 0x100a8b0d
cmp esi, 1
je 0x100a9214
cmp edx, 8
lea eax, [ebp - 0xc8]
cmovae eax, edi
cmp word [eax + 2], 0x2e
jne 0x100a8b0d
cmp esi, 2
je 0x100a9214
or ecx, 0
je 0x100a8b16
mov al, 1
jmp 0x100a8b18
xor al, al
test al, al
lea eax, [ebp - 0xc8]
je 0x100a8df9
cmp edx, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmovae eax, edi
mov dword [ebp - 0x54], eax
cmp esi, 8
jae 0x100a8b59
movups xmm0, xmmword [eax]
mov eax, 7
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x30], xmm0
mov edi, dword [ebp - 0x30]
jmp 0x100a8bdc
mov eax, esi
mov ecx, accept
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [ebp - 0x34], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100a8b7e
or ecx, 0xffffffff
jmp 0x100a8b86
cmp ecx, 0x1000
jb 0x100a8baf
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1006e6a7
add esp, 4
test eax, eax
je 0x100a9278
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x100a8bc2
test ecx, ecx
je 0x100a8bc0
push ecx
call fcn.1006e6a7
add esp, 4
mov edi, eax
jmp 0x100a8bc2
xor edi, edi
lea eax, [esi*2 + 2]
mov dword [ebp - 0x30], edi
push eax
push dword [ebp - 0x54]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
or dword [ebp - 0x18], 2
xor eax, eax
mov word [ebp - 0x4c], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov eax, dword [eax + 0x10]
inc eax
push eax
call fcn.1001cf30
mov ecx, dword [ebx + 8]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x100a8c1b
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1001a7c0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp ecx, edx
jae 0x100a8c4a
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
mov dword [eax + ecx*2], 0x5c
jmp 0x100a8c62
push 0x5c
mov byte [ebp - 0x8c], 0
push dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.1001d8e0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x30]
push esi
cmovae eax, edi
lea ecx, [ebp - 0x4c]
push eax
call fcn.1001a7c0
mov edi, dword [ebp - 0x88]
xor ecx, ecx
mov dword [ebp - 0x74], 0
or edi, 6
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and edi, 0xfffffffd
mov esi, edi
lea ecx, [ebp - 0x4c]
call fcn.1001a5a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4c]
or edi, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], edi
xor eax, eax
mov edi, dword [ebx + 0xc]
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], 7
mov eax, dword [edi + 0x10]
inc eax
push eax
call fcn.1001cf30
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100a8cf9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1001a7c0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
cmp ecx, edx
jae 0x100a8d28
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
mov dword [eax + ecx*2], 0x5c
jmp 0x100a8d40
push 0x5c
mov byte [ebp - 0x90], 0
push dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.1001d8e0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
push eax
call fcn.1001a7c0
mov dword [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x58], 0
or esi, 0x18
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and esi, 0xfffffff7
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.1001a5a0
lea eax, [ebp - 0x6c]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100a8dc2
lea eax, [ebp - 0x6c]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x100a927e
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyCopyDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.1001a5a0
jmp 0x100a9217
cmp edx, 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
cmovae eax, edi
mov dword [ebp - 0x54], eax
cmp esi, 8
jae 0x100a8e32
movups xmm0, xmmword [eax]
mov eax, 7
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x84], xmm0
mov edi, dword [ebp - 0x84]
jmp 0x100a8eb8
mov eax, esi
mov ecx, accept
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [ebp - 0x34], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x100a8e57
or ecx, 0xffffffff
jmp 0x100a8e5f
cmp ecx, 0x1000
jb 0x100a8e88
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1006e6a7
add esp, 4
test eax, eax
je 0x100a9278
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x100a8e9b
test ecx, ecx
je 0x100a8e99
push ecx
call fcn.1006e6a7
add esp, 4
mov edi, eax
jmp 0x100a8e9b
xor edi, edi
lea eax, [esi*2 + 2]
mov dword [ebp - 0x84], edi
push eax
push dword [ebp - 0x54]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
or dword [ebp - 0x18], 0x20
xor eax, eax
mov word [ebp - 0x30], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov eax, dword [eax + 0x10]
inc eax
push eax
call fcn.1001cf30
mov ecx, dword [ebx + 8]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x100a8ef7
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x30]
push eax
call fcn.1001a7c0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jae 0x100a8f26
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov dword [eax + ecx*2], 0x5c
jmp 0x100a8f3e
push 0x5c
mov byte [ebp - 0x94], 0
push dword [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x30]
call fcn.1001d8e0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x84]
push esi
cmovae eax, edi
lea ecx, [ebp - 0x30]
push eax
call fcn.1001a7c0
mov edi, dword [ebp - 0x88]
xor ecx, ecx
mov dword [ebp - 0x3c], 0
or edi, 0x60
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and edi, 0xffffffdf
mov esi, edi
lea ecx, [ebp - 0x30]
call fcn.1001a5a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x30]
or edi, 0x80
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], edi
xor eax, eax
mov edi, dword [ebx + 0xc]
mov word [ebp - 0x30], ax
mov dword [ebp - 0x1c], 7
mov eax, dword [edi + 0x10]
inc eax
push eax
call fcn.1001cf30
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100a8fd8
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x30]
push eax
call fcn.1001a7c0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jae 0x100a9007
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov dword [eax + ecx*2], 0x5c
jmp 0x100a901f
push 0x5c
mov byte [ebp - 0x98], 0
push dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x30]
call fcn.1001d8e0
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
cmovae eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x30]
push eax
call fcn.1001a7c0
mov dword [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x58], 0
or esi, 0x180
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and esi, 0xffffff7f
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
call fcn.1001a5a0
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x6c]
push 0
cmovae ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
push ecx
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100a91f3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0xc8]
push eax
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyGetTempFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 0xc
test al, al
je 0x100a92a2
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100a9107
and eax, 0xfffffffe
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push eax
cmovae ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 4
cmovae eax, dword [ebp - 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x6c]
push 0
cmovae ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
push ecx
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100a91eb
cmp dword [ebp - 0x38], 8
lea edx, [ebp - 0x4c]
mov dword [ebp - 0xa0], eax
cmovae edx, dword [ebp - 0x4c]
mov ecx, edx
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a91a0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.1001a600
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x13
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x12
call fcn.1001a5a0
cmp byte [ebp - 0x11], 0
jne 0x100a92a2
lea ecx, [ebp - 0x30]
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
lea ecx, [ebp - 0x4c]
call fcn.1001a5a0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.1001a5a0
jmp 0x100a9217
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0xf0]
push eax
mov ecx, edi
call fcn.10032120
test al, al
jne 0x100a8aa0
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0xc8]
call fcn.1001a5a0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x100a9257
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x100a9257
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.1006e6d7
mov ecx, dword [ebp - 0xc]
add esp, 8
mov al, byte [ebp - 0x11]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
lea ecx, [ebp - 0x30]
call fcn.1001a5a0
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x11], 0
jmp 0x100a9234
lea ecx, [ebp - 0x30]
call fcn.1001a5a0
lea ecx, [ebp - 0x6c]
call fcn.1001a5a0
lea ecx, [ebp - 0x4c]
call fcn.1001a5a0
lea ecx, [ebp - 0x84]
call fcn.1001a5a0
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x11], 0
jmp 0x100a9234