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

Disassembly:
push 8
push 0x2f8
mov eax, 0x4345f0
call fcn.004343a8
mov dword [ebp - 0x2f8], edx
mov esi, ecx
mov dword [ebp - 0x2e4], esi
mov edi, dword [0x44acf0]
mov dword [ebp - 0x2e0], 0x19000
add edi, 0x13d0
jmp 0x401f9b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push esi
mov dword [ebp - 0x224], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x2f0], eax
test eax, eax
je 0x401f8f
mov ecx, dword [0x44acf0]
add ecx, 0x240
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x224]
push dword [ebp - 0x2f0]
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
je 0x401fa4
mov esi, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x224]
lea edi, [edi + eax*2]
add edi, 2
xor eax, eax
cmp word [edi], ax
jne 0x401f3f
jmp 0x401fb7
mov eax, dword [0x44acf0]
mov eax, dword [eax + 0x17d4]
mov dword [ebp - 0x2e0], eax
xor eax, eax
mov edi, dword [ebp - 0x2e4]
push eax
push 0x80
push 3
push eax
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2f0], esi
cmp esi, 0xffffffff
je 0x4023c2
lea eax, [ebp - 0x2d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 2
xor eax, eax
push eax
push 0xffffffffffffffff
push 0xfffffdf8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [ebp - 0x224]
push eax
push 8
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
lea eax, [ebp - 0x224]
push eax
push 0x200
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x44acf0]
xor eax, eax
mov ecx, eax
lea eax, [ebp - 0x220]
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4 + 0x40]
jne 0x4023d8
inc ecx
cmp ecx, 0x80
jne 0x402044
push 2
xor eax, eax
push eax
push 0xffffffffffffffff
push 0xfffffdf8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
xorps xmm0, xmm0
push eax
push eax
movlpd qword [ebp - 0x230], xmm0
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, dword [0x44acf0]
xor ecx, ecx
add esi, 0x3d0
mov dword [ebp - 0x2f4], ecx
cmp word [esi], cx
jmp 0x402116
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
mov dword [ebp - 0x2e8], eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x402105
mov ecx, dword [0x44acf0]
add ecx, 0x240
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x2e8]
push dword [ebp - 0x22c]
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
je 0x402120
mov esi, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x2e8]
lea esi, [esi + eax*2]
xor eax, eax
add esi, 2
cmp word [esi], ax
mov dword [ebp - 0x2ec], esi
jne 0x4020b5
jmp 0x40212a
mov dword [ebp - 0x2f4], 1
xor eax, eax
lea edi, [ebp - 0x23c]
stosd dword es:[edi], eax
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x44acf0]
add eax, 0x17d0
push eax
lea eax, [ebp - 0x304]
push str.Rounds
push eax
call fcn.00402e05
mov esi, eax
mov dword [ebp - 0x2e8], esi
xor eax, eax
mov dword [ebp - 4], eax
mov al, byte [esi + 8]
push 0x14
mov byte [ebp - 0x2d9], al
call fcn.004032ac
mov edx, eax
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x2ec], edx
mov edi, edx
mov dword [ebp - 0x22c], edx
lea ecx, [edx + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov al, byte [ebp - 0x2d9]
mov byte [edx + 8], al
xor eax, eax
mov byte [edx + 9], al
mov dword [edx + 4], 0x442f4c
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
mov dword [edx], vtable.CryptoPP::AlgorithmParametersTemplate_unsigned_char_const__.0
mov dword [edx + 0x10], eax
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [esi + 4]
push eax
mov dword [esi + 4], edi
call fcn.00402de9
push dword [ebp - 0x2ec]
lea ecx, [esi + 4]
mov dword [ebp - 0x22c], edi
call fcn.00402de9
mov al, byte [ebp - 0x2d9]
mov ecx, esi
mov byte [ecx + 8], al
xor eax, eax
push ecx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], al
call fcn.00407160
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 4
call fcn.00402da9
xor eax, eax
mov dword [ebp - method.CryptoPP::NameValuePairs.virtual_0], vtable.CryptoPP::NameValuePairs.0
push 0x90
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.004197a0
add esp, 0xc
lea ecx, [ebp - 0x2cc]
push 1
call fcn.00404890
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00404890
or dword [ebp - 0x2c0], 0xffffffff
lea ecx, [ebp - 0x2a8]
xor eax, eax
mov dword [ebp - 0x258], 0x3fffffff
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2a8]
neg eax
mov dword [ebp - 0x254], 0x10
and eax, 0xf
mov byte [ebp - 0x25f], 1
add eax, ecx
mov dword [ebp - 0x2d0], 0x44318c
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x2cc], 0x44310c
mov dword [ebp - 0x2c8], 0x4431d4
mov dword [ebp - 0x2b0], 0x4430a4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 5
push eax
push 0x20
push dword [ebp - 0x2f8]
lea ecx, [ebp - 0x2d0]
call fcn.00405c20
push dword [ebp - 0x2e0]
call fcn.00425390
mov esi, dword [ebp - 0x2f0]
mov edi, eax
pop ecx
test edi, edi
je 0x40235a
mov eax, dword [ebp - 0x2e0]
push 0
lea ecx, [ebp - 0x224]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x224]
lea ecx, [ebp - 0x2cc]
push edi
push edi
call fcn.00406d40
mov eax, dword [ebp - 0x224]
push 1
neg eax
push 0
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x224]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x2f4], 0
je 0x402353
mov eax, dword [ebp - 0x2e0]
cmp dword [ebp - 0x224], eax
je 0x4022e9
push edi
call fcn.00425375
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffe
call fcn.00425390
mov edi, dword [ebp - 0x2e4]
mov esi, eax
pop ecx
test esi, esi
je 0x4023ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x44acf0]
add ecx, 0x240
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4023a5
push esi
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
call fcn.00425375
pop ecx
lea ecx, [ebp - 0x2d0]
call fcn.00402844
lea ecx, [ebp - 0x238]
call fcn.00402da9
push edi
push 0x443048
call fcn.00401678
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.00434383
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4023cf