Function at 0x476e70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x24], 0
mov eax, dword [0x565b4c]
shl eax, 0xc
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.00499500
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 1
jmp 0x476ebf
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jge 0x4771fc
push 0x565b50
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.00496820
add esp, 0xc
test eax, eax
je 0x476fbb
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x476f07
jmp 0x4771fc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp dword [edx + ecx*4], 0
je 0x476f48
mov eax, 0x565b54
test eax, eax
je 0x476f48
push 0x565b58
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x476f48
call fcn.00463796
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.stdin
jmp 0x476fb6
push 0x565b64
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.00492bb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476faa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push str.Cant_open__s:
call fcn.00463796
add eax, 0x40
push eax
call fcn.00463647
add esp, 0xc
push 0x58a358
call fcn.004640b2
add esp, 4
call fcn.00475140
push 1
call fcn.0040153c
jmp 0x476fb6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
jmp 0x4771f7
push str._odecimal
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x589f34]
push edx
call fcn.00496820
add esp, 0xc
test eax, eax
je 0x476feb
mov eax, dword [ebp - 0x10]
or eax, 0x20
mov dword [ebp - 0x10], eax
jmp 0x4771f7
push 0x565b84
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.00496820
add esp, 0xc
test eax, eax
je 0x47701e
call fcn.00475140
push 0
call fcn.0040153c
jmp 0x4771f7
push str._maxlen
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x589f34]
push edx
call fcn.00496820
add esp, 0xc
test eax, eax
je 0x4770ba
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jl 0x47705d
jmp 0x4771fc
lea edx, [ebp - 0x28]
push edx
push 0x565b94
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00464070
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x4770a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push str.Error:__maxlen__s_Invalid_line_length_n
call fcn.00463796
add eax, 0x40
push eax
call fcn.00463647
add esp, 0xc
jmp 0x4770b5
mov eax, dword [ebp - 0x28]
push eax
push 0x48
mov ecx, dword [0x589f34]
push ecx
call fcn.004893b0
add esp, 0xc
jmp 0x4771f7
push str._overfmt
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [0x589f34]
push edx
call fcn.00496820
add esp, 0xc
test eax, eax
je 0x4771d0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jl 0x4770f6
jmp 0x4771fc
mov edx, dword [ebp - 0xc]
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.0x47711b
mov ecx, dword [ebp - 0x38]
jmp dword [ecx*4 + 0x4773b0]
push 0x565bcc
push 0x46
mov edx, dword [0x589f34]
push edx
call fcn.004893b0
add esp, 0xc
jmp case.default.0x47711b
push 0x565bd4
push 0x46
mov eax, dword [0x589f34]
push eax
call fcn.004893b0
add esp, 0xc
jmp case.default.0x47711b
push 0x565bdc
push 0x46
mov ecx, dword [0x589f34]
push ecx
call fcn.004893b0
add esp, 0xc
jmp case.default.0x47711b
push 3
push 0x565be4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00408106
add esp, 0xc
test eax, eax
jne 0x4771a1
push 0x565be8
push 0x46
mov edx, dword [0x589f34]
push edx
call fcn.004893b0
add esp, 0xc
jmp 0x4771b6
push 0x565bf0
push 0x46
mov eax, dword [0x589f34]
push eax
call fcn.004893b0
add esp, 0xc
jmp case.default.0x47711b
push 0x565bf8
push 0x46
mov ecx, dword [0x589f34]
push ecx
call fcn.004893b0
add esp, 0xc
jmp 0x4771f7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push str.Unknown_argument__s_n
mov edx, dword [0x5d3d1c]
push edx
call fcn.00463647
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x476eb6
cmp dword [ebp - 0x24], 0
je 0x47720e
call fcn.00475140
push 1
call fcn.0040153c
cmp dword [ebp - 4], 0
jne 0x477225
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004774d0
add esp, 4
jmp 0x4772df
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
push eax
push 0x1000
mov ecx, dword [ebp - 8]
push ecx
call fcn.00463ab8
add esp, 0xc
test eax, eax
je 0x4772df
mov edx, dword [ebp - 8]
push edx
call fcn.004035e0
add esp, 4
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x565b4c]
jl 0x4772da
mov edx, dword [0x565b4c]
shl edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
shl eax, 0xc
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.00499500
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [0x565b4c]
shl edx, 0xc
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00404070
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov dword [0x565b4c], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00499750
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
jmp 0x477232
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x477306
push str.No_input__exiting_n
call fcn.00463796
add eax, 0x40
push eax
call fcn.00463647
add esp, 8
push 1
call fcn.0040153c
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5658d0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x589f34]
push ecx
call fcn.0049a190
add esp, 0x1c
test eax, eax
je 0x47735f
mov edx, dword [ebp - 0x20]
push edx
push str.Errors_found:__s_n
call fcn.00463796
add eax, 0x40
push eax
call fcn.00463647
add esp, 0xc
mov eax, dword [0x589f34]
mov ecx, dword [eax + 0x80]
push ecx
call fcn.0040153c
jmp 0x477386
cmp dword [ebp - 0x20], 0
je 0x477386
call fcn.00463796
add eax, 0x40
push eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.00463ec6
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00499750
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004773d0
add esp, 4
mov edx, dword [0x5d3d1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00463ec6
add esp, 8
push 0
call fcn.0040153c
mov esp, ebp
pop ebp
ret