Function at 0x486a37
Capabilities:
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5f50
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x54b0c4]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x18]
mov ecx, dword [eax]
mov ecx, dword [ecx - 0xc]
xor ebx, ebx
cmp ecx, ebx
je 0x486ad1
lea edi, [esi + 0x1c]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x486ad1
push dword [esi + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004c05cf
add esp, 0xc
mov dword [esp + 0x470], ebx
push dword [esp + 0x10]
call fcn.0048b5a6
test eax, eax
pop ecx
jne 0x486af7
push dword [esp + 0x10]
call fcn.004407be
test eax, eax
pop ecx
jne 0x486af7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.004d0736
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004c05cf
add esp, 0xc
mov byte [esp + 0x470], 1
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00402d09
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x18]
push dword [eax - 0xc]
lea esi, [esp + 0x1c]
call fcn.00401958
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esp + 0x18], ebx
jne 0x486b47
xor eax, eax
jmp 0x486b52
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [esp + 0x18]
call fcn.00401385
push dword [esp + 0x18]
call fcn.004407be
test eax, eax
pop ecx
jne 0x486b73
push dword [esp + 0x18]
call fcn.0048b195
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x486cb8
lea eax, [esp + 0x10]
push eax
call fcn.0048b04d
lea eax, [esp + 0x14]
mov dword [esp], 0x516400
push eax
call fcn.00402a1b
lea ecx, [esp + 0x14]
call fcn.0048b0d7
mov edi, dword [esp + 0x10]
mov eax, 0x104
cmp dword [edi - 0xc], eax
jg 0x486c8b
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], eax
jg 0x486c8b
mov esi, 0x20a
push esi
lea eax, [esp + 0x42]
push ebx
push eax
mov word [esp + 0x48], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x252]
push ebx
push eax
mov word [esp + 0x258], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push edi
mov edi, 0x106
lea eax, [esp + 0x40]
push edi
push eax
call esi
add esp, 0xc
push dword [esp + 0x14]
lea eax, [esp + 0x250]
push edi
push eax
call esi
add esp, 0xc
push dword [esp + 0x14]
call fcn.004407be
test eax, eax
pop ecx
jne 0x486c3c
push dword [esp + 0x14]
call fcn.0048b195
pop ecx
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 2
mov word [esp + 0x30], 0x614
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x486c8d
xor esi, esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
jmp 0x486ad3
push ebx
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
jmp 0x486c8d