Function at 0x1012c0d5
Capabilities:
Encrypt data using speck

Disassembly:
push 0x134
mov eax, 0x101549fc
call fcn.10147e2c
mov ebx, ecx
mov dword [ebp - 0xf0], ebx
mov eax, dword [ebx + 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc4], edi
push 0xc
pop edx
test eax, eax
je 0x1012c12c
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x30], eax
pop ecx
test eax, eax
je 0x1012d43f
imul ecx, dword [ebx + 8], 0xc
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call sym.rt3d.dll_public:_static_class_e3_MEM____stdcall_e3_MEM::Create_void_
mov dword [ebx + 0x34], eax
test eax, eax
je 0x1012d43f
push 0x40
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x38], eax
pop ecx
test eax, eax
je 0x1012d43f
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebx + 0x38]
add esp, 0xc
mov eax, dword [ebx + 4]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x34]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x30]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [eax + 0x3c], edi
mov eax, dword [ebx + 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x2c], eax
push dword [ebx + 0x38]
mov ecx, dword [ebx]
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
xor edx, edx
mov esi, eax
inc edx
mov dword [ebp - 0xbc], esi
cmp esi, edx
jge 0x1012c1e6
mov ecx, dword [ebx]
cmp dword [ecx + 0xbe], 0
je 0x1012c1cb
test dword [edi + 0x28], 0x800
jne 0x1012c1e6
mov eax, dword [ecx]
push edi
push ecx
mov esi, dword [eax + 0xac]
mov ecx, esi
call dword [0x10155aa8]
call esi
xor eax, eax
jmp 0x1012d442
mov eax, dword [edi + 0x28]
test al, 0x40
je 0x1012c2cb
test esi, esi
je 0x1012c2cb
mov ecx, dword [ebx]
cmp dword [ecx + 0x112], 0
jne 0x1012c248
mov eax, dword [ecx + 0x122]
xor ecx, ecx
push 0xc
pop edx
mov dword [ebp - 0xb8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebp - 0xb8], eax
pop ecx
mov ecx, dword [ebx]
mov dword [ecx + 0x112], eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x112], 0
je 0x1012d43f
mov eax, dword [edi + 0x28]
xor edx, edx
inc edx
test eax, 0x200
je 0x1012c2b0
cmp dword [edi + 0x24], 0
je 0x1012c2b0
mov eax, dword [ecx + 0x66]
xor ecx, ecx
push 0xc
pop edx
mov dword [ebp - 0xb8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, eax
mov dword [ebp - 0xb8], esi
pop ecx
test esi, esi
je 0x1012d43f
mov ecx, dword [ebx]
push dword [ecx + 0x66]
push esi
push dword [ecx + 0x62]
push dword [edi + 0x24]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push dword [edi + 0x24]
mov ecx, dword [ebx]
push esi
push 7
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push esi
call fcn.10147b8d
mov esi, dword [ebp - 0xbc]
pop ecx
jmp 0x1012c2cb
push 0
push dword [ecx + 0x62]
push edx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov ecx, dword [ebx]
push 0
push dword [ecx + 0x62]
push 2
pop eax
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [ebx]
xor edx, edx
mov cl, dl
mov dword [ebp - 0x124], ecx
cmp dword [eax + 0x6e], edx
je 0x1012c2f7
cmp dword [eax + 0xa2], edx
je 0x1012c2f7
test byte [edi + 0x28], 0x80
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [ebp - 0x124], ecx
push 0x64
push edx
lea eax, [ebp - 0x94]
mov dword [ebp - 0xfc], edx
push eax
mov dword [ebp - 0xe4], edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test dword [edi + 0x28], 0x20080
push 3
pop ecx
push 4
pop edx
je 0x1012c4a7
test esi, esi
je 0x1012c525
test dword [edi + 0x28], 0x20000
je 0x1012c3e4
mov ecx, dword [ebx]
and dword [ebp - 0xb8], 0
cmp dword [ecx + 0x54], 0
jbe 0x1012c3ba
mov edi, dword [ebp - 0xb8]
xor edx, edx
mov eax, dword [ecx + 0x50]
mov dword [ebp - 0xb8], 0x3e8
movzx esi, word [eax + edx]
cmp si, word [ebp - 0xb8]
jb 0x1012c38e
mov dword [ebp - 0xb8], 0x44c
cmp si, word [ebp - 0xb8]
jae 0x1012c38e
mov eax, esi
or byte [ebp + eax - 0x47c], 1
mov eax, dword [ecx + 0x50]
movzx esi, word [edx + eax]
lea eax, [esi - 0x384]
cmp ax, 0x63
ja 0x1012c3a8
mov eax, esi
or byte [ebp + eax - 0x418], 2
inc edi
add edx, 0x1c
cmp edi, dword [ecx + 0x54]
jb 0x1012c354
mov edi, dword [ebp - 0xc4]
push 4
pop edx
xor ecx, ecx
mov esi, ecx
cmp byte [ebp + ecx - 0x94], 3
lea eax, [esi + 1]
cmovne eax, esi
inc ecx
mov esi, eax
cmp ecx, 0x64
jb 0x1012c3be
mov dword [ebp - 0xfc], esi
test eax, eax
je 0x1012c4b2
jmp 0x1012c402
cmp byte [ebp - 0x124], 0
je 0x1012c4b2
xor eax, eax
mov byte [ebp - 0x94], cl
lea esi, [eax + 1]
mov dword [ebp - 0xfc], esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0xc], eax
pop ecx
test eax, eax
je 0x1012d43f
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x10], eax
pop ecx
test eax, eax
je 0x1012d43f
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x1012d43f
test byte [edi + 0x28], 0x10
je 0x1012c48d
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x1012d43f
mov eax, dword [ebx + 0x38]
mov dword [eax + 0x2c], esi
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x18]
mov dword [ecx + 0x24], eax
jmp 0x1012c4b2
and dword [ebp - 0xfc], 0
test esi, esi
je 0x1012c525
xor edi, edi
xor edx, edx
mov dword [ebp - 0xe8], edx
cmp byte [ebp + edi - 0x94], 3
jne 0x1012c513
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
add eax, edx
push eax
mov eax, dword [ebx + 0x10]
add eax, edx
mov esi, dword [ecx]
push eax
push edi
push ecx
mov esi, dword [esi + 0x19c]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0xe4]
push 4
mov dword [edx + eax], edi
pop eax
add edx, eax
test edi, edi
lea eax, [ecx + 1]
mov dword [ebp - 0xe8], edx
cmove eax, ecx
mov dword [ebp - 0xe4], eax
inc edi
cmp edi, 0x64
jb 0x1012c4bc
mov edi, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xbc]
mov ecx, dword [edi + 0x28]
mov eax, ecx
test ecx, 0x40000
je 0x1012c562
mov edx, dword [ebx]
cmp dword [edx + 0xaa], 0
je 0x1012c543
cmp dword [edx + 0x7e], 0
jne 0x1012c54e
cmp dword [edx + 0x8a], 0
mov eax, ecx
je 0x1012c562
xor edx, edx
mov eax, ecx
inc edx
test esi, esi
je 0x1012c565
mov eax, dword [ebx + 0x38]
mov byte [eax + 0x36], dl
mov eax, dword [edi + 0x28]
jmp 0x1012c565
xor edx, edx
inc edx
test al, 0x20
je 0x1012cde8
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x124]
mov byte [eax + 0x35], cl
test byte [edi + 0x28], 0x40
je 0x1012c585
mov eax, dword [ebx + 0x38]
mov byte [eax + 0x34], dl
mov ecx, dword [ebx + 0x38]
push 6
pop eax
push 3
cmp byte [ecx + 0x34], 0
pop edx
cmove eax, edx
cmp byte [ecx + 0x36], 0
lea esi, [eax + 4]
cmove esi, eax
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x1012c5af
mov dword [ecx + 0x30], esi
lea esi, [esi + eax*2]
call sym.rt3d.dll_public:_static_class_e3_MEM____stdcall_e3_MEM::Create_void_
mov ecx, dword [ebx + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x38]
cmp dword [eax + 8], 0
je 0x1012d43f
push 0x20
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov dword [ebp - 0xb8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1012c5ed
mov ecx, dword [ebx + 0x38]
push esi
push dword [ecx + 8]
mov ecx, eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
jmp 0x1012c5ef
xor eax, eax
mov ecx, dword [ebx + 0x38]
or dword [ebp - 4], 0xffffffff
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx + 0x38]
cmp dword [ecx + 0xc], 0
je 0x1012d43f
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov dword [ebx + 0x20], eax
pop ecx
test eax, eax
je 0x1012d43f
xor eax, eax
mov dword [ebp - 0xd0], eax
cmp dword [ebx + 8], eax
jbe 0x1012cdbb
xor edx, edx
mov dword [ebp - 0x10c], 0x11
mov dword [ebp - 0x110], edx
mov ecx, dword [ebx + 0x30]
add ecx, edx
mov dword [ebp - 0xf0], ecx
test byte [ecx + 8], 2
jne 0x1012cd9b
mov esi, dword [ebx]
mov ecx, esi
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd0]
cmp byte [ecx + 0x36], 0
je 0x1012c6a6
mov ecx, dword [esi + 0xaa]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0xec], ecx
test ecx, ecx
je 0x1012c6ae
cmp dword [ecx], 0
mov dword [ebp - 0xec], ecx
jne 0x1012c6ae
and dword [ebp - 0xec], 0
jmp 0x1012c6ae
xor ecx, ecx
mov dword [ebp - 0xec], ecx
mov ecx, dword [esi + 0x9e]
mov edx, eax
shl edx, 2
add ecx, edx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0xf0]
test byte [ecx + 8], 1
je 0x1012ca6b
and dword [ebp - 0xbc], 0
cmp dword [ecx + 4], 0
jle 0x1012cd9b
push dword [ebx + 0x3c]
push 3
pop esi
push esi
push edi
call fcn.1012ad46
add esp, 0xc
test eax, eax
js 0x1012d442
mov ecx, dword [ebx + 0x38]
push esi
push dword [ebp - 0xd0]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, eax
mov dword [ebp - 0xdc], esi
test esi, esi
je 0x1012d43f
mov ecx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ebp - 0xb8], eax
sub eax, dword [ecx + 0x102]
cdq
idiv dword [ebp - 0x10c]
imul edx, eax, 6
add edx, dword [ecx + 0x10a]
mov dword [esi + 8], eax
xor esi, esi
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xc8], esi
mov edx, dword [ebx]
mov eax, dword [ebp - 0xe4]
cmp dword [edx + 0x10a], 0
mov ecx, dword [eax]
je 0x1012c781
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
jmp 0x1012c784
mov eax, dword [ecx + esi*4]
test dword [edi + 0x28], 0x200
mov dword [ebp - 0xc0], eax
je 0x1012c7ad
imul eax, eax, 0xc
lea ecx, [ebp - 0x120]
push 1
push ecx
add eax, dword [edx + 0x62]
push eax
push dword [edi + 0x24]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
jmp 0x1012c7dc
cmp dword [edx + 0x10a], 0
lea edi, [ebp - 0x120]
je 0x1012c7cc
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
imul esi, dword [ecx + eax*4], 0xc
jmp 0x1012c7d0
imul esi, dword [ecx + esi*4], 0xc
add esi, dword [edx + 0x62]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc8]
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x120]
push 3
movss dword [eax], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x11c]
movss dword [eax + 4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x118]
movss dword [eax + 8], xmm0
pop eax
mov edx, eax
mov eax, dword [ebx + 0x38]
cmp byte [eax + 0x34], 0
je 0x1012c84e
mov eax, dword [ebp - 0xb8]
push 6
mov ecx, dword [eax + esi*4 + 5]
mov eax, dword [ebx]
mov eax, dword [eax + 0xf6]
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebx + 0x20]
mov eax, dword [edx]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [edx + 4]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [edx + 8]
pop edx
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x38]
cmp byte [eax + 0x36], 0
je 0x1012c931
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x1012c901
mov edi, dword [ebx]
mov ecx, dword [eax]
cmp dword [edi + 0x10a], 0
je 0x1012c883
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
imul esi, dword [ecx + eax*4], 0xc
jmp 0x1012c887
imul esi, dword [ecx + esi*4], 0xc
add esi, dword [edi + 0x7e]
lea edi, [ebp - 0x1c]
mov eax, dword [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc8]
movss dword [eax + edx*4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x18]
movss dword [eax + edx*4 + 4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x14]
movss dword [eax + edx*4 + 8], xmm0
mov eax, dword [ebx]
mov edi, dword [eax + 0x6a]
test edi, edi
je 0x1012c8ef
cmp dword [eax + 0x10a], 0
je 0x1012c8e0
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
jmp 0x1012c8e3
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi + eax*4]
mov dword [ecx + edx*4 + 0xc], eax
jmp 0x1012c8fa
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 0xc], 0x3f800000
push 4
pop eax
add edx, eax
jmp 0x1012c937
mov eax, dword [ebx + 0x20]
push 4
mov dword [eax + edx*4], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 4], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 8], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 0xc], 0x3f800000
pop eax
add edx, eax
mov esi, dword [ebp - 0xc8]
xor edi, edi
cmp dword [ebp - 0xfc], edi
jle 0x1012c9db
shl edx, 2
mov dword [ebp - 0xe8], edx
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + edi*4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
add eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1012c9a8
mov eax, dword [ebx]
cmp dword [eax + 0x10a], 0
je 0x1012c980
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
jmp 0x1012c983
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x104], ecx
movss xmm1, dword [ebp - 0x104]
mov dword [ebp - 0x100], eax
movss xmm0, dword [ebp - 0x100]
jmp 0x1012c9ae
xorps xmm0, xmm0
xorps xmm1, xmm1
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ebx + 0x20]
movss dword [ecx + eax], xmm1
mov eax, dword [ebx + 0x20]
movss dword [ecx + eax + 4], xmm0
add ecx, 8
inc edi
mov dword [ebp - 0xe8], ecx
cmp edi, dword [ebp - 0xfc]
jl 0x1012c94e
push dword [ebp - 0xd8]
push dword [ebx + 0x20]
push dword [ebp - 0xc0]
push dword [ebx + 0x38]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, dword [ebp - 0xc8]
add esp, 0x10
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + esi*4 + 0x14], eax
cmp eax, 0xffffffff
je 0x1012d43f
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x1012ca32
mov eax, dword [ebx]
cmp dword [eax + 0x10a], 0
je 0x1012ca2f
mov eax, dword [ebp - 0xcc]
movzx eax, word [eax + esi*2]
mov dword [ecx + esi*4], eax
jmp 0x1012ca32
mov dword [ecx + esi*4], esi
mov edi, dword [ebp - 0xc4]
inc esi
push 3
pop eax
mov dword [ebp - 0xc8], esi
cmp esi, eax
jl 0x1012c75f
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xf0]
inc esi
mov dword [ebp - 0xbc], esi
cmp esi, dword [eax + 4]
jl 0x1012c6e8
jmp 0x1012cd95
push eax
mov ecx, esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push dword [ebx + 0x3c]
movzx esi, ax
push esi
push edi
mov dword [ebp - 0xc0], esi
call fcn.1012ad46
add esp, 0xc
test eax, eax
js 0x1012d442
mov ecx, dword [ebx + 0x38]
push esi
push dword [ebp - 0xd0]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
je 0x1012d43f
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ebx]
sub eax, dword [ecx + 0x102]
cdq
idiv dword [ebp - 0x10c]
imul edx, eax, 6
add edx, dword [ecx + 0x10a]
mov dword [esi + 8], eax
xor esi, esi
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xc8], esi
cmp dword [ebp - 0xc0], esi
jbe 0x1012cd95
mov edx, dword [ebx]
mov eax, dword [ebp - 0xe4]
cmp dword [edx + 0x10a], 0
mov ecx, dword [eax]
je 0x1012cb11
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
jmp 0x1012cb14
mov eax, dword [ecx + esi*4]
test dword [edi + 0x28], 0x200
mov dword [ebp - 0xe8], eax
je 0x1012cb3d
imul eax, eax, 0xc
lea ecx, [ebp - 0x140]
push 1
push ecx
add eax, dword [edx + 0x62]
push eax
push dword [edi + 0x24]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
jmp 0x1012cb53
imul esi, dword [ecx + esi*4], 0xc
lea edi, [ebp - 0x140]
add esi, dword [edx + 0x62]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc8]
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x140]
push 3
movss dword [eax], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x13c]
movss dword [eax + 4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x138]
movss dword [eax + 8], xmm0
pop eax
mov edx, eax
mov eax, dword [ebx + 0x38]
cmp byte [eax + 0x34], 0
je 0x1012cbef
mov ecx, dword [ebx]
push esi
mov eax, dword [ecx + 0x9e]
add eax, dword [ebp - 0xd4]
push eax
push dword [ebp - 0xf0]
push ecx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebx + 0x20]
add esp, 0x10
mov edi, eax
push 0xc
pop eax
test edi, edi
je 0x1012cbd4
mov ecx, dword [edi]
mov dword [edx + eax], ecx
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi + 4]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi + 8]
mov dword [ecx + 0x14], eax
jmp 0x1012cbe9
and dword [edx + eax], 0
mov eax, dword [ebx + 0x20]
and dword [eax + 0x10], 0
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x14], 0x3f800000
mov eax, dword [ebx + 0x38]
push 6
pop edx
cmp byte [eax + 0x36], 0
je 0x1012ccb7
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x1012cc87
mov ecx, dword [eax]
lea edi, [ebp - 0x12c]
mov eax, dword [ebx]
imul ecx, dword [ecx + esi*4], 0xc
mov esi, dword [eax + 0x7e]
mov eax, dword [ebx + 0x20]
add esi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm0, dword [ebp - 0x12c]
mov esi, dword [ebp - 0xc8]
movss dword [eax + edx*4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x128]
movss dword [eax + edx*4 + 4], xmm0
mov eax, dword [ebx + 0x20]
movss xmm0, dword [ebp - 0x124]
movss dword [eax + edx*4 + 8], xmm0
mov eax, dword [ebx]
mov edi, dword [eax + 0x6a]
test edi, edi
je 0x1012cc75
mov ecx, dword [ebp - 0xec]
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ecx + edx*4 + 0xc], eax
jmp 0x1012cc80
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 0xc], 0x3f800000
push 4
pop eax
add edx, eax
jmp 0x1012ccbd
mov eax, dword [ebx + 0x20]
push 4
mov dword [eax + edx*4], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 4], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 8], 0x3f800000
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4 + 0xc], 0x3f800000
pop eax
add edx, eax
mov esi, dword [ebp - 0xc8]
xor edi, edi
cmp dword [ebp - 0xfc], edi
jle 0x1012cd3f
shl edx, 2
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xdc], ecx
mov eax, dword [eax + edi*4]
add eax, dword [ebp - 0xd4]
mov eax, dword [eax]
test eax, eax
je 0x1012cd1c
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0xdc]
mov ecx, dword [ecx + eax*8]
mov eax, dword [esi + eax*8 + 4]
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0x134], ecx
movss xmm1, dword [ebp - 0x134]
mov dword [ebp - 0x130], eax
movss xmm0, dword [ebp - 0x130]
jmp 0x1012cd22
xorps xmm0, xmm0
xorps xmm1, xmm1
mov eax, dword [ebx + 0x20]
movss dword [edx + eax], xmm1
mov eax, dword [ebx + 0x20]
movss dword [edx + eax + 4], xmm0
add edx, 8
inc edi
cmp edi, dword [ebp - 0xfc]
jl 0x1012ccca
push dword [ebp - 0xd8]
push dword [ebx + 0x20]
push dword [ebp - 0xe8]
push dword [ebx + 0x38]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, dword [ebp - 0xc8]
add esp, 0x10
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + esi*4 + 0x14], eax
cmp eax, 0xffffffff
je 0x1012d43f
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1012cd7c
mov dword [eax + esi*4], esi
mov edi, dword [ebp - 0xc4]
inc esi
mov dword [ebp - 0xc8], esi
cmp esi, dword [ebp - 0xc0]
jl 0x1012caef
mov eax, dword [ebp - 0xd0]
push 0xc
inc eax
pop ecx
add dword [ebp - 0x110], ecx
mov dword [ebp - 0xd0], eax
cmp eax, dword [ebx + 8]
jae 0x1012cdbb
mov edx, dword [ebp - 0x110]
jmp 0x1012c64b
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0x1c], 0
je 0x1012cdd7
push dword [ebx + 0x3c]
push edi
call fcn.1012b3da
pop ecx
pop ecx
test eax, eax
js 0x1012d442
push dword [ebx + 0x20]
call fcn.10147b8d
and dword [ebx + 0x20], 0
jmp 0x1012e32d
xor eax, eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xec], eax
cmp dword [edi + 0x14], eax
jg 0x1012e323
cmp dword [edi + 0x1c], eax
jg 0x1012e323
push 0x164
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x1012ce3e
push dword [ebx + 0x3c]
mov ecx, eax
call fcn.100ccf3d
mov edi, eax
mov dword [ebp - 0xd0], eax
jmp 0x1012ce46
xor edi, edi
mov dword [ebp - 0xd0], edi
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1012d43f
mov eax, dword [ebp - 0xc4]
mov dword [eax + 0xc], edi
mov eax, dword [edi + 0x148]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x34]
mov dword [edi + 0x148], ecx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [ebx + 0x38]
push dword [eax]
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, dword [edi]
xor eax, eax
pop ecx
pop ecx
inc eax
mov esi, dword [esi + 0x118]
mov ecx, esi
push eax
mov eax, dword [ebx]
push dword [eax + 0x66]
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
cmp dword [ebp - 0xe4], 0
jne 0x1012ced5
mov eax, dword [ebx + 0x38]
cmp byte [eax + 0x36], 0
jne 0x1012ced5
mov eax, dword [ebp - 0xc4]
jmp 0x1012cee2
mov eax, dword [ebp - 0xc4]
or dword [eax + 0x28], 0x3000
mov edx, dword [eax + 0x28]
mov ecx, dword [ebx]
test edx, 0x200
je 0x1012cf02
push dword [ecx + 0x66]
push dword [edi + 0x62]
push dword [ecx + 0x62]
push dword [eax + 0x24]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
jmp 0x1012cf15
imul eax, dword [ecx + 0x66], 0xc
push eax
push dword [ecx + 0x62]
push dword [edi + 0x62]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [edi]
xor eax, eax
inc eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0xbc]
mov esi, dword [esi + 0x128]
mov ecx, esi
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
and dword [ebp - 0xe0], 0
cmp dword [edi + 0xb2], 0
je 0x1012d0d8
cmp byte [ebp - 0x124], 0
je 0x1012cfa7
mov eax, dword [ebp - 0xc4]
test byte [eax + 0x28], 0x10
je 0x1012cf88
mov eax, dword [0x107d4510]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x1012d43f
mov eax, dword [edi]
push 1
push 0
push edi
mov esi, dword [eax + 0x12c]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebp - 0xc4]
test byte [eax + 0x28], 0x40
je 0x1012cfee
mov eax, dword [0x107d4510]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc8]
mov ecx, esi
call dword [0x10155aa8]
call esi
xor ecx, ecx
mov dword [ebx + 0x24], eax
mov eax, dword [edi]
inc ecx
push ecx
push ecx
push edi
mov esi, dword [eax + 0x130]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx]
cmp dword [eax + 0x96], 0
je 0x1012d014
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x14c]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov esi, dword [ebp - 0xc4]
test dword [esi + 0x28], 0x1000
je 0x1012d03b
lea eax, [ebp - 0xe8]
mov ecx, edi
push eax
push 0x14
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
js 0x1012d442
test dword [esi + 0x28], 0x4000
je 0x1012d05c
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
push 0x15
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
js 0x1012d442
test dword [esi + 0x28], 0x2000
je 0x1012d0ab
xor eax, eax
mov ecx, edi
inc eax
push eax
push eax
push 0
push 0x16
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
js 0x1012d442
mov eax, dword [edi]
push 0x16
push edi
mov esi, dword [eax + 0x158]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1012d0a4
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xec], ecx
jmp 0x1012d0ab
and dword [ebp - 0xec], 0
mov eax, dword [ebx]
cmp dword [eax + 0x9a], 0
je 0x1012d0d2
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x13c]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
jns 0x1012d0d8
jmp 0x1012d442
mov eax, dword [eax + 0x5c]
mov dword [edi + 0x5c], eax
xor eax, eax
mov dword [ebp - 0x108], eax
cmp dword [ebx + 8], eax
jbe 0x1012d74a
mov dword [ebp - 0x10c], 0x11
imul eax, eax, 0xc
add eax, dword [ebx + 0x30]
mov dword [ebp - 0xd4], eax
test byte [eax + 8], 2
jne 0x1012d734
mov esi, dword [ebx]
mov ecx, esi
push dword [ebp - 0x108]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
cmp byte [ebp - 0x124], 0
mov dword [ebp - 0xbc], eax
je 0x1012d14b
mov ecx, dword [esi + 0xa2]
mov eax, dword [ebp - 0x108]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0xc8], ecx
test ecx, ecx
je 0x1012d152
cmp dword [ecx], 0
mov dword [ebp - 0xc8], ecx
jne 0x1012d152
and dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0x108]
mov edx, ecx
mov eax, dword [esi + 0x9e]
shl edx, 2
add eax, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xd4]
test byte [eax + 8], 1
je 0x1012d54a
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
cmp dword [eax + 4], ecx
jle 0x1012d734
mov esi, dword [ebp - 0xe0]
mov eax, dword [eax]
push 3
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebx]
mov dword [ebp - 0x100], eax
sub eax, dword [ecx + 0x102]
cdq
idiv dword [ebp - 0x10c]
imul eax, eax, 6
add eax, dword [ecx + 0x10a]
pop ecx
mov dword [ebp - 0xcc], eax
mov eax, dword [edi]
push ecx
push esi
push edi
mov esi, dword [eax + 0xfc]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov edx, dword [ebp - 0xe0]
mov eax, dword [edi + 0x9e]
shl edx, 2
add eax, edx
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0xf4], eax
je 0x1012d20e
mov eax, dword [edi + 0xa6]
add eax, edx
mov dword [ebp - 0xd8], eax
jmp 0x1012d215
and dword [ebp - 0xd8], 0
mov ecx, dword [ebp - 0xe8]
test ecx, ecx
je 0x1012d22a
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
mov dword [ecx + edx], eax
mov esi, dword [ebp - 0x110]
test esi, esi
je 0x1012d251
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x100]
push 0x11
sub eax, dword [ecx + 0x102]
pop ecx
cdq
idiv ecx
mov ecx, dword [ebp - 0xe0]
mov dword [esi + ecx*4], eax
mov eax, dword [ebx]
mov ebx, dword [ebp - 0xf4]
cmp dword [eax + 0x10a], 0
je 0x1012d370
mov edi, dword [ebp - 0xcc]
xor esi, esi
mov eax, dword [ebp - 0xc0]
movzx edx, word [edi]
mov ecx, dword [ebx]
push 2
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov dword [esi + ecx], eax
pop eax
push 4
add edi, eax
pop eax
add esi, eax
push 0xc
pop eax
cmp esi, eax
jl 0x1012d26e
cmp dword [ebp - 0xec], 0
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xd0]
je 0x1012d2e1
mov esi, dword [ebp - 0xcc]
xor edx, edx
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xec]
mov eax, dword [edi + ebx*4]
movzx ecx, word [esi]
push 2
mov dword [edx + eax], ecx
pop eax
push 4
add esi, eax
pop eax
add edx, eax
push 0xc
pop eax
cmp edx, eax
jl 0x1012d2bb
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x96]
test eax, eax
je 0x1012d315
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0x114]
movzx ecx, byte [ecx + 4]
xor ecx, dword [edx + eax]
and ecx, 7
xor ecx, dword [edx + eax]
mov eax, dword [edi + 0x96]
mov dword [eax + esi*4], ecx
cmp dword [ebp - 0xc8], 0
je 0x1012d4a0
push esi
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov ecx, eax
mov dword [ebp - 0xf4], ecx
test ecx, ecx
je 0x1012d43f
mov eax, dword [ebp - 0xcc]
xor esi, esi
mov dword [ebp - 0xdc], esi
cmp dword [ebx + 0x2c], 0
mov edx, dword [ebx]
je 0x1012d44a
cmp dword [edx + 0x10a], 0
mov edx, dword [edx + 0x6e]
je 0x1012d3d4
movzx ecx, word [eax]
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
jmp 0x1012d3df
mov edi, dword [ebp - 0xc0]
xor edx, edx
mov eax, dword [edi]
mov ecx, dword [ebx]
push 4
mov eax, dword [edx + eax]
mov dword [edx + ecx], eax
pop eax
add edx, eax
push 0xc
pop eax
cmp edx, eax
jl 0x1012d378
cmp dword [ebp - 0xec], 0
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xd0]
je 0x1012d2e1
mov esi, dword [ebp - 0xe0]
xor ecx, ecx
mov edi, dword [ebp - 0xec]
push 3
pop ebx
mov eax, dword [edi + esi*4]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, ebx
jl 0x1012d3b8
mov ebx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xd0]
jmp 0x1012d2e7
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
mov eax, dword [esi + eax]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x18]
push 0
push ecx
mov esi, dword [eax]
lea ecx, [ebp - 0x134]
push ecx
push eax
mov esi, dword [esi + 0x98]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp - 0x18]
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xdc]
mov ecx, dword [edx]
mov dword [esi + ecx], eax
mov ecx, edx
mov eax, dword [ecx]
cmp dword [esi + eax], 0xffffffff
jne 0x1012d479
push 0xfffffffffffffff4
pop eax
call fcn.10147dd6
ret 8
cmp dword [edx + 0x102], 0
mov ecx, dword [ecx]
je 0x1012d465
movzx edx, word [eax]
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
jmp 0x1012d470
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
mov eax, dword [esi + eax]
mov dword [esi + ecx], eax
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xcc]
push 2
pop edx
add eax, edx
push 4
pop edx
add esi, edx
mov dword [ebp - 0xcc], eax
push 0xc
pop edx
mov dword [ebp - 0xdc], esi
cmp esi, edx
jl 0x1012d348
cmp dword [ebp - 0xd8], 0
je 0x1012d4eb
xor esi, esi
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + esi + 5]
mov eax, dword [ebx]
mov eax, dword [eax + 0xf6]
push dword [eax + ecx*8]
mov ecx, dword [ebx + 0x24]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebp - 0xd8]
mov ecx, dword [edx]
mov dword [esi + ecx], eax
mov eax, dword [edx]
cmp dword [esi + eax], 0xffffffff
je 0x1012d43f
push 4
pop eax
add esi, eax
push 0xc
pop eax
cmp esi, eax
jl 0x1012d4ab
mov eax, dword [edi + 0x9a]
mov esi, dword [ebp - 0xe0]
test eax, eax
je 0x1012d504
mov ecx, dword [ebp - 0xbc]
mov dword [eax + esi*4], ecx
mov ecx, dword [edi + 0x92]
test ecx, ecx
je 0x1012d522
mov eax, dword [ebx]
mov edx, dword [ebp - 0x114]
mov eax, dword [eax + 0x92]
mov eax, dword [edx + eax]
mov dword [ecx + esi*4], eax
mov ecx, dword [ebp - 0xb8]
inc esi
mov eax, dword [ebp - 0xd4]
inc ecx
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xb8], ecx
cmp ecx, dword [eax + 4]
jl 0x1012d198
jmp 0x1012d734
push ecx
mov ecx, esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
movzx ecx, ax
mov dword [ebp - 0xcc], ecx
mov ecx, dword [edi]
push eax
push dword [ebp - 0xe0]
mov esi, dword [ecx + 0xfc]
mov ecx, esi
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xe0]
shl eax, 2
push eax
mov eax, dword [ebp - 0xc0]
shl esi, 2
mov dword [ebp - 0xd8], esi
push dword [eax]
mov eax, dword [edi + 0x9e]
push dword [esi + eax]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
mov eax, dword [eax + 0x96]
test eax, eax
je 0x1012d5cd
mov edx, dword [ebp - 0x114]
mov ecx, dword [edi + 0x96]
mov eax, dword [edx + eax]
mov dword [esi + ecx], eax
mov ecx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0x110]
test ecx, ecx
jne 0x1012d5e1
test esi, esi
je 0x1012d623
mov edx, dword [ebp - 0xd4]
mov edx, dword [edx]
test edx, edx
je 0x1012d623
mov edx, dword [edx]
test ecx, ecx
je 0x1012d604
mov esi, dword [ebp - 0xe0]
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
mov esi, dword [ebp - 0x110]
test esi, esi
je 0x1012d623
mov ecx, dword [ebx]
push 0x11
sub edx, dword [ecx + 0x102]
mov eax, edx
cdq
pop ecx
idiv ecx
mov edx, dword [ebp - 0xe0]
mov dword [esi + edx*4], eax
jmp 0x1012d629
mov edx, dword [ebp - 0xe0]
cmp dword [ebp - 0xec], 0
mov esi, dword [ebp - 0xcc]
je 0x1012d655
xor ecx, ecx
test esi, esi
je 0x1012d655
mov edi, dword [ebp - 0xec]
mov eax, dword [edi + edx*4]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, esi
jb 0x1012d644
mov edi, dword [ebp - 0xd0]
cmp dword [ebp - 0xc8], 0
je 0x1012d686
push edx
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov ecx, eax
mov dword [ebp - 0xb8], ecx
test ecx, ecx
je 0x1012d43f
xor eax, eax
mov dword [ebp - 0xdc], eax
test esi, esi
jne 0x1012d79d
mov ecx, dword [ebp - 0xcc]
cmp dword [ebx + 0x24], 0
mov edx, dword [ebp - 0xd8]
je 0x1012d6fd
mov eax, dword [edi + 0xa6]
xor esi, esi
add eax, edx
mov dword [ebp - 0xb8], eax
test ecx, ecx
je 0x1012d6fd
mov eax, dword [edi + 0x9e]
add eax, dword [ebp - 0x114]
push esi
push eax
push dword [ebp - 0xd4]
push dword [ebx]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
add esp, 0x10
test eax, eax
je 0x1012d6ee
mov ecx, dword [ebx + 0x24]
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebp - 0xb8]
mov ecx, dword [edx]
mov dword [ecx + esi*4], eax
mov eax, dword [edx]
cmp dword [eax + esi*4], 0xffffffff
je 0x1012d43f
inc esi
cmp esi, dword [ebp - 0xcc]
jb 0x1012d6ac
mov edx, dword [ebp - 0xd8]
mov eax, dword [edi + 0x9a]
test eax, eax
je 0x1012d710
mov ecx, dword [ebp - 0xbc]
mov dword [edx + eax], ecx
mov ecx, dword [edi + 0x92]
test ecx, ecx
je 0x1012d72e
mov eax, dword [ebx]
mov esi, dword [ebp - 0x114]
mov eax, dword [eax + 0x92]
mov eax, dword [esi + eax]
mov dword [edx + ecx], eax
inc dword [ebp - 0xe0]
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp eax, dword [ebx + 8]
jb 0x1012d0f3
cmp byte [ebp - 0x124], 0
je 0x1012d88b
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x1012d850
mov eax, dword [ecx]
push edi
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x2c], 0
jmp 0x1012d88b
mov ecx, dword [ebp - 0xb8]
mov edx, eax
mov eax, dword [ebp - 0xc8]
shl edx, 2
mov dword [ebp - 0xc0], edx
mov esi, dword [eax]
add esi, edx
cmp dword [ebx + 0x2c], 0
je 0x1012d829
mov eax, dword [ebx]
push 0
mov edx, dword [eax + 0x6e]
mov eax, dword [esi]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x13c]
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0x98]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp - 0x11c]
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov esi, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xc0]
mov ecx, dword [esi]
mov dword [edx + ecx], eax
mov eax, dword [esi]
cmp dword [edx + eax], 0xffffffff
je 0x1012d43f
jmp 0x1012d830
mov ecx, dword [ecx]
mov eax, dword [esi]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xcc]
inc eax
mov dword [ebp - 0xdc], eax
cmp eax, ecx
jb 0x1012d797
jmp 0x1012d68c
mov esi, dword [edi]
xor eax, eax
inc eax
push eax
mov eax, dword [ebx]
mov esi, dword [esi + 0x11c]
mov ecx, esi
push dword [eax + 0x72]
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x72]
shl eax, 3
push eax
push dword [ecx + 0x6e]
push dword [edi + 0x6e]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x1012d92c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x24]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0xc]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xb8], eax
xor eax, eax
inc eax
push eax
mov ecx, dword [ecx]
push edi
mov edi, dword [ebp - 0xd0]
push edi
mov esi, dword [ecx + 0x120]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x1012d915
push 0xc
xor ecx, ecx
pop edx
mov edi, dword [edi + 0x76]
mov esi, eax
add edi, ecx
add ecx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp - 0xd0]
test eax, eax
jne 0x1012d8fc
mov eax, dword [ebx + 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x24], 0
mov esi, dword [ebx]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [esi + 0xbe]
test ecx, ecx
je 0x1012dc72
test dword [eax + 0x28], 0x800
je 0x1012dc72
mov eax, dword [eax + 0x20]
xor edx, edx
mov dword [ebp - 0xdc], eax
cmp eax, 2
jne 0x1012d9b0
cmp dword [esi + 0xb6], eax
je 0x1012d9b0
and dword [ebp - 0xb8], edx
test ecx, ecx
je 0x1012d9b2
mov edi, dword [ebp - 0xb8]
mov ebx, edx
push edi
mov ecx, esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
dec ebx
movzx eax, ax
add ebx, eax
inc edi
cmp edi, dword [esi + 0xbe]
jb 0x1012d979
mov edi, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xc0]
jmp 0x1012d9b2
mov edx, ecx
push 2
pop ecx
cmp dword [esi + 0xb6], ecx
je 0x1012d9ce
cmp eax, ecx
je 0x1012d9ce
xor cl, cl
xor eax, eax
mov byte [ebp - 0xf5], cl
inc eax
jmp 0x1012d9d9
xor eax, eax
inc eax
mov cl, al
mov byte [ebp - 0xf5], al
mov esi, dword [edi]
push eax
push 2
or eax, 0xffffffff
test cl, cl
mov esi, dword [esi + 0x10c]
pop ecx
cmovne eax, ecx
mov ecx, esi
push eax
push edx
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx]
cmp dword [eax + 0xd2], 0
je 0x1012da28
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x140]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx]
cmp dword [eax + 0xc2], 0
je 0x1012da4e
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x114]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov ecx, dword [ebx]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xcc], esi
cmp dword [ecx + 0xbe], edx
jbe 0x1012dc6c
and dword [ebp - 0xd4], edx
mov eax, edx
shl eax, 2
mov dword [ebp - 0x100], eax
mov eax, dword [ecx + 0xca]
add eax, dword [ebp - 0x100]
push edx
mov dword [ebp - 0xd8], eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov cx, ax
mov eax, dword [ebp - 0xc4]
movzx edx, cx
mov dword [ebp - 0xdc], edx
cmp dword [eax + 0x20], 2
jne 0x1012db95
and dword [ebp - 0xbc], 0
lea ecx, [edx - 1]
mov dword [ebp - 0xf4], ecx
test ecx, ecx
jle 0x1012dc48
imul eax, esi, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [edi + 0xca]
mov eax, dword [ebp - 0xd8]
shl esi, 2
add edx, esi
mov esi, dword [ebp - 0xbc]
mov eax, dword [eax]
mov ecx, dword [edx]
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [edx]
mov edx, esi
mov esi, dword [ebp - 0xcc]
mov eax, dword [eax]
mov eax, dword [eax + edx*4 + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xd2]
mov dword [ebp - 0xdc], ecx
test ecx, ecx
je 0x1012db3d
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x100]
mov ecx, dword [edi + 0xd2]
mov eax, dword [eax + edx]
mov edx, dword [ebp - 0xbc]
mov dword [ecx + esi*4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc2]
mov eax, dword [ebp - 0xc0]
test ecx, ecx
je 0x1012db6d
mov edi, dword [edi + 0xc2]
mov esi, dword [ebp - 0xd4]
add edi, eax
lea esi, [ecx + esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xcc]
inc esi
add eax, 0xc
inc edx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
cmp edx, dword [ebp - 0xf4]
jl 0x1012dad2
jmp 0x1012dc42
cmp byte [ebp - 0xf5], 0
jne 0x1012dbc7
mov eax, dword [edi]
push ecx
push esi
push edi
mov esi, dword [eax + 0x110]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov esi, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xdc]
mov ecx, dword [edi + 0xca]
mov eax, esi
shl eax, 2
add ecx, eax
shl edx, 2
mov eax, dword [ebp - 0xd8]
push edx
push dword [eax]
push dword [ecx]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx]
add esp, 0xc
mov edx, dword [eax + 0xd2]
test edx, edx
je 0x1012dc0a
mov eax, dword [ebp - 0x100]
mov ecx, dword [edi + 0xd2]
mov eax, dword [eax + edx]
mov dword [ecx + esi*4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc2]
test eax, eax
je 0x1012dc3b
mov esi, dword [ebp - 0xd4]
mov edi, dword [edi + 0xc2]
lea esi, [eax + esi]
imul eax, dword [ebp - 0xcc], 0xc
add edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xcc]
inc esi
mov dword [ebp - 0xcc], esi
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebx]
inc edx
add dword [ebp - 0xd4], 0xc
mov dword [ebp - 0xb8], edx
cmp edx, dword [ecx + 0xbe]
jb 0x1012da72
jmp 0x1012dc72
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x28]
test eax, 0x8000
je 0x1012dca4
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
test eax, eax
je 0x1012d43f
xor ecx, ecx
cmp dword [edi + 0x66], ecx
jbe 0x1012dc9b
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, dword [edi + 0x66]
jb 0x1012dc92
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 0x28]
test al, 4
je 0x1012dcc5
mov eax, dword [edi]
push 1
push edi
mov esi, dword [eax + 0x17c]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx + 0x38]
cmp byte [eax + 0x36], 0
jne 0x1012dcdb
cmp dword [ebp - 0xe4], 0
je 0x1012e32e
call sym.rt3d.dll_public:_static_class_e3_MEM____stdcall_e3_MEM::Create_void_
mov ecx, dword [ebx + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x38]
cmp dword [eax + 8], 0
je 0x1012d43f
push 0x20
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov dword [ebp - 0xb8], eax
push 2
pop ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1012dd20
push 4
pop ecx
push ecx
mov ecx, dword [ebx + 0x38]
push dword [ecx + 8]
mov ecx, eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov ecx, eax
jmp 0x1012dd22
xor ecx, ecx
mov eax, dword [ebx + 0x38]
or dword [ebp - 4], 0xffffffff
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0xc], 0
je 0x1012d43f
cmp byte [eax + 0x36], 0
je 0x1012dfec
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
push ecx
mov esi, dword [eax + 0x134]
mov ecx, esi
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [edi]
push 0x14
push edi
mov esi, dword [eax + 0x158]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1012dd84
mov eax, dword [eax + 0x10]
jmp 0x1012dd86
xor eax, eax
mov dword [ebp - 0xbc], eax
mov eax, dword [edi]
push 0x16
push edi
mov esi, dword [eax + 0x158]
mov ecx, esi
call dword [0x10155aa8]
call esi
xor eax, eax
mov dword [ebp - 0xd4], eax
cmp dword [edi + 0xb2], eax
jbe 0x1012df2c
mov esi, dword [ebp - 0xbc]
push eax
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
movzx eax, ax
xor edx, edx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx]
mov dword [ebp - 0xd8], edx
mov ecx, dword [eax + 0xaa]
test ecx, ecx
je 0x1012ddfc
mov eax, dword [esi]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xd8], edx
test edx, edx
je 0x1012ddfc
xor eax, eax
cmp dword [edx], eax
cmove edx, eax
mov dword [ebp - 0xd8], edx
xor ecx, ecx
xor eax, eax
cmp cx, word [ebp - 0xb8]
jmp 0x1012defc
movss xmm1, dword [0x10160bd8]
mov dword [ebp - 0x118], 0x3f800000
mov dword [ebp - 0x11c], 0x3f800000
mov dword [ebp - 0x120], 0x3f800000
test edx, edx
je 0x1012de63
movzx ecx, ax
lea edi, [ebp - 0x120]
mov eax, dword [edx]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebx]
imul esi, ecx, 0xc
add esi, dword [eax + 0x7e]
mov eax, dword [eax + 0x6a]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd0]
test eax, eax
je 0x1012de83
movss xmm1, dword [eax + ecx*4]
jmp 0x1012de83
mov eax, dword [ebx]
mov eax, dword [eax + 0x8a]
test eax, eax
je 0x1012de83
imul esi, dword [esi], 0xc
lea edi, [ebp - 0x120]
add esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd0]
movss xmm0, dword [ebp - 0x120]
mov eax, dword [edi + 0xaa]
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc0]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x11c]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x118]
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x14], xmm1
mov eax, dword [eax + edx*4]
movzx ecx, cx
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ecx + 0xc]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
je 0x1012d43f
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xd8]
inc eax
cmp ax, word [ebp - 0xb8]
mov esi, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
jb 0x1012de0c
push 4
pop eax
add esi, eax
mov eax, dword [ebp - 0xd4]
inc eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xd4], eax
cmp eax, dword [edi + 0xb2]
jb 0x1012ddbb
mov esi, dword [edi]
xor eax, eax
inc eax
push eax
mov eax, dword [ebx + 0x38]
mov esi, dword [esi + 0x124]
mov ecx, esi
mov eax, dword [eax + 0xc]
push dword [eax + 0x10]
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x190]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1012dfec
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xb8], eax
mov edi, dword [edi + 0x7e]
lea esi, [ebp - 0x120]
movss xmm0, dword [edx + 0x1c]
add edi, eax
movss xmm1, dword [edx + 0x20]
movss xmm2, dword [edx + 0x24]
movss dword [ebp - 0x120], xmm0
movss dword [ebp - 0x11c], xmm1
movss dword [ebp - 0x118], xmm2
movsd dword es:[edi], dword [esi]
push 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xd0]
mov eax, dword [edx + 0x28]
mov ecx, dword [edi + 0x6a]
mov dword [ebx + ecx], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [edx]
pop ecx
add eax, ecx
push 4
pop ecx
add ebx, ecx
mov dword [ebp - 0xb8], eax
test edx, edx
jne 0x1012df86
mov ebx, dword [ebp - 0xf0]
cmp dword [ebp - 0xe4], 0
je 0x1012e32e
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0xfc], ecx
jle 0x1012e32e
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc0], eax
test ecx, ecx
je 0x1012e30e
mov eax, dword [edi]
and dword [ebp - 0xd4], 0
and dword [ebp - 0xd8], 0
push 0x14
mov esi, dword [eax + 0x158]
mov ecx, esi
push edi
call dword [0x10155aa8]
call esi
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1012e056
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x100], eax
jmp 0x1012e05d
and dword [ebp - 0x100], 0
mov eax, dword [edi]
push 0x16
push edi
mov esi, dword [eax + 0x158]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebx + 0x10]
mov esi, dword [edi]
mov eax, dword [eax + ecx*4]
mov esi, dword [esi + 0x194]
mov dword [ebp - 0x114], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, esi
mov dword [ebp - 0xb8], eax
xor eax, eax
inc eax
push eax
push eax
push dword [ebp - 0xc0]
push edi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012d442
mov eax, dword [0x107d4510]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x28], eax
test eax, eax
je 0x1012d43f
mov eax, dword [ebp - 0xc0]
mov ecx, dword [edi]
movzx eax, ax
mov dword [ebp - 0xf0], eax
add eax, 0x384
push eax
mov esi, dword [ecx + 0x158]
mov ecx, esi
push edi
call dword [0x10155aa8]
call esi
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1012e113
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xdc], ecx
jmp 0x1012e11a
and dword [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0xf4], eax
cmp dword [edi + 0xb2], eax
jbe 0x1012e2d7
push eax
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebp - 0x100]
movzx eax, ax
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x114]
mov edx, dword [edx]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xbc], ecx
test ecx, ecx
je 0x1012e167
xor eax, eax
cmp dword [ecx], eax
cmove ecx, eax
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp - 0xc4]
test byte [eax + 0x28], 0x10
je 0x1012e1c2
mov ecx, dword [ebx]
push edx
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, dword [ebp - 0xd4]
mov esi, eax
cmp edx, esi
je 0x1012e1ba
and dword [ebp - 0xd8], 0
lea edx, [esi + 0x88]
xor ecx, ecx
movzx eax, word [edx]
cmp eax, dword [ebp - 0xc0]
je 0x1012e1ac
inc ecx
add edx, 0x60
cmp ecx, 0x1a
jl 0x1012e196
jmp 0x1012e1b2
mov dword [ebp - 0xd8], ecx
mov edx, esi
mov dword [ebp - 0xd4], edx
mov ecx, dword [ebp - 0xbc]
jmp 0x1012e1c8
mov edx, dword [ebp - 0xd4]
xor esi, esi
mov dword [ebp - 0xe4], esi
cmp dword [ebp - 0x108], esi
jbe 0x1012e2b5
test ecx, ecx
je 0x1012e255
mov eax, dword [ecx]
mov ecx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xb8]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + eax*8]
mov eax, dword [edi + eax*8 + 4]
mov edi, dword [ebp - 0xd0]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], eax
test edx, edx
je 0x1012e268
push dword [ebp - 0xd8]
mov esi, dword [edx]
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x128]
push eax
mov esi, dword [esi + 0x98]
mov ecx, esi
push edx
call dword [0x10155aa8]
call esi
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
mov esi, dword [ebp - 0xe4]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ecx
jmp 0x1012e268
xorps xmm0, xmm0
movss dword [ebp - 0x128], xmm0
movss dword [ebp - 0x124], xmm0
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x128]
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov edx, eax
cmp edx, 0xffffffff
je 0x1012d43f
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + eax*4]
mov dword [ecx + esi*4], edx
inc esi
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xe4], esi
cmp esi, dword [ebp - 0x108]
jl 0x1012e1dc
jmp 0x1012e2bb
mov eax, dword [ebp - 0xf4]
push 4
pop ecx
add dword [ebp - 0x100], ecx
inc eax
mov dword [ebp - 0xf4], eax
cmp eax, dword [edi + 0xb2]
jb 0x1012e12e
mov eax, dword [ebx + 0x28]
push dword [ebp - 0xf0]
push edi
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [ebx + 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x28], 0
mov ecx, dword [ebp - 0x10c]
inc ecx
mov dword [ebp - 0x10c], ecx
cmp ecx, dword [ebp - 0xfc]
jl 0x1012e00d
jmp 0x1012e32e
push str.This_combination_of_e3_CONVERT.flags_not_yet_realized
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1012e352
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [ebx + 0x38]
and dword [eax + 8], 0
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0xc], 0
je 0x1012e36b
push 0x20
push dword [eax + 0xc]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [ebx + 0x38]
pop ecx
pop ecx
and dword [eax + 0xc], 0
cmp dword [ebx + 0x10], 0
je 0x1012e37e
push dword [ebx + 0x10]
call fcn.10147b8d
and dword [ebx + 0x10], 0
pop ecx
cmp dword [ebx + 0xc], 0
je 0x1012e391
push dword [ebx + 0xc]
call fcn.10147b8d
and dword [ebx + 0xc], 0
pop ecx
cmp dword [ebx + 0x14], 0
je 0x1012e3a4
push dword [ebx + 0x14]
call fcn.10147b8d
and dword [ebx + 0x14], 0
pop ecx
cmp dword [ebx + 0x18], 0
je 0x1012e3b7
push dword [ebx + 0x18]
call fcn.10147b8d
and dword [ebx + 0x18], 0
pop ecx
mov esi, dword [ebp - 0xc4]
cmp dword [esi + 0x18], 0
jle 0x1012e885
mov edi, dword [esi + 8]
test edi, edi
je 0x1012e69c
mov edi, dword [edi + 0x24]
push 0x10
push edi
mov dword [ebp - 0xdc], edi
call sym.rt3d.dll_public:_static_class_e3_COLLECTION____stdcall_e3_COLLECTION::Create_int__int_
mov dword [ebx + 0x44], eax
test eax, eax
je 0x1012d43f
xor edx, edx
mov dword [ebp - 0xb8], edx
test edi, edi
jle 0x1012e43e
mov eax, dword [ebx + 0x44]
push edx
mov edi, dword [eax]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [edi + 0x30]
push eax
push dword [ebx + 0x44]
call dword [0x10155aa8]
call dword [edi + 0x30]
mov edx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xc4]
inc edx
mov dword [ebp - 0xb8], edx
cmp edx, dword [ebp - 0xdc]
jl 0x1012e3fa
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x44]
xor edx, edx
mov dword [ebp - 0xc0], edx
cmp dword [ecx + 0x24], edx
jle 0x1012e66a
mov eax, dword [ecx]
push edx
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x44]
mov edi, eax
push 0
push dword [ebp - 0xc0]
mov dword [ebp - 0xe8], edi
mov edx, dword [ecx]
push ecx
mov esi, dword [edx + 0x20]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [0x107d4510]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xa8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1012d43f
mov ecx, dword [edi]
push 1
push eax
push edi
mov esi, dword [ecx + 0xe4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xb8], eax
cmp eax, 1
jle 0x1012e618
and dword [ebp - 0xbc], 0
push 0x164
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov dword [ebp - 0xdc], eax
push 3
pop ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1012e519
mov ecx, dword [ebx]
push dword [ecx + 0x28]
mov ecx, eax
call fcn.100ccf3d
mov edi, eax
jmp 0x1012e51b
xor edi, edi
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1012d43f
mov eax, dword [ebp - 0xc4]
push edi
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012e683
push dword [ebp - 0xe8]
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [edi + 0x148]
pop ecx
pop ecx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x34]
mov dword [edi + 0x148], ecx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x40]
push 2
pop eax
push eax
mov eax, dword [ecx]
push dword [ebp - 0xbc]
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebp - 0xe8]
push eax
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
js 0x1012d442
push dword [ebp - 0xbc]
lea eax, [ebp - 0x30]
push str.sub__02zd
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
add esp, 0xc
mov esi, dword [eax + 0x48]
push ecx
push edi
mov ecx, esi
call dword [0x10155aa8]
call esi
mov esi, dword [ebp - 0xbc]
inc esi
mov dword [ebp - 0xbc], esi
cmp esi, dword [ebp - 0xb8]
jl 0x1012e4ee
mov esi, dword [ebp - 0xe8]
mov ecx, esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push 0x164
push esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
pop ecx
jmp 0x1012e636
mov eax, dword [ebp - 0xc4]
push edi
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10155aa8]
call esi
test eax, eax
js 0x1012e683
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x1012e651
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x40], 0
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebx + 0x44]
inc edx
mov dword [ebp - 0xc0], edx
cmp edx, dword [ecx + 0x24]
jl 0x1012e465
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x44], 0
jmp 0x1012e885
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push 0x164
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
pop ecx
jmp 0x1012d43f
mov eax, dword [0x107d4510]
mov edi, dword [esi + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xa8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1012d43f
mov ecx, dword [edi]
push 1
push eax
push edi
mov esi, dword [ecx + 0xe4]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x40]
xor eax, eax
inc eax
cmp dword [ecx + 0x24], eax
jle 0x1012e84f
mov ecx, dword [ebp - 0xc4]
xor edx, edx
mov dword [ebp - 0xe4], edx
mov dword [ecx + 0xc], edx
mov eax, dword [ebx + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0xb8], eax
mov dword [ebx + 0x40], edx
test eax, eax
jle 0x1012e839
push 0x164
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
mov dword [ebp - 0xdc], eax
push 4
pop ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1012e73e
mov ecx, dword [ebx]
push dword [ecx + 0x28]
mov ecx, eax
call fcn.100ccf3d
jmp 0x1012e740
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x1012d43f
mov eax, dword [eax + 0x148]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebp - 0xbc]
push ecx
mov dword [eax + 0x148], ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10155aa8]
call esi
push edi
push dword [ebp - 0xbc]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [ebp - 0xc4]
pop ecx
pop ecx
push 2
mov ecx, dword [eax + 8]
pop eax
push eax
push dword [ebp - 0xe4]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov esi, dword [ebp - 0xbc]
mov ecx, edi
push eax
push esi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
test eax, eax
js 0x1012d442
mov eax, dword [ebp - 0xc4]
push esi
push dword [ebp - 0xe4]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x10155aa8]
call esi
push dword [ebp - 0xe4]
lea eax, [ebp - 0xb4]
push str.sub__02zd
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
mov eax, dword [edi]
lea ecx, [ebp - 0xb4]
add esp, 0xc
mov esi, dword [eax + 0x48]
push ecx
push edi
mov ecx, esi
call dword [0x10155aa8]
call esi
mov esi, dword [ebp - 0xe4]
inc esi
mov dword [ebp - 0xe4], esi
cmp esi, dword [ebp - 0xb8]
jl 0x1012e715
mov ecx, edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
push 0x164
push edi
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
pop ecx
jmp 0x1012e885
test ecx, ecx
je 0x1012e885
cmp dword [ecx + 0x24], 0
je 0x1012e871
mov eax, dword [ecx]
push 0
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [edi + 0x5c], eax
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10155aa8]
call esi
and dword [ebx + 0x40], 0
mov edi, dword [ebp - 0xc4]
test dword [edi + 0x28], 0x100
je 0x1012e937
mov ecx, dword [ebx]
cmp dword [ecx + 0xee], 0
je 0x1012e937
cmp dword [ecx + 0xf6], 0
je 0x1012e937
mov eax, dword [ecx]
push 0
push ecx
mov esi, dword [eax + 0x188]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x1012e937
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1012e91f
xor edx, edx
mov dword [ebp - 0xb8], edx
cmp dword [ecx + 0x24], edx
jle 0x1012e92a
mov eax, dword [ecx]
push edx
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10155aa8]
call esi
push dword [ebx + 0x1c]
push eax
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
pop ecx
test eax, eax
js 0x1012d442
mov edx, dword [ebp - 0xb8]
mov ecx, dword [edi + 8]
inc edx
mov dword [ebp - 0xb8], edx
cmp edx, dword [ecx + 0x24]
jl 0x1012e8e4
jmp 0x1012e92a
push eax
push dword [edi + 0xc]
call sym.rt3d.dll_struct_POINT3D___stdcall_GetRightAngle_struct_MATRIX3D___struct_POINT3D__bool_
pop ecx
pop ecx
push dword [ebx + 0x1c]
call fcn.10147b8d
and dword [ebx + 0x1c], 0
pop ecx
xor eax, eax
inc eax
jmp 0x1012d442