Function at 0x4017e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x41b004]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0xa00000
call fcn.004067d3
mov ebx, eax
mov dword [esp + 0x18], ebx
add esp, 4
push 0
lea eax, [esp + 0x70]
push eax
push ebx
call fcn.0040a4b5
add esp, 4
push eax
push ebx
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a2b
cmp dword [esp + 0x6c], 0
je 0x401a2b
push 0xa
push ebx
call fcn.00407860
mov ecx, dword [esp + 0x74]
add esp, 8
lea edi, [eax + 1]
push 0
push 0
sub ecx, edi
add ecx, ebx
push ecx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004067d3
mov ecx, dword [esp + 0x70]
add esp, 4
mov ebx, eax
sub ecx, edi
add ecx, dword [esp + 0x14]
push esi
push ebx
push ecx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push ebx
call fcn.0040a4b5
add esp, 4
shr eax, 1
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.004067d3
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], edi
push 0
push 0
push esi
push edi
push ebx
call fcn.0040a4b5
add esp, 4
shr eax, 1
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.004065d1
mov ebx, dword [esp + 0x18]
add esp, 4
push str.download:_STC8_n
push ebx
call fcn.004075f0
add esp, 8
cmp ebx, eax
jne 0x401936
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00401f80
push edi
call fcn.004065d1
jmp 0x401821
push str.download:_STC15_n
push ebx
call fcn.004075f0
add esp, 8
cmp ebx, eax
jne 0x40195e
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004036f0
push edi
call fcn.004065d1
jmp 0x401821
push str.download:IO3.0_edu_n
push ebx
call fcn.004075f0
add esp, 8
cmp ebx, eax
jne 0x401986
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00404e60
push edi
call fcn.004065d1
jmp 0x401821
push str.convert_n
push ebx
call fcn.004075f0
add esp, 8
cmp ebx, eax
jne 0x401a20
push edi
call fcn.0040a4b5
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [eax + eax]
push ecx
call fcn.004067d3
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [esp + 0x18], esi
jle 0x4019f7
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [esi + ebx]
lea eax, [esp + 0x70]
push ecx
push 0x419054
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [esp + 0x7c]
add esp, 0xc
mov byte [edi + esi*2], al
movzx eax, byte [esp + 0x71]
mov byte [edi + esi*2 + 1], al
inc esi
cmp esi, dword [esp + 0x18]
jl 0x4019c3
mov ebx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x70]
push eax
push edi
call fcn.0040a4b5
add esp, 4
push eax
push edi
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004065d1
mov edi, dword [esp + 0x20]
add esp, 4
push edi
call fcn.004065d1
jmp 0x401821
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401824