Function at 0x406ab0
Capabilities:
Clear file content
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11cc
call fcn.00410ec0
mov eax, dword [0x4120c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10000
call fcn.00410b30
add esp, 4
mov dword [ebp - 0x119c], eax
cmp dword [ebp - 0x119c], 0
je 0x407123
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x119c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x119c]
lea edx, [ecx + eax*2 - 0xc]
mov eax, 2
imul ecx, eax, 0
xor eax, eax
mov word [edx + ecx], ax
push 9
mov ecx, dword [ebp - 0x119c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1198], xmm0
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 0x119c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x118c], eax
mov ecx, dword [ebp - 0x119c]
push ecx
call fcn.00410b10
add esp, 4
cmp dword [ebp - 0x118c], 0xffffffff
je 0x407123
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
cmp dword [ebp - 0x28], 0
jl 0x407115
jg 0x406ba1
cmp dword [ebp - 0x2c], 0x48
jbe 0x407115
push 0x100000
call fcn.00410b30
add esp, 4
mov dword [ebp - 0x1190], eax
cmp dword [ebp - 0x1190], 0
je 0x407115
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x48
mov edx, dword [ebp - 0x28]
sbb edx, 0
mov dword [ebp - 0x1198], ecx
mov dword [ebp - 0x1194], edx
push 0
push 0
mov eax, dword [ebp - 0x1194]
push eax
mov ecx, dword [ebp - 0x1198]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x30]
push eax
push 0x48
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
cmp dword [ebp - 0x54], 0x756f6863
jne 0x407106
cmp dword [ebp - 0x50], 0x6420676e
jne 0x407106
cmp dword [ebp - 0x4c], 0x20676e6f
jne 0x407106
cmp dword [ebp - 0x48], 0x6b6f6f6c
jne 0x407106
cmp dword [ebp - 0x44], 0x696c2073
jne 0x407106
cmp dword [ebp - 0x40], 0x6820656b
jne 0x407106
cmp dword [ebp - 0x3c], 0x6420746f
jne 0x407106
cmp dword [ebp - 0x38], 0x2121676f
jne 0x407106
mov eax, dword [ebp - 0x2c]
sub eax, 0x48
mov ecx, dword [ebp - 0x28]
sbb ecx, 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x7c]
push edx
push 0x41207c
lea eax, [ebp - 0x24]
push eax
call fcn.00401fd0
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
push 0x20
lea edx, [ebp - 0x24]
push edx
call fcn.0040d5b0
add esp, 0xc
push 0x40
lea eax, [ebp - 0xbc]
push eax
call fcn.0040cee0
add esp, 8
cmp dword [ebp - 0x5c], eax
jne 0x4070f2
push 0
push 0
mov ecx, dword [ebp - 0x1194]
push ecx
mov edx, dword [ebp - 0x1198]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x100
push 0x100
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0x1188]
push eax
call fcn.0040c7c0
add esp, 0x10
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x1188]
push edx
call fcn.0040c850
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x1198], xmm0
push 0
push 0
mov eax, dword [ebp - 0x1194]
push eax
mov ecx, dword [ebp - 0x1198]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop
cmp dword [ebp - 0x28], 0
jl 0x406eb2
jg 0x406d76
cmp dword [ebp - 0x2c], 0x1400000
jbe 0x406eb2
push 0
push 0xa00000
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00410e10
mov dword [ebp - 0x11bc], eax
mov dword [ebp - 0x11b8], edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x11a4], xmm0
jmp 0x406dc1
mov edx, dword [ebp - 0x11a4]
add edx, 1
mov eax, dword [ebp - 0x11a0]
adc eax, 0
mov dword [ebp - 0x11a4], edx
mov dword [ebp - 0x11a0], eax
mov ecx, dword [ebp - 0x11a0]
cmp ecx, dword [ebp - 0x11b8]
jg 0x406ead
jl 0x406de7
mov edx, dword [ebp - 0x11a4]
cmp edx, dword [ebp - 0x11bc]
jae 0x406ead
push 0
lea eax, [ebp - 0x30]
push eax
push 0x100000
mov ecx, dword [ebp - 0x1190]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1190]
push ecx
mov edx, dword [ebp - 0x1190]
push edx
lea eax, [ebp - 0x1188]
push eax
push 0
call fcn.0040cbb0
add esp, 0x14
push 0
push 0
mov ecx, dword [ebp - 0x1194]
push ecx
mov edx, dword [ebp - 0x1198]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x100000
mov edx, dword [ebp - 0x1190]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x1198]
add ecx, 0xa00000
mov edx, dword [ebp - 0x1194]
adc edx, 0
mov dword [ebp - 0x1198], ecx
mov dword [ebp - 0x1194], edx
push 0
push 0
mov eax, dword [ebp - 0x1194]
push eax
mov ecx, dword [ebp - 0x1198]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop
jmp 0x406da3
jmp 0x4070eb
cmp dword [ebp - 0x28], 0
jl 0x406ffc
jg 0x406ecb
cmp dword [ebp - 0x2c], 0x500000
jbe 0x406ffc
push 0
push 3
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00410e10
mov dword [ebp - 0x11c4], eax
mov dword [ebp - 0x11c0], edx
xorps xmm0, xmm0
movlpd qword [ebp - 0x11ac], xmm0
jmp 0x406f13
mov edx, dword [ebp - 0x11ac]
add edx, 1
mov eax, dword [ebp - 0x11a8]
adc eax, 0
mov dword [ebp - 0x11ac], edx
mov dword [ebp - 0x11a8], eax
cmp dword [ebp - 0x11a8], 0
jg 0x406ff7
jl 0x406f2f
cmp dword [ebp - 0x11ac], 3
jae 0x406ff7
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0x100000
mov edx, dword [ebp - 0x1190]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x1190]
push edx
mov eax, dword [ebp - 0x1190]
push eax
lea ecx, [ebp - 0x1188]
push ecx
push 0
call fcn.0040cbb0
add esp, 0x14
push 0
push 0
mov edx, dword [ebp - 0x1194]
push edx
mov eax, dword [ebp - 0x1198]
push eax
mov ecx, dword [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1190]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1198]
add eax, dword [ebp - 0x11c4]
mov ecx, dword [ebp - 0x1194]
adc ecx, dword [ebp - 0x11c0]
mov dword [ebp - 0x1198], eax
mov dword [ebp - 0x1194], ecx
push 0
push 0
mov edx, dword [ebp - 0x1194]
push edx
mov eax, dword [ebp - 0x1198]
push eax
mov ecx, dword [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop
jmp 0x406ef5
jmp 0x4070eb
cmp dword [ebp - 0x28], 0
jl 0x4070eb
jg 0x407012
cmp dword [ebp - 0x2c], 0
jbe 0x4070eb
cmp dword [ebp - 0x28], 0
jl 0x40703f
jg 0x407020
cmp dword [ebp - 0x2c], 0x40
jbe 0x40703f
push 0
push 0xa
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00410e10
mov dword [ebp - 0x11b4], eax
mov dword [ebp - 0x11b0], edx
jmp 0x407051
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x11b4], ecx
mov dword [ebp - 0x11b0], edx
mov eax, dword [ebp - 0x11b4]
mov ecx, dword [ebp - 0x11b0]
mov dword [ebp - 0x11cc], eax
mov dword [ebp - 0x11c8], ecx
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x11cc]
push eax
mov ecx, dword [ebp - 0x1190]
push ecx
mov edx, dword [ebp - 0x118c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1190]
push ecx
mov edx, dword [ebp - 0x1190]
push edx
lea eax, [ebp - 0x1188]
push eax
push 0
call fcn.0040cbb0
add esp, 0x14
push 0
push 0
mov ecx, dword [ebp - 0x1194]
push ecx
mov edx, dword [ebp - 0x1198]
push edx
mov eax, dword [ebp - 0x118c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1190]
push eax
mov ecx, dword [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
jmp 0x406b79
push 0
push 0x4012d4
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
nop
mov eax, dword [ebp - 0x1190]
push eax
call fcn.00410b10
add esp, 4
mov ecx, dword [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410d47
mov esp, ebp
pop ebp
ret