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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x446044]
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.00426670
add esp, 0xc
cmp dword [0xc9ce5c], 1
je 0x40824e
mov eax, 0xc98960
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408224
sub eax, edx
sar eax, 1
cmp eax, 7
jb 0x40824e
cmp dword [0xc9a804], 0
je 0x408264
push 0x439eec
call fcn.00403960
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
push 0x439f28
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x618]
push ecx
push 0xc98960
call fcn.0040ae50
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x81e]
push eax
mov word [ebp - 0x820], dx
call fcn.00426670
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0xc9e0d0
lea ecx, [ebp - 0x820]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x820]
push 0x439f8c
push edx
call fcn.0041eb6e
mov esi, eax
add esp, 8
test esi, esi
jne 0x4082e7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.0041f384
add esp, 0xc
push esi
call fcn.0041f295
add esp, 4
push esi
mov ebx, eax
call fcn.0041ffba
add esp, 4
push esi
call fcn.0041f51b
add esp, 4
cmp ebx, 0x1f4
ja 0x40824e
push 0x206
xor esi, esi
lea ecx, [ebp - 0x416]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x418], ax
call fcn.00426670
add esp, 0xc
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x210], dx
call fcn.00426670
add esp, 0xc
push 0xca0380
lea ecx, [ebp - 0x210]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
push 0xc9e0d0
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.00406480
lea ecx, [ebp - 0x824]
push 0x88
push ecx
mov dword [ebp - 0x824], esi
call fcn.00406480
mov ebx, dword [ebp - 0x824]
lea edi, [ebp - 0x618]
mov esi, ebx
call fcn.00406560
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.004259e0
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.00406530
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 0x40844f
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.00406530
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.0041e7be
mov esp, ebp
pop ebp
ret