Function at 0x46f080
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x521a77
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x374], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x38c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x39c]
mov edi, dword [esp + 0x3a0]
mov ebp, ecx
lea ecx, [esp + 0x260]
call fcn.0046a650
xor eax, eax
cmp dword [esp + 0x380], eax
je 0x46f0e9
mov dword [esp + 0x380], eax
mov ecx, 1
lea esi, [esp + 0x268]
mov dword [esp + 0x264], eax
call fcn.0046b260
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x46f119
mov eax, dword [esp + 0x268]
xor esi, esi
mov word [eax + 4], si
lea eax, [esp + 0x260]
push eax
mov ecx, edi
mov dword [esp + 0x398], esi
call fcn.0046f810
test al, al
je 0x46f181
push esi
push ebx
lea ecx, [esp + 0x268]
call fcn.0046ee80
test al, al
jne 0x46f181
cmp byte [esp + 0x37c], al
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46f17a
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x46f17a
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x46f348
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46f190
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
add eax, 4
push eax
call esi
cmp byte [edi + 0x11c], 0
lea ecx, [edi + 0xc]
jne 0x46f1b0
mov ecx, dword [edi + 8]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x46f1bf
mov eax, dword [ebp + 8]
movzx edx, byte [esp + 0x3a4]
push edx
add ecx, 4
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46f2d3
cmp byte [edi + 0x11c], al
je 0x46f1eb
add edi, 0xc
jmp 0x46f1ee
mov edi, dword [edi + 8]
lea ecx, [esp + 0x13c]
call fcn.0046a650
lea eax, [edi + 4]
lea edx, [esp + 0x13c]
call fcn.0046a7f0
cmp byte [ebp + 0x11c], 0
lea esi, [ebp + 0xc]
jne 0x46f218
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x18]
call fcn.0046a650
lea eax, [esi + 4]
lea edx, [esp + 0x18]
call fcn.0046a7f0
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x562ca4
mov ecx, ebx
mov byte [esp + 0x3a0], 4
call fcn.00470820
mov ecx, eax
call fcn.00471850
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x46f27d
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x46f27d
push eax
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x46f2a9
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x46f2a9
push eax
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x37c], 0
mov dword [esp + 0x260], esi
jne 0x46f17a
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
jmp 0x46f16f
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46f2e2
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call esi
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x46f2fc
mov eax, dword [edi + 8]
push 0x10000000
add eax, 4
push 1
push eax
call fcn.00476a50
add esp, 0xc
mov eax, edi
call fcn.0046ffe0
cmp byte [esp + 0x37c], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46f346
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x46f346
push eax
call fcn.004fdda1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.004fe05a
add esp, 0x384
ret 0xc