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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x447044]
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.004272d0
add esp, 0xc
cmp dword [0x1086de4], 1
je 0x408bbe
mov eax, 0x10828e8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b94
sub eax, edx
sar eax, 1
cmp eax, 7
jb 0x408bbe
cmp dword [0x108478c], 0
je 0x408bd4
push 0x43a9cc
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.0041f53e
mov esp, ebp
pop ebp
ret
push 0x43aa08
call fcn.004042f0
add esp, 4
lea ecx, [ebp - 0x618]
push ecx
push 0x10828e8
call fcn.0040b5f0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x81e]
push eax
mov word [ebp - 0x820], dx
call fcn.004272d0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x1088058
lea ecx, [ebp - 0x820]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x820]
push 0x43aa6c
push edx
call fcn.0041f8ee
mov esi, eax
add esp, 8
test esi, esi
jne 0x408c57
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f53e
mov esp, ebp
pop ebp
ret
push 2
push 0
push esi
call fcn.00420104
add esp, 0xc
push esi
call fcn.00420015
add esp, 4
push esi
mov ebx, eax
call fcn.00420d3a
add esp, 4
push esi
call fcn.0042029b
add esp, 4
cmp ebx, 0x1f4
ja 0x408bbe
push 0x206
xor esi, esi
lea ecx, [ebp - 0x416]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x418], ax
call fcn.004272d0
add esp, 0xc
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x210], dx
call fcn.004272d0
add esp, 0xc
push 0x108a308
lea ecx, [ebp - 0x210]
push str._sPolicySystemPolicyContainer.opt
push ecx
call edi
add esp, 0xc
push 0x1088058
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.00426640
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 0x408dbf
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.0041f53e
mov esp, ebp
pop ebp
ret