Function at 0x408ad0
Capabilities:
Copy file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x448044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1ff
lea eax, [ebp - 0x617]
push 0
push eax
mov byte [ebp - 0x618], 0
call fcn.004279d0
add esp, 0xc
cmp dword [0x487ae4], 1
je 0x408b3e
mov eax, 0x4835e8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b14
sub eax, edx
sar eax, 1
cmp eax, 7
jb 0x408b3e
cmp dword [0x48548c], 0
je 0x408b54
push 0x43b954
call fcn.004042f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 0x43b990
call fcn.004042f0
add esp, 4
lea ecx, [ebp - 0x618]
push ecx
push 0x4835e8
call fcn.0040b550
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x81e]
push eax
mov word [ebp - 0x820], dx
call fcn.004279d0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x488d58
lea ecx, [ebp - 0x820]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x820]
push 0x43b9f4
push edx
call fcn.0041fece
mov esi, eax
add esp, 8
test esi, esi
jne 0x408bd7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.004206e4
add esp, 0xc
push esi
call fcn.004205f5
add esp, 4
push esi
mov ebx, eax
call fcn.0042131a
add esp, 4
push esi
call fcn.0042087b
add esp, 4
cmp ebx, 0x1f4
ja 0x408b3e
push 0x206
xor esi, esi
lea ecx, [ebp - 0x416]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x418], ax
call fcn.004279d0
add esp, 0xc
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x210], dx
call fcn.004279d0
add esp, 0xc
push 0x48b008
lea ecx, [ebp - 0x210]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
push 0x488d58
lea edx, [ebp - 0x418]
push str._sPolicySystemPolicyContainer.opt
push edx
call edi
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x30
push eax
mov dword [ebp - 0x828], esi
call fcn.00406d80
lea ecx, [ebp - 0x824]
push 0x88
push ecx
mov dword [ebp - 0x824], esi
call fcn.00406d80
mov ebx, dword [ebp - 0x824]
lea edi, [ebp - 0x618]
mov esi, ebx
call fcn.00406e60
mov esi, dword [ebp - 0x828]
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x18]
push edx
push ebx
push eax
call fcn.00426d40
mov ecx, dword [ebx + 0x10]
add dword [esi + 0x18], ecx
mov ebx, 1
add dword [esi + 0x28], ebx
add dword [esi + 0x2c], ebx
add esp, 0x1c
lea edi, [ebp - 0x824]
call fcn.00406e30
mov edx, dword [esi + 0x14]
add edx, dword [esi + 0x18]
push 0
push 0x8000080
push 2
push 0
push ebx
push 0xc0000000
lea eax, [ebp - 0x418]
push eax
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408d3f
push 0
lea ecx, [ebp - 0x824]
push ecx
mov dword [ebp - 0x824], 0
mov edx, dword [esi + 0x10]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x828]
call fcn.00406e30
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret