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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40294a
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 8], 1
push ebx
push esi
test ecx, ecx
jg 0x402724
jl 0x4026f6
cmp eax, 0x100000
ja 0x402701
mov ebx, eax
test ebx, ebx
jne 0x402730
mov dword [ebp - 4], eax
jmp 0x402747
test ecx, ecx
jg 0x402724
jl 0x40272b
cmp eax, 0xa00000
jbe 0x40272b
test ecx, ecx
jg 0x402724
jl 0x40271b
cmp eax, 0x6400000
ja 0x402724
mov dword [ebp - 8], 5
jmp 0x40272b
mov dword [ebp - 8], 0x64
mov ebx, 0x100000
push ebx
call fcn.00416e4b
push ebx
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00413b10
add esp, 0x10
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402750
sub ecx, edx
mov edx, dword [0x43a888]
sar ecx, 1
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402770
sub edx, esi
sar edx, 1
lea eax, [edx + ecx]
lea eax, [eax*2 + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x402797
xor esi, esi
mov dword [ebp - 0xc], esi
jmp 0x4027b0
push eax
call fcn.00416e4b
push dword [ebp - 0x10]
mov esi, eax
push 0
push esi
mov dword [ebp - 0xc], esi
call fcn.00413b10
add esp, 0x10
mov edx, esi
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4027c0
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4027d3
mov eax, dword [0x42934c]
mov dword [edi], eax
mov edx, dword [0x43a888]
mov ecx, edx
mov dword [ebp - 0x10], ecx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4027f1
sub edx, ecx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402801
mov esi, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebp - 0xc]
push 9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x402948
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402948
push 0
push dword [ebp - 8]
mov dword [ebp - 0x10], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00412800
mov ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
xor eax, eax
push ecx
push dword [ebp - 0x18]
cdq
push edx
push eax
call fcn.004128b0
mov esi, eax
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push 0
push eax
push 1
push dword [0x43a878]
call fcn.004045f0
add esp, 0x18
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jl 0x402887
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x200
push dword [0x43a874]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.004012d0
add esp, 4
test esi, esi
je 0x402948
push esi
call fcn.00416e46
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret