Function at 0x413070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x54], 8
fld qword [0x41d280]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x30], 0
cmp dword [ebp + 8], 0
jne 0x4130b9
xor eax, eax
jmp 0x4139fc
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agnnodes
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agnedges
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 1
je 0x413107
cmp dword [ebp + 0x20], 2
je 0x413107
mov edx, dword [ebp + 0x20]
push edx
push str.Format__d_not_supported_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agfstnode
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x413132
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.cgraph.dll_agnxtnode
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41314f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x41311f
cmp dword [ebp + 0x20], 2
jne 0x413198
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00408280
add esp, 0x14
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x4131d1
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 4]
shl edx, 2
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
shl eax, 3
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp + 0x20], 2
jne 0x41321a
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00408280
add esp, 0x14
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x34], eax
jmp 0x413253
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 4]
shl edx, 2
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
shl eax, 3
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x34], eax
push 0
push 0x41f5e8
push 2
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agattr
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x24], 0
je 0x41329c
push 0
push 0x41f5f0
push 2
mov edx, dword [ebp + 8]
push edx
call sub.cgraph.dll_agattr
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
shl eax, 3
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agfstnode
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4132c7
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agnxtnode
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x413448
cmp dword [ebp + 0x1c], 0
je 0x413301
push 0xb
push 0x41f5f4
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x413301
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agfstout
add esp, 8
mov dword [ebp - 0x5c], eax
jmp 0x413335
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agnxtout
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x413443
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
and edx, 3
cmp edx, 2
jne 0x413363
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x9c], eax
jmp 0x41336f
mov ecx, dword [ebp - 0x5c]
sub ecx, 0x20
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*4], ecx
cmp dword [ebp - 0x40], 0
je 0x4133bc
lea edx, [ebp - 0x10]
push edx
push 0x41f600
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call sub.cgraph.dll_agxget
add esp, 8
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x4133ba
fld1
fstp qword [ebp - 0x10]
jmp 0x4133c1
fld1
fstp qword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
fld qword [ebp - 0x10]
fstp qword [eax + edx*8]
cmp dword [ebp - 0x3c], 0
je 0x413420
lea ecx, [ebp - 0x10]
push ecx
push 0x41f604
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call sub.cgraph.dll_agxget
add esp, 8
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x413406
fld qword [0x41d278]
fstp qword [ebp - 0x10]
jmp 0x413412
fld qword [ebp - 0x10]
fmul qword [0x41d278]
fstp qword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
fld qword [ebp - 0x10]
fstp qword [edx + ecx*8]
jmp 0x413435
cmp dword [ebp - 0x14], 0
je 0x413435
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
fld qword [0x41d278]
fstp qword [ecx + eax*8]
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x413322
jmp 0x4132b4
cmp dword [ebp + 0x1c], 0
je 0x41346a
mov eax, dword [ebp - 0x30]
shl eax, 2
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0x10], 0
je 0x413485
mov edx, dword [ebp - 0x2c]
shl edx, 4
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
push edx
call sub.cgraph.dll_agfstnode
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x4134a9
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agnxtnode
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4135fe
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x1c], 0
je 0x4134fd
push 0xb
push 0x41f608
mov edx, dword [ebp - 0x1c]
push edx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4134fd
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 0x10], 0
je 0x4135f9
push 0x41f614
mov edx, dword [ebp - 0x1c]
push edx
call sub.cgraph.dll_agget
add esp, 8
test eax, eax
je 0x4135d2
push 0x41f61c
mov eax, dword [ebp - 0x1c]
push eax
call sub.cgraph.dll_agget
add esp, 8
test eax, eax
je 0x4135d2
lea ecx, [ebp - 0x68]
push ecx
push 0x41f624
push 0x41f628
mov edx, dword [ebp - 0x1c]
push edx
call sub.cgraph.dll_agget
add esp, 8
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
fld qword [0x41d278]
fmul qword [ebp - 0x68]
fmul qword [0x41dd80]
fld qword [ebp - 0x50]
fmul qword [0x41dd80]
faddp st(1)
mov eax, dword [ebp - 0x18]
shl eax, 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
fstp qword [edx + eax*8]
lea eax, [ebp - 0x68]
push eax
push 0x41f630
push 0x41f634
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.cgraph.dll_agget
add esp, 8
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
fld qword [0x41d278]
fmul qword [ebp - 0x68]
fmul qword [0x41dd80]
fld qword [ebp - 0x50]
fmul qword [0x41dd80]
faddp st(1)
mov edx, dword [ebp - 0x18]
shl edx, 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
fstp qword [ecx + edx*8 + 8]
jmp 0x4135f9
mov edx, dword [ebp - 0x18]
shl edx, 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
fld qword [0x41d270]
fstp qword [ecx + edx*8]
mov edx, dword [ebp - 0x18]
shl edx, 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
fld qword [0x41d278]
fstp qword [ecx + edx*8 + 8]
jmp 0x413496
cmp dword [ebp + 0x14], 0
je 0x413925
push 0
push 0x41f63c
push 1
mov edx, dword [ebp + 8]
push edx
call sub.cgraph.dll_agattr
add esp, 0x10
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x413925
mov dword [ebp - 0x70], 1
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x413652
mov ecx, dword [ebp + 0xc]
shl ecx, 3
imul ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agfstnode
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x413676
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.cgraph.dll_agnxtnode
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x413905
cmp dword [ebp - 0x70], 0
je 0x413905
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.cgraph.dll_agxget
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4138dd
mov edx, dword [ebp - 0x6c]
movsx eax, byte [edx]
test eax, eax
je 0x4138dd
cmp dword [ebp + 0xc], 2
jne 0x413741
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0x41f640
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 2
je 0x413714
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Node___s__pos_has__d___2_values
push 1
call sub.cgraph.dll_agerr
add esp, 0x10
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x78]
fstp qword [edx + eax*8]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x98]
fstp qword [edx + eax*8 + 8]
jmp 0x4138db
cmp dword [ebp + 0xc], 3
jne 0x4137e2
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x78]
push edx
push str._lf__lf__lf
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x14
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 3
je 0x41379f
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Node___s__pos_has__d___3_values
push 1
call sub.cgraph.dll_agerr
add esp, 0x10
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x78]
fstp qword [edx + eax*8]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x98]
fstp qword [edx + eax*8 + 8]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x88]
fstp qword [edx + eax*8 + 0x10]
jmp 0x4138db
cmp dword [ebp + 0xc], 4
jne 0x41389d
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x78]
push eax
push str._lf__lf__lf__lf
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x18
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 4
je 0x413847
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Node___s__pos_has__d___4_values
push 1
call sub.cgraph.dll_agerr
add esp, 0x10
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
fld qword [ebp - 0x78]
fstp qword [eax + ecx*8]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
fld qword [ebp - 0x98]
fstp qword [eax + ecx*8 + 8]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
fld qword [ebp - 0x88]
fstp qword [eax + ecx*8 + 0x10]
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
fld qword [ebp - 0x90]
fstp qword [eax + ecx*8 + 0x18]
jmp 0x4138db
cmp dword [ebp + 0xc], 1
jne 0x4138db
lea ecx, [ebp - 0x78]
push ecx
push 0x41f6c4
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 1
je 0x4138c9
xor eax, eax
jmp 0x4139fc
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
fld qword [ebp - 0x78]
fstp qword [edx + eax*8]
jmp 0x413900
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Node___s__lacks_position_info
push 1
call sub.cgraph.dll_agerr
add esp, 0xc
jmp 0x413663
cmp dword [ebp - 0x70], 0
jne 0x413923
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x413947
cmp dword [ebp + 0x14], 0
je 0x413947
mov ecx, dword [ebp + 8]
push ecx
call sub.cgraph.dll_agnameof
add esp, 4
push eax
push str.Error:_graph__s_has_missing__pos__information
push 1
call sub.cgraph.dll_agerr
add esp, 0xc
cmp dword [ebp + 0x20], 1
jne 0x413978
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00409810
add esp, 0x20
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0x1c], 0
je 0x413986
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x4139b9
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409810
add esp, 0x20
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
cmp dword [ebp + 0x20], 2
je 0x4139e6
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4139f9
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [ebp - 0x44]
mov esp, ebp
pop ebp
ret