Function at 0x4097da
Capabilities:
Copy file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x72c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x110
push esi
push eax
call fcn.0043f630
add esp, 0xc
mov dword [ebp - 0x730], 0x114
test edi, edi
je 0x409a63
xor eax, eax
cmp ax, word [edi]
je 0x409a63
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x409842
push 0x11
jmp 0x409a65
xor eax, eax
cmp dword [ebp - 0x720], 2
sete al
mov dword [ebp - 0x734], eax
cmp dword [ebp + 0x10], esi
je 0x40987c
push edi
call fcn.0040aa2e
pop ecx
test eax, eax
jne 0x409876
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x734]
test eax, eax
je 0x4099de
test ebx, ebx
je 0x4099be
xor eax, eax
cmp ax, word [ebx]
je 0x4099be
push ebx
call fcn.0040aa2e
pop ecx
test eax, eax
jne 0x4098c6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x409a57
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043f630
push ebx
call fcn.0044aad6
add esp, 0x10
mov dword [ebp - 0x734], eax
test eax, eax
jne 0x4098f5
mov eax, 0x80004005
jmp 0x409a66
push 0x5c
push eax
call fcn.0043f8bb
pop ecx
pop ecx
test eax, eax
je 0x40990a
xor ecx, ecx
mov word [eax], cx
jmp 0x409928
push 0x4b497c
push dword [ebp - 0x734]
call fcn.00443c45
pop ecx
inc eax
push eax
push dword [ebp - 0x734]
call fcn.0040a523
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043f630
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push 0x4b4980
push dword [ebp - 0x734]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4099ad
xor eax, eax
cmp ax, word [ebp - 0x414]
je 0x4099ad
push dword [ebp - 0x734]
call fcn.00443bd1
lea eax, [ebp - 0x414]
pop ecx
cmp dword [ebp + 0x10], esi
je 0x409988
push 0xb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x409991
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409a57
push 4
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x4099da
push dword [ebp - 0x734]
call fcn.00443bd1
pop ecx
jmp 0x4098eb
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test edi, edi
jne 0x409a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jmp 0x409a55
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0043f630
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
call edi
test ebx, ebx
je 0x409a40
xor eax, eax
cmp ax, word [ebx]
je 0x409a40
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043f630
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
jmp 0x409a45
push 0x4b4990
lea eax, [ebp - 0x61c]
push eax
call fcn.00409cbc
pop ecx
pop ecx
test eax, eax
jne 0x409a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x409a66
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret