Function at 0x49be30
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51db60
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1800], 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 + 0x180c]
mov ebx, dword [ebp + 0x1810]
mov eax, dword [ebp + 0x1814]
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x49c1d0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49be97
sub eax, edx
sar eax, 1
je 0x49c1d0
test ebx, ebx
je 0x49c1d0
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49bec0
sub eax, edx
sar eax, 1
je 0x49c1d0
push ebx
push esi
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x49c215
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.004fd670
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.004fd670
mov ecx, 0x539d98
lea edx, [ebp + 0x800]
call fcn.00494ad0
mov ecx, 0x539d98
lea edx, [ebp + 0x800]
call fcn.00494c80
mov ecx, 0x539d98
lea edx, [ebp + 0x1000]
call fcn.00494ad0
mov ecx, 0x539d98
lea edx, [ebp + 0x1000]
call fcn.00494c80
push 0x3ff
push esi
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004fa71b
push 0x3ff
push ebx
push 0x400
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004fa71b
add esp, 0x38
mov esi, dword [ebp + 0x181c]
push esi
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49bfce
test esi, esi
je 0x49c1b5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x49c1b5
push 1
mov edx, dword [ebp + 0x1818]
push edx
push 0
lea edx, [ebp + 0x1000]
call fcn.0049dc10
add esp, 0xc
jmp 0x49c1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp + 0x1820]
jne 0x49c014
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x649e50
call fcn.004917b0
add esp, 0xc
mov dword [ebp - 0x20], edi
push 0x5814b0
lea edx, [ebp - 0x20]
push edx
call fcn.004fd5a3
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x49c027.4
movzx eax, byte [eax + 0x49c250]
jmp dword [eax*4 + 0x49c23c]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp + 0x800]
call fcn.0049d7b0
add esp, 4
test eax, eax
je 0x49c05b
lea esi, [ebp - 0x58]
lea ecx, [ebp + 0x1000]
call fcn.0049d620
test eax, eax
je 0x49c05b
cmp eax, 3
jne 0x49c071
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
call fcn.0049d670
add esp, 8
mov esi, dword [ebp + 0x1824]
test esi, esi
jne 0x49c08a
cmp eax, 2
je 0x49c08a
xor edi, edi
mov dword [ebp - 0x14], edi
jmp 0x49c1b5
push 0x80
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push edi
push 0
mov edx, dword [ebp + 0x1818]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
call fcn.0049be30
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x49c1b1
push 0x80
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x1824]
push ecx
jmp 0x49c09d
lea edx, [ebp + 0x1000]
lea ecx, [ebp + 0x800]
call fcn.0049d040
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x49c1b1
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x5c
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004fa6eb
add esp, 0x14
test eax, eax
je 0x49c1b1
lea edx, [ebp + 0x1000]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fa71b
mov esi, dword [ebp + 0x1818]
push esi
mov ebx, dword [ebp - 0x18]
push ebx
lea edx, [ebp]
call fcn.0049d3f0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x49c1c7
mov edx, dword [ebp + 0x1824]
push edx
push 3
push 1
push esi
push ebx
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.0049be30
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x49c1b1
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x649e50
call fcn.004917b0
add esp, 0xc
test edi, edi
jne 0x49c1c7
push 0x80
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
jmp 0x49c213
mov eax, 0x57
jmp 0x49c215
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 + 0x1800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1804
mov esp, ebp
pop ebp
ret