Function at 0x40bfa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], 0
mov eax, dword [0x526ad4]
shl eax, 0xc
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.00412420
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 1
jmp 0x40bfef
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jge 0x40c31b
push 0x526ad8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.00418500
add esp, 0xc
test eax, eax
je 0x40c0e4
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jl 0x40c037
jmp 0x40c31b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx*4], 0
je 0x40c077
mov eax, 0x526adc
test eax, eax
je 0x40c077
push 0x526ae0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40c077
mov dword [ebp - 8], 0x53d440
mov dword [ebp - 0x1c], str.stdin
jmp 0x40c0df
push 0x526aec
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.0043b3d0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c0d3
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push str.Cant_open__s:
push 0x53d480
call fcn.0050c6ac
add esp, 0xc
push 0x53f678
call fcn.0050ddf1
add esp, 4
call fcn.0040b2f3
push 1
call fcn.0050cf49
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x1c], ecx
jmp 0x40c316
push str._odecimal
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x53f65c]
push edx
call fcn.00418500
add esp, 0xc
test eax, eax
je 0x40c113
mov eax, dword [ebp - 4]
or al, 0x20
mov dword [ebp - 4], eax
jmp 0x40c316
push str._help
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.00418500
add esp, 0xc
test eax, eax
je 0x40c141
call fcn.0040b2f3
push 0
call fcn.0050cf49
push str._maxlen
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x53f65c]
push edx
call fcn.00418500
add esp, 0xc
test eax, eax
je 0x40c1d9
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 8]
jl 0x40c180
jmp 0x40c31b
lea edx, [ebp - 0x28]
push edx
push 0x526b1c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0050c678
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x40c1bf
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push str.Error:__maxlen__s_Invalid_line_length_n
push 0x53d480
call fcn.0050c6ac
add esp, 0xc
jmp 0x40c1d4
mov eax, dword [ebp - 0x28]
push eax
push 0x48
mov ecx, dword [0x53f65c]
push ecx
call fcn.0041e4a0
add esp, 0xc
jmp 0x40c316
push str._overfmt
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x53f65c]
push edx
call fcn.00418500
add esp, 0xc
test eax, eax
je 0x40c2ef
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 8]
jl 0x40c215
jmp 0x40c31b
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
movsx edx, byte [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
sub eax, 0x32
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 4
ja case.default.0x40c23a
mov ecx, dword [ebp - 0x38]
jmp dword [ecx*4 + 0x40c4c4]
push 0x526b54
push 0x46
mov edx, dword [0x53f65c]
push edx
call fcn.0041e4a0
add esp, 0xc
jmp case.default.0x40c23a
push 0x526b5c
push 0x46
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
jmp case.default.0x40c23a
push 0x526b64
push 0x46
mov ecx, dword [0x53f65c]
push ecx
call fcn.0041e4a0
add esp, 0xc
jmp case.default.0x40c23a
push 3
push 0x526b6c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0050da00
add esp, 0xc
test eax, eax
jne 0x40c2c0
push 0x526b70
push 0x46
mov edx, dword [0x53f65c]
push edx
call fcn.0041e4a0
add esp, 0xc
jmp 0x40c2d5
push 0x526b78
push 0x46
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
jmp case.default.0x40c23a
push 0x526b80
push 0x46
mov ecx, dword [0x53f65c]
push ecx
call fcn.0041e4a0
add esp, 0xc
jmp 0x40c316
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push str.Unknown_argument__s_n
mov edx, dword [0x589ae4]
push edx
call fcn.0050c6ac
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x40bfe6
cmp dword [ebp - 0x18], 0
je 0x40c32d
call fcn.0040b2f3
push 1
call fcn.0050cf49
cmp dword [ebp - 8], 0
jne 0x40c344
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040c5d3
add esp, 4
jmp 0x40c401
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
push eax
push 0x1000
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0050ca41
add esp, 0xc
test eax, eax
je 0x40c401
mov edx, dword [ebp - 0x10]
push edx
call fcn.0050c510
add esp, 4
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x526ad4]
jl 0x40c3fc
mov ecx, dword [0x526ad4]
shl ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
shl edx, 0xc
push edx
mov eax, dword [0x53f65c]
push eax
call fcn.00412420
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [0x526ad4]
shl ecx, 0xc
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0050d2a0
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [0x526ad4], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
add eax, edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412654
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
jmp 0x40c351
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40c424
push str.No_input__exiting_n
push 0x53d480
call fcn.0050c6ac
add esp, 8
push 1
call fcn.0050cf49
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x526858
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.00420ef0
add esp, 0x1c
test eax, eax
je 0x40c477
mov edx, dword [ebp - 0xc]
push edx
push str.Errors_found:__s_n
push 0x53d480
call fcn.0050c6ac
add esp, 0xc
mov eax, dword [0x53f65c]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.0050cf49
cmp dword [ebp - 0xc], 0
je 0x40c49a
push 0x53d480
mov edx, dword [ebp - 0xc]
push edx
call fcn.0050dda3
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412654
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040c4d8
add esp, 4
mov edx, dword [0x589ae4]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0050dda3
add esp, 8
push 0
call fcn.0050cf49
mov esp, ebp
pop ebp
ret