Function at 0x418610
Capabilities:
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7168
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
mov edi, ecx
call fcn.00416eb0
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x418657
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0x41867b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
call fcn.00416eb0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x4186a2
mov eax, dword [eax]
push esi
push 0x80
push 4
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0x4186d3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
jne 0x4186f1
mov dword [edi], esi
xor eax, eax
jmp 0x418840
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41881d
mov esi, dword [edi]
test esi, esi
je 0x418715
call fcn.004185b0
test eax, eax
jne 0x41883b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
push ecx
mov dword [edi], 0
call fcn.00416eb0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], ebx
jb 0x41873b
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.00401c60
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], ebx
jb 0x418758
mov edx, dword [ebp - 0x48]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
push 4
mov eax, str..org
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
call fcn.004021b0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00416eb0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x418793
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x14], ebx
jb 0x41879a
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], ebx
jb 0x4187b9
mov edx, dword [ebp - 0x48]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test esi, esi
je 0x4187ed
mov ecx, edi
call fcn.00418610
test eax, eax
je 0x4187ed
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00401ca0
jmp 0x41883b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0x418805
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
xor eax, eax
jmp 0x418840
mov edx, dword [edi]
push esi
lea eax, [ebp - 0x50]
push eax
push 2
lea ecx, [ebp - 0x4c]
push ecx
push edx
mov dword [ebp - 0x4c], 0xfeff
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret