Function at 0x4207d0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1e68
call fcn.00408570
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1e80]
mov ecx, 0x20
mov eax, 0x84
mov word [edi + 0x2c], cx
lea ebx, [edi + 0x2c]
mov word [esp + 0x60], ax
lea ebp, [edi + 0x50]
mov eax, 0x400
mov word [ebp], cx
mov word [edi], cx
mov word [esp + 0x3c], cx
mov word [esp + 0x14], cx
mov dword [edi + 0x74], ecx
xor ecx, ecx
mov word [esp + 0x1150], ax
movzx eax, cl
inc ecx
lea eax, [eax + eax*8]
mov dword [edi + eax*4 + 0x98], 0x20
cmp ecx, 2
jle 0x420821
movzx eax, word [0x431504]
push eax
push 0x431502
push ebx
mov word [edi + 0x24], 0x2c2e
mov dword [edi + 0x28], 3
call sym.downcase_dir.exe__string_vstring_12
movzx eax, word [0x431504]
push eax
push 0x431503
push ebp
call sym.downcase_dir.exe__string_vstring_12
movzx eax, word [0x431504]
lea esi, [edi + 0x74]
push eax
push str.PSIF
push esi
call sym.downcase_dir.exe__string_vstring_12
movzx eax, word [0x431504]
lea ecx, [edi + 0x98]
push eax
push 0x431507
push ecx
call sym.downcase_dir.exe__string_vstring_12
movzx eax, word [0x431504]
lea ecx, [edi + 0xbc]
push eax
push 0x431508
push ecx
call sym.downcase_dir.exe__string_vstring_12
movzx eax, word [0x431504]
lea ecx, [edi + 0xe0]
push eax
push 0x431509
push ecx
call sym.downcase_dir.exe__string_vstring_12
mov esi, dword [esp + 0x1e7c]
push edi
push esi
call sym.downcase_dir.exe__string_copy_8
push edi
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0x1150]
push eax
push esi
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 0x1150]
push eax
call sym.downcase_dir.exe__string_downcase_4
movzx eax, word [0x431510]
push eax
push str..lan
lea eax, [esp + 0x1158]
push eax
call sym.downcase_dir.exe__string_appendn_12
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x1558]
push eax
push 1
push 0x433b50
lea eax, [esp + 0x1160]
push eax
call sym.downcase_dir.exe__file_open_read_env_20
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__file_not_found_4
test al, al
jne 0x42111a
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x420a18
push 1
call fcn.0040bbcc
push eax
push 0xf
push 1
push str.Unable_to_open
call fcn.0040be61
movzx ecx, word [edi + 2]
add esp, 0x14
mov eax, ecx
cmp cx, 0x20
jle 0x4209a5
movsx eax, cx
push 0x433ba4
sub eax, 0x20
push eax
push 0x431528
call fcn.00401cd0
movzx eax, word [edi + 2]
add esp, 0xc
test ax, ax
jle 0x4209bc
cmp ax, 0x20
jge 0x4209b5
movsx esi, ax
jmp 0x4209be
mov esi, 0x20
jmp 0x4209be
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 0x22
push 1
push 0x43152c
call fcn.0040be61
push 0x431550
call fcn.00401cd0
add esp, 0x2c
lea eax, [esp + 0xe8]
push 0
push 0x433ba0
push 0x433b50
push 0x433b50
push eax
call sym.downcase_dir.exe__sys_error_print_20
call sym.downcase_dir.exe__sys_bomb_0
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x155c]
push eax
call sym.downcase_dir.exe__file_read_env_12
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__file_eof_4
test al, al
jne 0x42110d
nop word [eax + eax]
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x420a6f
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.004205e0
lea eax, [esp + 0xe8]
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x420ab2
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.004205e0
lea eax, [esp + 0x3c]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0x38]
push eax
movzx eax, word [0x431514]
push eax
push str.DECIMAL___________DIGITS_GROUP_CHAR_DIGITS_GROUP_SIZE_EXP10_____________MSG_ESC___________MSG_ECMD_PARM_____MSG_PARM_STRING___MSG_PARM_INT______MSG_PARM_FLOAT____E_
lea eax, [esp + 0x48]
push eax
call sym.downcase_dir.exe__string_tkpick_s_16
mov eax, dword [esp + 0x38]
dec eax
cmp eax, 8
ja case.default.0x420ae6
jmp dword [eax*4 + 0x421128]
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 1
jne 0x420bcf
mov al, byte [esp + 0x18]
mov byte [edi + 0x24], al
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 1
jne 0x420bcf
mov al, byte [esp + 0x18]
mov byte [edi + 0x25], al
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
lea eax, [esp + 0xe8]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
call sym.downcase_dir.exe__string_t_int_12
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x420ede
push 1
call fcn.0040bbcc
push eax
push 0xf
push 1
push str.Bad_parameter__
call fcn.0040be61
mov ax, word [esp + 0x2a]
add esp, 0x14
cmp ax, 0x20
jle 0x420c0f
cwde
push 0x433ba8
sub eax, 0x20
push eax
push 0x4315c0
call fcn.00401cd0
mov ax, word [esp + 0x22]
add esp, 0xc
test ax, ax
jle 0x421057
cmp ax, 0x20
jge 0x421050
movsx esi, ax
jmp 0x421059
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
push ebx
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
push ebp
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
lea eax, [edi + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
lea eax, [edi + 0x98]
push eax
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
lea eax, [edi + 0xbc]
push eax
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x420bcf
cmp word [esp + 0x16], 0
jle 0x420bcf
lea eax, [edi + 0xe0]
push eax
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_copy_8
jmp 0x420ede
push 1
call fcn.0040bbcc
push eax
push 0x1b
push 1
push str.Unrecognized_command_name__
call fcn.0040be61
mov ax, word [esp + 0x52]
add esp, 0x14
cmp ax, 0x20
jle 0x420e7f
cwde
push 0x433ba5
sub eax, 0x20
push eax
push 0x431570
call fcn.00401cd0
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x420e96
cmp ax, 0x20
jge 0x420e8f
movsx esi, ax
jmp 0x420e98
mov esi, 0x20
jmp 0x420e98
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 2
push 1
push 0x431574
call fcn.0040be61
push 0x431578
call fcn.00401cd0
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.004205e0
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__string_eos_4
test al, al
jne 0x42101c
push 1
call fcn.0040bbcc
push eax
push 0x12
push 1
push str.Extraneous_token__
call fcn.0040be61
mov ax, word [esp + 0x2a]
add esp, 0x14
cmp ax, 0x20
jle 0x420f4f
cwde
push 0x433ba6
sub eax, 0x20
push eax
push 0x431590
call fcn.00401cd0
mov ax, word [esp + 0x22]
add esp, 0xc
test ax, ax
jle 0x420f66
cmp ax, 0x20
jge 0x420f5f
movsx esi, ax
jmp 0x420f68
mov esi, 0x20
jmp 0x420f68
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 0xf
push 1
push str.__for_command__
call fcn.0040be61
mov ax, word [esp + 0x66]
add esp, 0x28
cmp ax, 0x20
jle 0x420fbd
cwde
push 0x433ba7
sub eax, 0x20
push eax
push 0x4315a4
call fcn.00401cd0
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x420fd4
cmp ax, 0x20
jge 0x420fcd
movsx esi, ax
jmp 0x420fd6
mov esi, 0x20
jmp 0x420fd6
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 2
push 1
push 0x4315a8
call fcn.0040be61
push 0x4315ac
call fcn.00401cd0
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.004205e0
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x155c]
push eax
call sym.downcase_dir.exe__file_read_env_12
lea eax, [esp + 0xe8]
push eax
call sym.downcase_dir.exe__file_eof_4
test al, al
je 0x420a50
jmp 0x42110d
mov esi, 0x20
jmp 0x421059
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 0xe
push 1
push str.__to_command__
call fcn.0040be61
mov ax, word [esp + 0x66]
add esp, 0x28
cmp ax, 0x20
jle 0x4210ae
cwde
push 0x433ba9
sub eax, 0x20
push eax
push 0x4315d4
call fcn.00401cd0
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x4210c5
cmp ax, 0x20
jge 0x4210be
movsx esi, ax
jmp 0x4210c7
mov esi, 0x20
jmp 0x4210c7
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 2
push 1
push 0x4315d8
call fcn.0040be61
push 0x4315dc
call fcn.00401cd0
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.004205e0
lea eax, [esp + 0x1554]
push eax
call sym.downcase_dir.exe__file_close_4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e68
ret 8