Function at 0x401130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push 8
mov ebp, 1
push ebp
call dword [sym.imp.MSVCR90.dll_calloc]
xor ebx, ebx
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x401160
mov dword [0x52b0d8], ebp
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push str.begin_action
mov esi, edi
call fcn.00433280
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [ecx + 4], eax
jg 0x4011a0
push str.Need_at_least_one_action
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x14]
push edx
call fcn.00401a10
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 0x14
call fcn.00402f10
mov esi, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
cmp eax, ebx
jne 0x4011d6
push str.Out_of_memory.
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
push esi
call fcn.00401a10
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, edi
mov dword [edi + 0x18], 0xffffffff
call fcn.00433220
mov esi, eax
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], ebx
jle 0x40161d
jmp 0x401200
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esi + 1]
mov ecx, str.begin_action
call fcn.0040e3a0
test eax, eax
jne 0x40128a
add dword [edi + 0x18], ebp
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x30]
jl 0x40123a
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x401279
mov ecx, dword [edi + 0x2c]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
inc eax
mov dword [edi + 0xc], eax
mov edx, dword [edi + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x24]
mov edx, dword [eax + edx*4]
sub edx, dword [edi + 4]
mov dword [edi + 0x10], edx
mov ecx, dword [ecx]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x28]
mov dword [edi + 0x1c], ebx
jge 0x401270
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x5b
jne 0x401273
mov dword [edi + 0x1c], ebp
mov esi, edx
mov dword [esp + 0x10], edx
lea eax, [esi + 1]
mov ecx, str.begin_action
call fcn.0040e3a0
test eax, eax
je 0x401227
add esi, 0xe
push esi
call dword [sym.imp.MSVCR90.dll_atoi]
xor esi, esi
add esp, 4
mov ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], esi
call fcn.004337f0
cmp eax, ebx
je 0x4012f3
mov al, byte [eax]
cmp al, 0x30
jl 0x4012be
cmp al, 0x39
jle 0x4012c2
cmp al, 0x2d
jne 0x4012c4
add esi, ebp
cmp dword [edi + 0x1c], ebx
jne 0x4012ef
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + eax*4]
inc eax
cmp eax, dword [edi + 0x28]
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], ebx
jge 0x4012e6
mov ecx, dword [ecx + eax*4]
cmp byte [ecx], 0x5b
jne 0x4012e9
mov dword [edi + 0x1c], ebp
mov eax, edx
cmp edx, ebx
jne 0x4012b4
mov dword [esp + 0x30], esi
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + edx*4]
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x24]
mov edx, dword [eax + ecx*4]
sub edx, dword [edi + 4]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x28]
mov dword [edi + 0x10], edx
mov dword [edi + 0x1c], ebx
jge 0x401325
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x5b
jne 0x401328
mov dword [edi + 0x1c], ebp
cmp esi, ebx
jne 0x40133e
mov ecx, edi
call fcn.00433220
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x401606
push 0x30
mov eax, esi
call fcn.00402f10
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x401628
cmp esi, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jle 0x4015d8
mov edi, edi
push 0x30
xor esi, esi
lea ecx, [esp + 0x44]
push esi
push ecx
call sub.MSVCR90.dll_memset
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x60], 0x100
mov dword [esp + 0x64], esi
mov dword [esp + 0x20], esi
lea ebx, [ebx]
cmp dword [edi + 0x1c], 0
jne 0x40164e
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x24]
mov esi, dword [ecx + eax*4]
inc eax
cmp eax, dword [edi + 0x28]
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], 0
jge 0x4013cb
mov edx, dword [ecx + eax*4]
cmp byte [edx], 0x5b
jne 0x4013d2
mov dword [edi + 0x1c], 1
test esi, esi
je 0x40164e
push 9
mov eax, str.loopstart
mov ecx, esi
call fcn.0040e400
add esp, 4
test eax, eax
je 0x4013f7
mov dword [esp + 0x20], 1
push 5
mov eax, str.clsn1
mov ecx, esi
call fcn.0040e400
add esp, 4
test eax, eax
je 0x401461
test ebx, ebx
je 0x401434
dec dword [ebx + 0x10]
cmp dword [ebx + 0x10], 0
jg 0x401434
mov eax, dword [ebx + 8]
test eax, eax
je 0x40142a
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push edi
mov eax, esi
call fcn.0040aec0
mov ebx, eax
add esp, 4
mov dword [esp + 0x68], ebx
test ebx, ebx
je 0x40167f
mov al, byte [esi + 5]
cmp al, 0x64
je 0x401458
cmp al, 0x44
jne 0x401461
or dword [esp + 0x58], 4
mov dword [esp + 0x1c], ebx
push 5
mov eax, str.clsn2
mov ecx, esi
call fcn.0040e400
add esp, 4
test eax, eax
je 0x4014cf
test ebp, ebp
je 0x40149e
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jg 0x40149e
mov eax, dword [ebp + 8]
test eax, eax
je 0x401494
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push edi
mov eax, esi
call fcn.0040aec0
mov ebp, eax
add esp, 4
mov dword [esp + 0x6c], ebp
test ebp, ebp
je 0x4016af
mov al, byte [esi + 5]
cmp al, 0x64
je 0x4014c2
cmp al, 0x44
jne 0x4014cf
or dword [esp + 0x58], 8
mov edx, ebp
mov dword [esp + 0x18], edx
jmp 0x4014d3
mov edx, dword [esp + 0x18]
mov al, byte [esi]
cmp al, 0x4c
je 0x4014dd
cmp al, 0x6c
jne 0x4014ea
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x4014ea
cmp cl, 0x39
jle 0x4014fe
cmp al, 0x30
jl 0x4014f2
cmp al, 0x39
jle 0x4014fe
cmp al, 0x2d
jne 0x4013a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401511
test ebx, ebx
jne 0x401511
inc dword [eax + 0x10]
mov dword [esp + 0x68], eax
test edx, edx
je 0x401520
test ebp, ebp
jne 0x401520
inc dword [edx + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40152c
xor eax, eax
jmp 0x401541
mov eax, dword [esp + 0x2c]
lea ecx, [edx - 1]
imul ecx, dword [eax + 4]
mov eax, dword [eax + 0x18]
add ecx, eax
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x40], eax
je 0x401554
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
xor ecx, ecx
mov al, byte [esi + ecx]
cmp al, 0x30
jl 0x401561
cmp al, 0x39
jle 0x401570
cmp al, 0x2d
je 0x401570
test al, al
je 0x4016df
inc ecx
jmp 0x401556
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x48]
push eax
lea ebx, [esi + ecx]
call fcn.00401730
add esp, 0xc
test eax, eax
je 0x401710
mov eax, dword [esp + 0x44]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4015a3
add dword [esp + 0x34], eax
jmp 0x4015a7
mov dword [esp + 0x34], ebx
mov esi, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x44]
push 0
push ecx
call fcn.004030f0
inc ebp
add esp, 0xc
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
jl 0x401370
cmp dword [esp + 0x3c], ebx
jne 0x4015d8
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx]
push edx
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004030f0
add esp, 0xc
mov ecx, edi
call fcn.00433220
mov dword [esp + 0x10], eax
xor ebx, ebx
mov esi, eax
mov ebp, 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
add eax, ebp
cmp eax, dword [edx + 4]
mov dword [esp + 0x24], eax
jl 0x401200
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push str.Out_of_memory.
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x14]
push eax
call fcn.00401a10
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
push ecx
push edx
push str.Error_reading_line_in__s_elem__i
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401a10
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.Error_in_clsn1_in__s_elem__i
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401a10
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.Error_in_clsn2_in__s_elem__i
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401a10
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
push ecx
push edx
push str.Syntax_error_in__s_elem__i
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401a10
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00401a10
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret