Function at 0x450790
Capabilities:
Copy file
Delete file
Get common file path
Move file
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6f11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3a0]
mov ebp, ecx
test edi, edi
mov dword [esp + 0x20], ebp
je 0x450d27
push 1
push 0x2800
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [edi + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x24], eax
jle 0x450c5f
mov ecx, dword [edi + 4]
mov ebx, dword [ecx + eax*4]
mov dword [esp + 0x28], ebx
mov ax, word [ebx + 0x18]
cmp ax, 2
jne 0x450954
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea esi, [ebx + 4]
push str.GLAcm.DLL
push esi
mov dword [esp + 0x3a0], 0
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
push esi
jne 0x45084f
mov edx, dword [ebp + 8]
lea eax, [esp + 0x20]
push edx
push 0x4d70bc
push eax
jmp 0x45085d
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x20]
push ecx
push str._sglacm_s
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x2c]
add esp, 0x10
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45093b
xor edx, edx
mov ecx, 0x41
mov dword [esp + 0x50], edx
lea edi, [esp + 0x84]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov ecx, dword [eax - 8]
add ecx, 0xfffffffd
push ecx
push eax
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 0x10
lea ecx, [esp + 0x50]
push eax
push 0x4d6364
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
test eax, eax
jne 0x450c8d
mov edi, dword [esp + 0x3a0]
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x398], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x450c4b
cmp ax, 1
je 0x450964
cmp ax, 3
jne 0x450c4b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
add ebx, 4
lea edx, [esp + 0x28c]
push ebx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
mov dword [esp + 0x3a8], 1
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
add ebp, 0xc
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x64]
push 0x13
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push ebx
push eax
mov dword [esp + 0x70], 0x5002
mov dword [esp + 0x74], 0x18
mov dword [esp + 0x8c], esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x64]
push 0x20
push ecx
mov ecx, ebp
call fcn.00441c20
test eax, eax
jle 0x450cb3
xor edx, edx
push 0x7530
mov dword [esp + 0x30], edx
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push 0x10
mov dword [esp + 0x3c], edx
push eax
mov ecx, ebp
mov dword [esp + 0x44], edx
call fcn.00442280
test eax, eax
jle 0x450cd9
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x450a43
test esi, esi
je 0x450ce0
jmp 0x4509b6
cmp eax, 0x2800
ja 0x450ce0
test eax, eax
jbe 0x4509b6
mov ecx, dword [esp + 0x28]
cmp esi, dword [ecx]
jge 0x4509b6
mov edi, dword [esp + 0x14]
push 0x7530
push eax
push edi
mov ecx, ebp
call fcn.00442280
cmp eax, dword [esp + 0x38]
jne 0x450ce7
mov edx, dword [esp + 0x10]
push 0x4d8da4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x450cb3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push edi
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov ecx, 0xa00
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [edx]
add esi, ecx
add esp, 0x14
cmp esi, eax
jl 0x4509b6
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_5
push str.GLAcm.DLL
push ebx
mov byte [esp + 0x3a0], 2
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
push ebx
mov ecx, dword [eax + 8]
push ecx
jne 0x450b0d
push 0x4d70bc
jmp 0x450b12
push str._sglacm_s
lea edx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x28]
add esp, 0x10
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x450c09
mov ecx, 0x41
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
add ecx, 0xfffffffd
push ecx
lea ecx, [esp + 0x18c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 0x10
lea edx, [esp + 0x3c]
push eax
push 0x4d6364
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
or ebx, 0xffffffff
lea edi, [esp + 0x48]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x194]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x194]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
test eax, eax
jne 0x450cea
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call ebp
test eax, eax
je 0x450cf1
jmp 0x450c0c
or ebx, 0xffffffff
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x450cf8
lea ecx, [esp + 0x18]
mov byte [esp + 0x398], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], ebx
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x3a0]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4507fc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x390]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38c
ret 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x398], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x450c72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x450c72
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x450cb8
mov edx, dword [esp + 0x14]
push edx
jmp 0x450cb8
push edi
jmp 0x450cb8
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x450cfd
mov edx, dword [esp + 0x14]
push edx
jmp 0x450cfd
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x398], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x398], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x450c72