Function at 0x41ed30
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1e68
call fcn.00406fb0
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 0x41ed81
movzx eax, word [0x42efdc]
push eax
push 0x42efda
push ebx
mov word [edi + 0x24], 0x2c2e
mov dword [edi + 0x28], 3
call sym.slink.exe__string_vstring_12
movzx eax, word [0x42efdc]
push eax
push 0x42efdb
push ebp
call sym.slink.exe__string_vstring_12
movzx eax, word [0x42efdc]
lea esi, [edi + 0x74]
push eax
push str.PSIF
push esi
call sym.slink.exe__string_vstring_12
movzx eax, word [0x42efdc]
lea ecx, [edi + 0x98]
push eax
push 0x42efdf
push ecx
call sym.slink.exe__string_vstring_12
movzx eax, word [0x42efdc]
lea ecx, [edi + 0xbc]
push eax
push 0x42efe0
push ecx
call sym.slink.exe__string_vstring_12
movzx eax, word [0x42efdc]
lea ecx, [edi + 0xe0]
push eax
push 0x42efe1
push ecx
call sym.slink.exe__string_vstring_12
mov esi, dword [esp + 0x1e7c]
push edi
push esi
call sym.slink.exe__string_copy_8
push edi
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0x1150]
push eax
push esi
call sym.slink.exe__string_copy_8
lea eax, [esp + 0x1150]
push eax
call sym.slink.exe__string_downcase_4
movzx eax, word [0x42efe8]
push eax
push str..lan
lea eax, [esp + 0x1158]
push eax
call sym.slink.exe__string_appendn_12
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x1558]
push eax
push 1
push 0x431618
lea eax, [esp + 0x1160]
push eax
call sym.slink.exe__file_open_read_env_20
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__file_not_found_4
test al, al
jne 0x41f67a
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x41ef78
push 1
call fcn.0040a3ac
push eax
push 0xf
push 1
push str.Unable_to_open
call fcn.0040a641
movzx ecx, word [edi + 2]
add esp, 0x14
mov eax, ecx
cmp cx, 0x20
jle 0x41ef05
movsx eax, cx
push 0x43166c
sub eax, 0x20
push eax
push 0x42f000
call fcn.00403a60
movzx eax, word [edi + 2]
add esp, 0xc
test ax, ax
jle 0x41ef1c
cmp ax, 0x20
jge 0x41ef15
movsx esi, ax
jmp 0x41ef1e
mov esi, 0x20
jmp 0x41ef1e
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 0x22
push 1
push 0x42f004
call fcn.0040a641
push 0x42f028
call fcn.00403a60
add esp, 0x2c
lea eax, [esp + 0xe8]
push 0
push 0x431668
push 0x431618
push 0x431618
push eax
call sym.slink.exe__sys_error_print_20
call sym.slink.exe__sys_bomb_0
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x155c]
push eax
call sym.slink.exe__file_read_env_12
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__file_eof_4
test al, al
jne 0x41f66d
nop word [eax + eax]
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x41efcf
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.0041eb40
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x41f012
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.0041eb40
lea eax, [esp + 0x3c]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0x38]
push eax
movzx eax, word [0x42efec]
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.slink.exe__string_tkpick_s_16
mov eax, dword [esp + 0x38]
dec eax
cmp eax, 8
ja case.default.0x41f046
jmp dword [eax*4 + 0x41f688]
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 1
jne 0x41f12f
mov al, byte [esp + 0x18]
mov byte [edi + 0x24], al
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 1
jne 0x41f12f
mov al, byte [esp + 0x18]
mov byte [edi + 0x25], al
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
lea eax, [esp + 0xe8]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
call sym.slink.exe__string_t_int_12
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
je 0x41f43e
push 1
call fcn.0040a3ac
push eax
push 0xf
push 1
push str.Bad_parameter__
call fcn.0040a641
mov ax, word [esp + 0x2a]
add esp, 0x14
cmp ax, 0x20
jle 0x41f16f
cwde
push 0x431670
sub eax, 0x20
push eax
push 0x42f098
call fcn.00403a60
mov ax, word [esp + 0x22]
add esp, 0xc
test ax, ax
jle 0x41f5b7
cmp ax, 0x20
jge 0x41f5b0
movsx esi, ax
jmp 0x41f5b9
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
push ebx
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
push ebp
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
lea eax, [edi + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
lea eax, [edi + 0x98]
push eax
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
lea eax, [edi + 0xbc]
push eax
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
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.slink.exe__string_token_16
lea eax, [esp + 0x14]
push eax
call sym.slink.exe__string_upcase_4
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__sys_error_4
test al, al
jne 0x41f12f
cmp word [esp + 0x16], 0
jle 0x41f12f
lea eax, [edi + 0xe0]
push eax
lea eax, [esp + 0x18]
push eax
call sym.slink.exe__string_copy_8
jmp 0x41f43e
push 1
call fcn.0040a3ac
push eax
push 0x1b
push 1
push str.Unrecognized_command_name__
call fcn.0040a641
mov ax, word [esp + 0x52]
add esp, 0x14
cmp ax, 0x20
jle 0x41f3df
cwde
push 0x43166d
sub eax, 0x20
push eax
push 0x42f048
call fcn.00403a60
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x41f3f6
cmp ax, 0x20
jge 0x41f3ef
movsx esi, ax
jmp 0x41f3f8
mov esi, 0x20
jmp 0x41f3f8
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 2
push 1
push 0x42f04c
call fcn.0040a641
push 0x42f050
call fcn.00403a60
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.0041eb40
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.slink.exe__string_token_16
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__string_eos_4
test al, al
jne 0x41f57c
push 1
call fcn.0040a3ac
push eax
push 0x12
push 1
push str.Extraneous_token__
call fcn.0040a641
mov ax, word [esp + 0x2a]
add esp, 0x14
cmp ax, 0x20
jle 0x41f4af
cwde
push 0x43166e
sub eax, 0x20
push eax
push 0x42f068
call fcn.00403a60
mov ax, word [esp + 0x22]
add esp, 0xc
test ax, ax
jle 0x41f4c6
cmp ax, 0x20
jge 0x41f4bf
movsx esi, ax
jmp 0x41f4c8
mov esi, 0x20
jmp 0x41f4c8
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 0xf
push 1
push str.__for_command__
call fcn.0040a641
mov ax, word [esp + 0x66]
add esp, 0x28
cmp ax, 0x20
jle 0x41f51d
cwde
push 0x43166f
sub eax, 0x20
push eax
push 0x42f07c
call fcn.00403a60
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x41f534
cmp ax, 0x20
jge 0x41f52d
movsx esi, ax
jmp 0x41f536
mov esi, 0x20
jmp 0x41f536
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 2
push 1
push 0x42f080
call fcn.0040a641
push 0x42f084
call fcn.00403a60
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.0041eb40
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x155c]
push eax
call sym.slink.exe__file_read_env_12
lea eax, [esp + 0xe8]
push eax
call sym.slink.exe__file_eof_4
test al, al
je 0x41efb0
jmp 0x41f66d
mov esi, 0x20
jmp 0x41f5b9
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 0xe
push 1
push str.__to_command__
call fcn.0040a641
mov ax, word [esp + 0x66]
add esp, 0x28
cmp ax, 0x20
jle 0x41f60e
cwde
push 0x431671
sub eax, 0x20
push eax
push 0x42f0ac
call fcn.00403a60
mov ax, word [esp + 0x4a]
add esp, 0xc
test ax, ax
jle 0x41f625
cmp ax, 0x20
jge 0x41f61e
movsx esi, ax
jmp 0x41f627
mov esi, 0x20
jmp 0x41f627
xor esi, esi
push 1
call fcn.0040a3ac
push eax
push esi
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.0040a641
push 1
call fcn.0040a3ac
push eax
push 2
push 1
push 0x42f0b0
call fcn.0040a641
push 0x42f0b4
call fcn.00403a60
add esp, 0x2c
lea eax, [esp + 0x1554]
push eax
push edi
call fcn.0041eb40
lea eax, [esp + 0x1554]
push eax
call sym.slink.exe__file_close_4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e68
ret 8