Function at 0x487f50
Capabilities:
Reference sql statements

Disassembly:
test dword [0x87ed4c], 0xfffff000
jne 0x487f80
test dword [0x87ed4c], 0xffffffff
jne 0x488840
call fcn.007663a0
jmp fcn.00487f50
push ebx
mov ebx, esp
and esp, 0xfffffff8
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7729c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.005143a0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.005143a0
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x23]
push eax
call fcn.00500bb0
mov dword [ebp - 4], 0x1a
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x22]
push eax
call fcn.00500bb0
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.0048bbb0
mov eax, dword [ebx + 8]
add esp, 0xfffffff8
mov dword [esp], str.SELECT_coordinates__parts_size___parts_FROM_MP_LINE_where_id___i_and_to_delete____1_
mov dword [esp + 4], eax
call fcn.0051fe70
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebx + 8]
call fcn.0048a690
mov esi, eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
test eax, eax
je 0x488056
push eax
call fcn.004c69c4
pop ecx
and esi, 0xff
test esi, esi
je 0x488089
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x4882c8
push dword [esi + 4]
push dword [esi]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x4c]
call fcn.004892f0
add esi, 0x10
cmp esi, dword [ebp - 0x2c]
jne 0x48806c
jmp 0x4882c8
mov dword [ebp - 4], 0xf
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x348], eax
cmp edi, esi
je 0x4880b7
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x4880a3
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0xe
test esi, esi
je 0x4880f4
mov ecx, dword [ebp - 0x6c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488275
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xc
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x348], eax
cmp edi, esi
je 0x488122
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x48810e
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], 0xb
test esi, esi
je 0x48815f
mov ecx, dword [ebp - 0x60]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x48825e
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x488187
mov eax, dword [ebp - 0x38]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488247
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4881af
mov eax, dword [ebp - 0x48]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488230
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x348], eax
add esp, 0xfffffff8
mov dword [esp], edx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
call fcn.00485c10
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4881fc
mov edx, dword [ebp - 0x28]
sub edx, eax
and edx, 0xfffffff0
cmp edx, 0x80
jbe 0x48821c
push eax
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
add esp, 0xfffffff8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005d3210
add esp, 8
jmp 0x4881fc
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x4881af
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488187
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x48815f
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x4880f4
lea ecx, [ebp - 0x30]
call fcn.0048bbb0
mov esi, dword [ebp - 0x4c]
add esi, 0xfffffff0
cmp esi, dword [ebp - 0x50]
jb 0x4882ec
push esi
lea ecx, [ebp - 0x40]
call fcn.00489190
add esi, 0xfffffff0
cmp esi, dword [ebp - 0x50]
jae 0x4882db
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048b2e0
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebx + 8]
call fcn.0048db90
mov eax, dword [ebx + 8]
add esp, 0xfffffff8
mov dword [esp], str.SELECT_one_way_FROM_mp_line_WHERE_id___i_
mov dword [esp + 4], eax
call fcn.0051fe70
add esp, 8
mov edx, eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
mov dword [ecx + 4], edx
add esp, 0xfffffff8
call fcn.004ffa50
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
test eax, eax
je 0x48834a
push eax
call fcn.004c69c4
pop ecx
test esi, esi
je 0x4883ac
mov ecx, dword [ebx + 8]
mov eax, 1
mov edx, 0xffffffff
cmp esi, 0xffffffff
cmove edx, eax
add esp, 0xfffffff4
mov dword [esp], str.UPDATE_mp_line_set_one_way___i_WHERE_id___i_
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0051fe70
add esp, 0xc
mov edx, eax
mov edi, dword [ebp - 0x78]
mov eax, dword [edi]
mov dword [edi + 4], edx
add esp, 0xffffffec
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call fcn.005037fc
add esp, 0x14
mov eax, edi
mov eax, dword [eax + 4]
test eax, eax
je 0x4883ac
push eax
call fcn.004c69c4
pop ecx
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push dword [ebx + 8]
call fcn.0052e020
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
je 0x488495
mov dword [ebp - 4], 0x19
mov edi, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x24]
sar edi, 4
push eax
dec edi
call fcn.00500bb0
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
call fcn.00511380
mov dword [ebp - 4], 0x16
mov ecx, dword [ebp - 0x78]
push 1
lea eax, [ebp - 0x348]
push eax
push 0
push dword [ebx + 8]
call fcn.005256b0
mov ecx, dword [ebp - 0x78]
push 1
lea eax, [ebp - 0x348]
push eax
push edi
push dword [ebx + 8]
call fcn.005256b0
mov esi, dword [ebp - 0x68]
cmp esi, dword [ebp - 0x64]
jae 0x48863d
push esi
lea ecx, [ebp - 0x168]
call fcn.00489340
mov dword [ebp - 4], 0x18
mov eax, dword [esi]
neg eax
add eax, edi
mov dword [ebp - 0x168], eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0048a240
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x168]
call fcn.00514000
add esi, 0xf0
cmp esi, dword [ebp - 0x64]
jb 0x488445
jmp 0x48863a
mov dword [ebp - 4], 0x11
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], eax
cmp edi, esi
je 0x4884c0
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x4884ac
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0x10
test esi, esi
je 0x4884fd
mov ecx, dword [ebp - 0x6c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488608
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.0048bdf0
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x488534
mov eax, dword [ebp - 0x38]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x4885f1
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x48855c
mov eax, dword [ebp - 0x48]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x4885da
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x78], eax
add esp, 0xfffffff8
mov dword [esp], edx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
call fcn.00485c10
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4885a6
mov edx, dword [ebp - 0x28]
sub edx, eax
and edx, 0xfffffff0
cmp edx, 0x80
jbe 0x4885c6
push eax
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
add esp, 0xfffffff8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005d3210
add esp, 8
jmp 0x4885a6
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x48855c
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488534
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x4884fd
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
lea edi, [edx + 0xf0]
cmp edi, dword [ebp - 0x58]
jae 0x488721
lea ecx, [edi + 0x5c]
lea eax, [esi + 0x14]
push eax
call fcn.00489100
lea ecx, [edi + 0x8c]
lea eax, [esi + 0x44]
push eax
call fcn.00489100
lea ecx, [edi + 0x74]
lea eax, [esi + 0x2c]
push eax
call fcn.00489100
lea ecx, [edi + 0xbc]
lea eax, [esi + 0xa4]
push eax
call fcn.00489100
mov eax, dword [esi + 0xd8]
mov dword [edi + 0xe0], eax
lea ecx, [edi + 0x14]
mov edx, dword [esi + 0xd4]
mov dword [edi + 0xe4], edx
lea edx, [esi + 0x5c]
mov eax, dword [esi + 0xdc]
mov dword [edi + 0xe8], eax
push edx
call fcn.00489100
lea ecx, [edi + 0x44]
lea eax, [esi + 0x8c]
push eax
call fcn.00489100
lea ecx, [edi + 0x2c]
lea eax, [esi + 0x74]
push eax
call fcn.00489100
lea ecx, [edi + 0xa4]
lea eax, [esi + 0xbc]
push eax
call fcn.00489100
mov eax, dword [esi + 0xe4]
mov dword [edi + 0xd4], eax
mov edx, dword [esi + 0xe0]
mov dword [edi + 0xd8], edx
mov ecx, dword [esi + 0xe8]
mov dword [edi + 0xdc], ecx
add esi, 0xf0
add edi, 0xf0
cmp edi, dword [ebp - 0x58]
jb 0x48864f
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [edx + 0xd4], eax
lea ecx, [ebp - 0x68]
mov dword [edx + 0xd8], eax
mov dword [edx + 0xdc], eax
mov dword [edx + 0xe0], eax
mov dword [edx + 0xe4], eax
mov dword [edx + 0xe8], eax
call fcn.0048bd20
mov edi, dword [ebp - 0x58]
add edi, 0xffffff10
cmp edi, dword [ebp - 0x5c]
jb 0x488794
lea esi, [ebp - 0x258]
push edi
mov ecx, esi
call fcn.00489340
mov dword [ebp - 4], 0x17
push esi
lea ecx, [ebp - 0x68]
call fcn.0048a240
mov dword [ebp - 4], 0x16
mov ecx, esi
call fcn.00514000
add edi, 0xffffff10
cmp edi, dword [ebp - 0x5c]
jae 0x488763
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push dword [ebx + 8]
call fcn.0048d800
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
call fcn.00514000
mov dword [ebp - 4], 0x14
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
cmp edi, esi
je 0x4887e0
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x4887cc
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 4], 0x13
test esi, esi
je 0x488819
mov ecx, dword [ebp - 0x54]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488825
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0x12
jmp 0x488495
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488819
push ebx
mov ebx, esp
and esp, 0xfffffff8
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x772aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x78], ecx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.005143a0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.005143a0
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x23]
push eax
call fcn.00500bb0
mov dword [ebp - 4], 0x1a
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x22]
push eax
call fcn.00500bb0
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.0048bbb0
add esp, 0xfffffff8
mov eax, dword [ebx + 8]
mov dword [esp], str.SELECT_coordinates__parts_size___parts_FROM_MP_LINE_where_id___i_and_to_delete____1_
mov dword [esp + 4], eax
call fcn.0051fe70
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebx + 8]
call fcn.0048a690
mov esi, eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
test eax, eax
je 0x488916
push eax
call fcn.004c69c4
pop ecx
and esi, 0xff
test esi, esi
je 0x488949
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
je 0x488b88
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.004892f0
add esi, 0x10
cmp esi, dword [ebp - 0x2c]
jne 0x48892c
jmp 0x488b88
mov dword [ebp - 4], 0xf
lea eax, [ebp - 0x74]
mov dword [ebp - 0x348], eax
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
cmp edi, esi
je 0x488977
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x488963
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0xe
test esi, esi
je 0x4889b4
mov ecx, dword [ebp - 0x6c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488b35
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x68]
mov dword [ebp - 0x348], eax
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
cmp edi, esi
je 0x4889e2
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x4889ce
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], 0xb
test esi, esi
je 0x488a1f
mov ecx, dword [ebp - 0x60]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488b1e
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x488a47
mov eax, dword [ebp - 0x38]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488b07
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x488a6f
mov eax, dword [ebp - 0x48]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488af0
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x348], eax
add esp, 0xfffffff8
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
call fcn.00485c10
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x488abc
mov edx, dword [ebp - 0x28]
sub edx, eax
and edx, 0xfffffff0
cmp edx, 0x80
jbe 0x488adc
push eax
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
add esp, 0xfffffff8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005d3210
add esp, 8
jmp 0x488abc
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488a6f
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488a47
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488a1f
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x4889b4
lea ecx, [ebp - 0x30]
call fcn.0048bbb0
mov esi, dword [ebp - 0x4c]
add esi, 0xfffffff0
cmp esi, dword [ebp - 0x50]
jb 0x488bac
push esi
lea ecx, [ebp - 0x40]
call fcn.00489190
add esi, 0xfffffff0
cmp esi, dword [ebp - 0x50]
jae 0x488b9b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048b2e0
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebx + 8]
mov ecx, dword [ebp - 0x78]
call fcn.0048db90
add esp, 0xfffffff8
mov dword [esp], str.SELECT_one_way_FROM_mp_line_WHERE_id___i_
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
call fcn.0051fe70
add esp, 8
mov edx, eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 4], edx
add esp, 0xfffffff8
mov eax, dword [ecx]
call fcn.004ffa50
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
test eax, eax
je 0x488c0a
push eax
call fcn.004c69c4
pop ecx
test esi, esi
je 0x488c6b
mov eax, 1
cmp esi, 0xffffffff
je 0x488c1d
mov eax, 0xffffffff
add esp, 0xfffffff4
mov dword [esp], str.UPDATE_mp_line_set_one_way___i_WHERE_id___i_
mov dword [esp + 4], eax
mov edx, dword [ebx + 8]
mov dword [esp + 8], edx
call fcn.0051fe70
add esp, 0xc
mov edx, eax
mov edi, dword [ebp - 0x78]
mov dword [edi + 4], edx
add esp, 0xffffffec
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov eax, dword [edi]
xor ecx, ecx
call fcn.005037fc
add esp, 0x14
mov eax, edi
mov eax, dword [eax + 4]
test eax, eax
je 0x488c6b
push eax
call fcn.004c69c4
pop ecx
lea eax, [ebp - 0x68]
push eax
push dword [ebx + 8]
mov ecx, dword [ebp - 0x78]
call fcn.0052e020
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
je 0x488d54
mov dword [ebp - 4], 0x19
mov edi, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x40]
sar edi, 4
dec edi
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x24]
push eax
call fcn.00500bb0
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
call fcn.00511380
mov dword [ebp - 4], 0x16
push 1
lea eax, [ebp - 0x348]
push eax
push 0
push dword [ebx + 8]
mov ecx, dword [ebp - 0x78]
call fcn.005256b0
push 1
lea eax, [ebp - 0x348]
push eax
push edi
push dword [ebx + 8]
mov ecx, dword [ebp - 0x78]
call fcn.005256b0
mov esi, dword [ebp - 0x68]
cmp esi, dword [ebp - 0x64]
jae 0x488efc
push esi
lea ecx, [ebp - 0x168]
call fcn.00489340
mov dword [ebp - 4], 0x18
mov eax, dword [esi]
neg eax
add eax, edi
mov dword [ebp - 0x168], eax
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0048a240
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x168]
call fcn.00514000
add esi, 0xf0
cmp esi, dword [ebp - 0x64]
jb 0x488d04
jmp 0x488ef9
mov dword [ebp - 4], 0x11
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
cmp edi, esi
je 0x488d7f
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x488d6b
mov esi, dword [ebp - 0x74]
mov dword [ebp - 4], 0x10
test esi, esi
je 0x488dbc
mov ecx, dword [ebp - 0x6c]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x488ec7
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.0048bdf0
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x488df3
mov eax, dword [ebp - 0x38]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488eb0
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x488e1b
mov eax, dword [ebp - 0x48]
sub eax, edx
and eax, 0xfffffff0
cmp eax, 0x80
jbe 0x488e99
push edx
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
mov dword [ebp - 0x78], eax
add esp, 0xfffffff8
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
call fcn.00485c10
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x488e65
mov edx, dword [ebp - 0x28]
sub edx, eax
and edx, 0xfffffff0
cmp edx, 0x80
jbe 0x488e85
push eax
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
add esp, 0xfffffff8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005d3210
add esp, 8
jmp 0x488e65
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488e1b
add esp, 0xfffffff8
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488df3
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x488dbc
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
lea edi, [edx + 0xf0]
cmp edi, dword [ebp - 0x58]
jae 0x488fe0
lea ecx, [edi + 0x5c]
lea eax, [esi + 0x14]
push eax
call fcn.00489100
lea ecx, [edi + 0x8c]
lea eax, [esi + 0x44]
push eax
call fcn.00489100
lea ecx, [edi + 0x74]
lea eax, [esi + 0x2c]
push eax
call fcn.00489100
lea ecx, [edi + 0xbc]
lea eax, [esi + 0xa4]
push eax
call fcn.00489100
mov eax, dword [esi + 0xd8]
mov dword [edi + 0xe0], eax
mov edx, dword [esi + 0xd4]
mov dword [edi + 0xe4], edx
mov eax, dword [esi + 0xdc]
mov dword [edi + 0xe8], eax
lea ecx, [edi + 0x14]
lea edx, [esi + 0x5c]
push edx
call fcn.00489100
lea ecx, [edi + 0x44]
lea eax, [esi + 0x8c]
push eax
call fcn.00489100
lea ecx, [edi + 0x2c]
lea eax, [esi + 0x74]
push eax
call fcn.00489100
lea ecx, [edi + 0xa4]
lea eax, [esi + 0xbc]
push eax
call fcn.00489100
mov eax, dword [esi + 0xe4]
mov dword [edi + 0xd4], eax
mov edx, dword [esi + 0xe0]
mov dword [edi + 0xd8], edx
mov ecx, dword [esi + 0xe8]
mov dword [edi + 0xdc], ecx
add esi, 0xf0
add edi, 0xf0
cmp edi, dword [ebp - 0x58]
jb 0x488f0e
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [edx + 0xd4], eax
mov dword [edx + 0xd8], eax
mov dword [edx + 0xdc], eax
mov dword [edx + 0xe0], eax
mov dword [edx + 0xe4], eax
mov dword [edx + 0xe8], eax
lea ecx, [ebp - 0x68]
call fcn.0048bd20
mov edi, dword [ebp - 0x58]
add edi, 0xffffff10
cmp edi, dword [ebp - 0x5c]
jb 0x489053
lea esi, [ebp - 0x258]
push edi
mov ecx, esi
call fcn.00489340
mov dword [ebp - 4], 0x17
push esi
lea ecx, [ebp - 0x68]
call fcn.0048a240
mov dword [ebp - 4], 0x16
mov ecx, esi
call fcn.00514000
add edi, 0xffffff10
cmp edi, dword [ebp - 0x5c]
jae 0x489022
lea eax, [ebp - 0x68]
push eax
push dword [ebx + 8]
mov ecx, dword [ebp - 0x78]
call fcn.0048d800
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
call fcn.00514000
mov dword [ebp - 4], 0x14
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
cmp edi, esi
je 0x48909f
add edi, 0xffffff10
mov ecx, edi
call fcn.00514000
cmp edi, esi
jne 0x48908b
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 4], 0x13
test esi, esi
je 0x4890d8
mov ecx, dword [ebp - 0x54]
sub ecx, esi
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 7
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x4890e4
push esi
call fcn.007424fc
pop ecx
mov dword [ebp - 4], 0x12
jmp 0x488d54
add esp, 0xfffffff8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005d3210
add esp, 8
jmp 0x4890d8