Function at 0x46d284
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
push 0x4d3fda
push dword [ebp + 8]
call fcn.004a3278
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x46d2cb
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 8]
push 0x4d3fe0
call fcn.0049ad5c
add esp, 0xc
xor eax, eax
jmp 0x46d5fd
push dword [ebp + 8]
call fcn.0046cc30
pop ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
jg 0x46d304
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 8]
push 0x4d4044
call fcn.0049ad5c
add esp, 0xc
push dword [ebp - 8]
call fcn.0049f94c
pop ecx
xor eax, eax
jmp 0x46d5fd
push dword [ebp - 0xc]
call fcn.0040fb2c
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
call fcn.0049fef8
add esp, 0x10
mov edx, dword [ebp - 0xc]
cmp eax, edx
je 0x46d35a
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 8]
push 0x4d409e
call fcn.0049ad5c
add esp, 0xc
push dword [ebp - 8]
call fcn.0049f94c
pop ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040fb70
pop ecx
xor eax, eax
jmp 0x46d5fd
push dword [ebp - 8]
call fcn.0049f94c
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0046cc00
add esp, 8
test eax, eax
je 0x46d577
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov esi, 0x4d3a3c
lea edi, [ebp - 0x140]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0x10]
call fcn.0046e710
add esp, 8
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
push ecx
call fcn.0049da7c
add esp, 8
test eax, eax
je 0x46d3de
push dword [ebp + 8]
push 0x4d40ea
call fcn.0049ad5c
add esp, 8
lea eax, [ebp - 0x10]
push eax
call fcn.0040fb70
pop ecx
xor eax, eax
jmp 0x46d5fd
push dword [ebp + 0x10]
call fcn.0049daf8
pop ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x10]
cmp eax, ecx
je 0x46d412
push dword [ebp + 8]
push 0x4d4140
call fcn.0049ad5c
add esp, 8
lea eax, [ebp - 0x10]
push eax
call fcn.0040fb70
pop ecx
xor eax, eax
jmp 0x46d5fd
mov dword [ebp - 0x18], 0x400
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add edx, ecx
push edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
sub eax, edx
push eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add ecx, eax
push ecx
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add edx, 0xc
push edx
call fcn.0046c978
add esp, 0x14
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_GetFileAttributesW
mov dword [ebp - 0x1c], eax
push 0x80
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SetFileAttributesW
mov ecx, dword [0x4d3b40]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x4d3b44]
mov dword [ebp - 0x20], ecx
mov eax, dword [0x4d3b48]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4d3b4c]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0046ccbc
add esp, 0xc
push 0x4d41a2
push dword [ebp + 0xc]
call fcn.004a3278
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x46d4e9
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 0xc]
push 0x4d41a8
call fcn.0049ad5c
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
call fcn.0040fb70
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
je 0x46d4e2
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SetFileAttributesW
xor eax, eax
jmp 0x46d5fd
push dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
sub edx, ecx
push edx
push 1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add eax, edx
push eax
call fcn.004a016c
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
sub ecx, edx
cmp eax, ecx
je 0x46d52c
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp + 0xc]
push 0x4d4212
call fcn.0049ad5c
add esp, 0xc
jmp 0x46d533
mov dword [ebp - 4], 1
push dword [ebp - 8]
call fcn.0049f94c
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0xc]
call fcn.0046cd0c
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x46d562
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SetFileAttributesW
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4d4260
call fcn.0049ad5c
add esp, 0xc
jmp 0x46d5f0
push dword [ebp + 8]
push 0x4d42a8
call fcn.0049ad5c
add esp, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049df3c
add esp, 8
test eax, eax
je 0x46d5f0
mov edx, dword [0x4d3b50]
mov dword [ebp - 0x34], edx
mov edx, dword [0x4d3b54]
mov dword [ebp - 0x30], edx
mov ecx, dword [0x4d3b58]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x4d3b5c]
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x34]
push edx
push dword [ebp + 8]
call fcn.0046ccbc
add esp, 0xc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_CopyFileW
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call fcn.0046cd0c
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
call fcn.0040fb70
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret