Function at 0x413690
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b970
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1854
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1824], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x413a35
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4136e7
sub eax, edx
sar eax, 1
je 0x413a35
test ebx, ebx
je 0x413a35
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413710
sub eax, edx
sar eax, 1
je 0x413a35
push ebx
push esi
call fcn.00423cbc
add esp, 8
test eax, eax
je 0x413a86
push 0x800
push 0
lea ecx, [ebp - 0x101c]
push ecx
call fcn.004260b0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp - 0x101c]
call fcn.004152e0
mov ecx, 0x446550
lea edx, [ebp - 0x101c]
call fcn.00415490
lea ecx, [ebp - 0x81c]
call fcn.004152e0
mov ecx, 0x446550
lea edx, [ebp - 0x81c]
call fcn.00415490
push 0x3ff
push esi
push 0x400
lea eax, [ebp - 0x101c]
push eax
call fcn.0042400b
push 0x3ff
push ebx
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0042400b
add esp, 0x20
mov esi, dword [ebp + 0x18]
push esi
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x413815
test esi, esi
je 0x413a1a
mov ecx, dword [ebp - 0x1824]
test ecx, ecx
je 0x413a1a
mov edx, dword [ebp + 0x14]
push edx
push 0
lea edx, [ebp - 0x81c]
call fcn.00415740
add esp, 8
jmp 0x413a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x1820], edi
cmp edi, dword [ebp + 0x1c]
jne 0x413861
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x101c]
push ecx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x45a600
call fcn.00412400
add esp, 0xc
mov dword [ebp - 0x182c], edi
push 0x4499d0
lea edx, [ebp - 0x182c]
push edx
call fcn.0042623c
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x413874.4
movzx eax, byte [eax + 0x413ab8]
jmp dword [eax*4 + 0x413aa4]
lea ecx, [ebp - 0x1864]
push ecx
lea ecx, [ebp - 0x101c]
call fcn.00415050
add esp, 4
test eax, eax
je 0x4138ae
lea esi, [ebp - 0x1864]
lea ecx, [ebp - 0x81c]
call fcn.00414ec0
test eax, eax
je 0x4138ae
cmp eax, 3
jne 0x4138c4
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
call fcn.00414f10
add esp, 8
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x4138dd
cmp eax, 2
je 0x4138dd
xor edi, edi
mov dword [ebp - 0x1820], edi
jmp 0x413a1a
push 0x80
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push edi
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x1824]
push eax
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x101c]
push edx
call fcn.00413690
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x413a16
push 0x80
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x20]
push ecx
jmp 0x4138f0
lea edx, [ebp - 0x81c]
lea ecx, [ebp - 0x101c]
call fcn.004148e0
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x413a16
push 0x800
push 0
lea eax, [ebp - 0x181c]
push eax
call fcn.004260b0
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00424764
add esp, 8
test eax, eax
je 0x413a16
lea edx, [ebp - 0x81c]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
push 0x400
lea ecx, [ebp - 0x181c]
push ecx
call fcn.0042400b
mov esi, dword [ebp + 0x14]
push esi
mov ebx, dword [ebp - 0x1824]
push ebx
lea edx, [ebp - 0x181c]
call fcn.00414c90
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x1820], edi
test edi, edi
jne 0x413a2c
mov edx, dword [ebp + 0x20]
push edx
push 3
push 1
push esi
push ebx
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x101c]
push ecx
call fcn.00413690
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x413a16
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x45a600
call fcn.00412400
add esp, 0xc
test edi, edi
jne 0x413a2c
push 0x80
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
jmp 0x413a84
mov eax, 0x57
jmp 0x413a86
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042397a
mov esp, ebp
pop ebp
ret