Function at 0x417380
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f3f07
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x374], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x38c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x39c]
mov ebx, dword [esp + 0x3a0]
mov ebp, ecx
lea ecx, [esp + 0x260]
mov dword [esp + 0x14], esi
call fcn.00415be0
lea eax, [esp + 0x260]
push eax
mov ecx, ebx
mov dword [esp + 0x398], 0
call fcn.00417ac0
test al, al
je 0x417442
push 0
push esi
lea ecx, [esp + 0x268]
call fcn.00417180
test al, al
jne 0x417442
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x37c], al
jne 0x41743b
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x41743b
push eax
call fcn.004d1d15
add esp, 4
xor al, al
jmp 0x417633
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x417451
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
add eax, 4
push eax
call edi
cmp byte [ebx + 0x11c], 0
lea ecx, [ebx + 0xc]
jne 0x417471
mov ecx, dword [ebx + 8]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x417480
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 0x4175be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0040fa50
mov esi, eax
call fcn.004108a0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0040fa50
cmp byte [ebx + 0x11c], 0
je 0x4174d6
add ebx, 0xc
jmp 0x4174d9
mov ebx, dword [ebx + 8]
lea ecx, [esp + 0x18]
call fcn.00410c10
lea eax, [ebx + 4]
lea edx, [esp + 0x18]
call fcn.00410e40
cmp byte [ebp + 0x11c], 0
lea esi, [ebp + 0xc]
jne 0x4174fd
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x13c]
call fcn.00410c10
lea eax, [esi + 4]
lea edx, [esp + 0x13c]
call fcn.00410e40
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x140]
push ecx
push 0x52b640
mov ecx, edi
mov byte [esp + 0x3a0], 4
call fcn.0040fa50
mov ecx, eax
call fcn.00410ad0
cmp byte [esp + 0x258], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x13c], esi
jne 0x417571
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x417571
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], esi
jne 0x417594
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x417594
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x37c], 0
mov dword [esp + 0x260], esi
jne 0x41743b
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
jmp 0x417430
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x4175cd
mov eax, dword [ebx + 8]
push 0x80
add eax, 4
push eax
call edi
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x4175e7
mov eax, dword [ebx + 8]
push 0x10000000
add eax, 4
push 1
push eax
call fcn.00418ce0
add esp, 0xc
mov eax, ebx
call fcn.00418670
cmp byte [esp + 0x37c], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x417631
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x417631
push eax
call fcn.004d1d15
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.004d158d
add esp, 0x384
ret 0xc