Function at 0x100eb7da
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x198], eax
mov eax, dword [ebx + 0x164]
mov eax, dword [eax + 0x14]
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x1a8], edi
mov dword [ebx + 0x168], eax
cmp edi, esi
jne 0x100eb844
mov edi, dword [ebx + 0x10c]
mov dword [ebp - 0x1a8], edi
cmp edi, esi
jne 0x100eb844
push 0xfffffffffffffff8
pop eax
jmp 0x100ed667
mov eax, dword [ebx]
push 1
push esi
push 0x7d9
push ebx
call dword [eax + 0x1c]
mov dword [edi + 0x68], eax
cmp dword [ebp - 0x1d4], esi
jne 0x100eb887
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
mov eax, dword [edi + 0x78]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x1d4], eax
cmp dword [ebx + 0x13c], esi
je 0x100eb8b6
test byte [ebp + 0x1c], 1
jne 0x100eb8b6
push dword [ebp - 0x1d4]
or dword [ebx + 0x158], 0x20000
push dword [ebp - 0x210]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
push 0xfffffffffffffffe
jmp 0x100eb83e
mov ecx, dword [ebp + 0x1c]
or dword [ebx + 0x158], 0x40000000
xor eax, eax
inc eax
shr ecx, 3
and ecx, eax
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebx + 0x164]
mov dword [eax + 0xa4], ecx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x294], eax
cmp dword [edi + 0x14], esi
je 0x100ed609
cmp dword [0x101626f8], esi
jne 0x100eb92c
mov ecx, 0x101626f8
mov dword [0x101626f8], esi
mov dword [0x10162708], esi
mov dword [0x101626fc], esi
mov dword [0x10162704], 0x3e8
mov dword [0x1016270c], esi
mov byte [0x10162710], 0
call fcn.100eb3c8
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x198]
mov dword [eax + 0x1c], ecx
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, dword [ebx + 0x164]
movzx ecx, byte [esi + 0x11]
xor edx, edx
test al, al
sete dl
and ecx, edx
shl ecx, 0x19
xor ecx, dword [ebx + 0x158]
and ecx, 0x2000000
xor dword [ebx + 0x158], ecx
cmp dword [ebx + 0x2a8], 0
je 0x100eb985
test dword [esi + 0x28], 0x80000
mov dword [ebp - 0x1d0], 2
jne 0x100eb98f
mov dword [ebp - 0x1d0], 1
fld dword [esi + 0x9c]
mov eax, dword [esi + 0x14]
and dword [ebp - 0x1b0], 0
fstp dword [ebp - 0x274]
cmp dword [ebp - 0x1d0], 0
mov dword [ebp - 0x278], eax
mov byte [ebp - 0x1bd], 1
jle 0x100ed61c
cmp dword [ebp - 0x1d0], 1
jle 0x100eb9fe
cmp dword [ebp - 0x1b0], 0
jle 0x100eb9fe
mov eax, dword [ebx + 0x164]
push ebx
mov dword [eax + 0x14], 9
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
pop ecx
mov ecx, ebx
call fcn.1009d0db
test al, al
jne 0x100eb9fe
or dword [ebx + 0x15c], 1
and dword [edi + 0x84], 0xfffffffe
push dword [ebp - 0x198]
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x34c]
xor esi, esi
inc esi
cmp dword [ebp - 0x1b0], esi
jge 0x100eba2a
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x54]
mov byte [ebp - 0x1bd], al
cmp byte [ebp - 0x1bd], 0
je 0x100ed5db
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x100eba44
mov dword [eax + 0x4c], esi
mov ecx, ebx
call fcn.1009d0db
mov ecx, dword [ebx + 0x158]
mov edx, ecx
shr edx, 8
movzx eax, al
and edx, esi
cmp edx, eax
je 0x100ebac4
shl eax, 8
xor eax, ecx
and eax, 0x100
xor eax, ecx
mov dword [ebx + 0x158], eax
mov eax, dword [ebx + 0xf4]
xor esi, esi
cmp dword [eax + 0x24], esi
jle 0x100ebaaf
mov eax, dword [ebx + 0xf4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebx + 0x158]
shr ecx, 6
xor ecx, dword [eax + 0x84]
and ecx, 4
xor dword [eax + 0x84], ecx
mov eax, dword [ebx + 0xf4]
inc esi
cmp esi, dword [eax + 0x24]
jl 0x100eba7e
or dword [edi + 0x80], 3
mov eax, dword [ebx]
push 0x3da6
push ebx
call dword [eax + 0xcc]
test byte [edi + 0x84], 2
je 0x100ebaf6
push dword [edi + 0x78]
mov eax, dword [edi + 0x14]
push dword [edi + 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
mov eax, dword [edi + 0x14]
and dword [edi + 0x84], 0xfffffffd
mov ecx, dword [eax]
push 0xb
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x100ed5f5
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x34]
test eax, eax
je 0x100ebb0c
or dword [edi + 0x80], 4
mov esi, 0x18000000
test dword [ebx + 0x158], esi
je 0x100ebb24
mov eax, dword [ebx]
push 1
push ebx
call dword [eax + 0x344]
test byte [edi + 0x80], 3
jne 0x100ebb3b
mov eax, dword [ebx + 0x158]
test al, 0x40
jne 0x100ebb3b
test esi, eax
je 0x100ebb45
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x340]
test byte [ebx + 0x15c], 4
je 0x100ebb6f
test dword [ebx + 0x158], 0x100
jne 0x100ebb68
mov eax, dword [ebx]
push 0x186
push ebx
call dword [eax + 0xcc]
or dword [ebx + 0x15c], 4
test byte [edi + 0x80], 3
je 0x100ebba1
push dword [ebp - 0x198]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test byte [ebp + 0x1c], 0x20
jne 0x100ebb9a
push dword [ebp - 0x198]
mov ecx, ebx
push 1
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
and dword [edi + 0x80], 0xfffffffd
push dword [ebp - 0x198]
and dword [edi + 0x80], 0xffffffef
mov eax, dword [ebx]
push ebx
call dword [eax + 0x350]
mov eax, dword [ebx]
push 3
push ebx
call dword [eax + 0x19c]
xor esi, esi
test dword [ebx + 0x158], 0x100
mov dword [ebp - 0x1c4], eax
jne 0x100ebbe5
cmp dword [ebp - 0x1b0], esi
jle 0x100ebbe5
or dword [edi + 0x80], 1
test byte [edi + 0x80], 5
jne 0x100ebbf8
test byte [ebp + 0x1c], 0x10
je 0x100ed53c
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x1bc], eax
cmp eax, esi
jge 0x100ebc14
mov eax, dword [ebx + 0x164]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 6
push eax
mov byte [ebp - 0x1a1], 1
call dword [ecx + 0x54]
mov eax, dword [ebp + 0x1c]
and eax, 0x10
mov dword [ebp - 0x2b0], eax
je 0x100ebc52
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x54]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 0xb
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x100ed30b
cmp dword [ebp - 0x1b0], 1
jge 0x100ebc6c
mov edx, dword [ebx + 0x16c]
mov eax, dword [edi + 0x14]
push dword [edx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x54]
test al, al
je 0x100ed30b
push dword [ebp - 0x198]
mov eax, dword [ebx]
push esi
push edi
push ebx
mov dword [ebx + 0x148], esi
call dword [eax + 0xc4]
mov dword [ebp - 0x1b8], eax
cmp eax, esi
jl 0x100ed30b
cmp dword [ebp - 0x198], esi
je 0x100ebcc9
mov ecx, dword [ebp - 0x198]
push 2
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test al, al
jne 0x100ebcc9
or dword [ebp - 0x1b8], 0xffffffff
jmp 0x100ed30b
cmp dword [ebp - 0x1b0], esi
jne 0x100ebce7
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x3d4]
test al, al
je 0x100ebce7
push edi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [ebx + 0x164]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1c8], 0x20000000
test eax, 0x800
je 0x100ebd0b
mov dword [ebp - 0x1c8], 0x28000000
test eax, 0x400
je 0x100ebd1c
or dword [ebp - 0x1c8], 0x40000000
test al, 8
je 0x100ebd2a
or dword [ebp - 0x1c8], 0x10000000
test dword [ebx + 0x158], 0x100
je 0x100ebd40
or dword [ebp - 0x1c8], 0x80000000
push 0x2e
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x154]
add esp, 0xc
cmp eax, esi
je 0x100ebd5f
mov dword [eax + 4], esi
mov byte [0x10162710], 0
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0x1cc], esi
cmp dword [eax + 0x30], esi
je 0x100ebdc0
cmp byte [0x101626f4], 0
je 0x100ebdc0
cmp dword [ebx + 0x148], esi
jle 0x100ebdc0
xor ecx, ecx
inc ecx
cmp dword [eax + 0x34], ecx
jge 0x100ebd93
mov dword [eax + 0x34], ecx
mov ecx, dword [ebx + 0x164]
mov eax, 0x3e8
cdq
idiv dword [ecx + 0x34]
mov dword [0x10162700], eax
push dword [ebx + 0x148]
push dword [ebx + 0x144]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
pop ecx
pop ecx
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1a0], esi
cmp dword [ebx + 0x148], esi
jle 0x100ec7a7
and dword [ebp - 0x1ac], 0
mov eax, dword [ebp - 0x1cc]
xor edx, edx
cmp eax, edx
je 0x100ebdf0
mov ecx, dword [ebp - 0x1a0]
mov edi, dword [eax + ecx*8]
jmp 0x100ebdfc
mov edi, dword [ebx + 0x144]
add edi, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x1a0]
mov byte [edi + 0xa0], dl
mov dword [ebp - 0x1b4], edi
mov dword [0x1016270c], eax
cmp ecx, edx
je 0x100ebe3f
mov esi, dword [ebx + 0x164]
cmp dword [esi + 0x30], edx
je 0x100ebe38
cmp byte [0x101626f4], dl
je 0x100ebe38
push esi
push 0x100ea464
jmp 0x100ebe3a
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x78]
cmp dword [ebx + 0x33c], 2
je 0x100ec7a1
xor eax, eax
mov dword [ebp - 0x208], eax
mov esi, dword [edi + 8]
cmp esi, eax
je 0x100ebe6c
mov ecx, dword [esi + 0x44]
shr ecx, 9
and cl, 1
mov byte [ebp - 0x19a], cl
jmp 0x100ebe72
mov byte [ebp - 0x19a], al
mov ecx, dword [ebx + 0x164]
mov esi, dword [ecx + 0x30]
cmp esi, eax
je 0x100ebeba
cmp byte [0x101626f4], al
je 0x100ebeba
cmp byte [0x10162710], al
je 0x100ebeba
cmp byte [ebp - 0x19a], al
jne 0x100ebeba
cmp esi, 2
je 0x100ec77f
mov eax, dword [ebx]
push 0x3f3a38
push 3
push ebx
call dword [eax + 0x198]
push dword [edi + 8]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
and dword [ebp - 0x208], 0
mov dword [ebp - 0x20c], eax
push dword [edi + 8]
mov eax, dword [ebx]
push dword [ebp - 0x1a8]
push ebx
call dword [eax + 0x3e8]
fld1
mov ecx, dword [ebp - 0x1f2]
mov edx, dword [ebx + 0x164]
movzx eax, al
shl eax, 2
xor eax, ecx
and eax, 4
xor ecx, eax
mov dword [ebp - 0x1f2], ecx
mov eax, dword [edx + 0x28]
shr eax, 7
and ecx, 0xfffffff4
and eax, 8
or eax, ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1f2], eax
mov dword [ebp - 0x1e2], ecx
mov si, word [edi + 0x8c]
and dword [ebp - 0x1ea], 0
fstp dword [ebp - 0x1e6]
mov word [ebp - 0x1f4], si
mov esi, dword [edi + 8]
test dword [esi + 0x44], 0x200
je 0x100ebf49
mov esi, 0x800
test word [edx + 0x2c], si
jne 0x100ebf4b
xor ecx, ecx
shl ecx, 7
xor ecx, eax
and ecx, 0x80
xor eax, ecx
cmp dword [ebx + 0x2a8], 0
mov dword [ebp - 0x1f2], eax
je 0x100ebf7a
push edi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov byte [ebp - 0x199], 1
test al, al
jne 0x100ebf81
mov byte [ebp - 0x199], 0
cmp byte [ebp - 0x19a], 0
je 0x100ebfa0
mov eax, dword [ebx + 0x164]
test dword [eax + 0x28], 0x40000
je 0x100ebfa0
mov byte [ebp - 0x199], 0
mov ecx, dword [ebp - 0x1a8]
mov ecx, dword [ecx + 0x14]
mov esi, dword [edi + 8]
lea eax, [ebp - 0x199]
call fcn.100eaa89
cmp byte [ebp - 0x199], 0
je 0x100ebfd8
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
push 1
push 1
push 0x3ea
push eax
call dword [ecx + 0x18]
push dword [ebp - 0x198]
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
lea esi, [edi + 0xc]
push esi
push dword [edi + 8]
push dword [ebp - 0x1a8]
push eax
call dword [ecx + 0xa0]
cmp byte [ebp - 0x199], 0
mov dword [ebp - 0x1d8], eax
je 0x100ec024
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
push 1
push 0
push 0x3ea
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 0x1d8], 1
jne 0x100ec6ba
mov eax, dword [ebp - 0x1ea]
test eax, eax
je 0x100ec5d2
push dword [ebp - 0x198]
mov dword [edi + 0x94], eax
mov eax, dword [ebp - 0x1f8]
mov dword [edi + 0x90], eax
fld dword [ebp - 0x1e6]
mov eax, dword [edi]
fstp dword [edi + 0x9c]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x2ac]
push edx
push eax
call dword [ecx + 0xb4]
test al, al
je 0x100ec532
lea esi, [ebp - 0x2ac]
fld dword [ebp - 0x2a0]
lea edi, [ebp - 0x270]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x2a0]
lea edi, [ebp - 0x264]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x21c]
fld dword [ebp - 0x29c]
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x234]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x230]
fld dword [ebp - 0x29c]
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x224]
fld dword [ebp - 0x298]
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x250]
fld dword [ebp - 0x298]
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x24c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x244]
fld dword [ebp - 0x298]
lea esi, [ebp - 0x228]
lea edi, [ebp - 0x240]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x238]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x270]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x264]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x21c]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x1b4]
add eax, 0xc
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x234]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x228]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2c8]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x358]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
lea edi, [ebp - 0x24c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [ebp - 0x1b4]
movsd dword es:[edi], dword [esi]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
mov eax, dword [ebp - 0x1a8]
fld dword [ebp - 0x270]
mov eax, dword [eax + 0x1c]
lea edi, [ebp - 0x240]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fmul qword [eax + 0x11c]
fld dword [ebp - 0x26c]
fmul qword [eax + 0x13c]
faddp st(1)
mov ecx, dword [ebp - 0x1b4]
fld dword [ebp - 0x268]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x268]
fld dword [ebp - 0x264]
fmul qword [eax + 0x11c]
fld dword [ebp - 0x260]
fmul qword [eax + 0x13c]
faddp st(1)
fld dword [ebp - 0x25c]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x25c]
fld dword [ebp - 0x21c]
fmul qword [eax + 0x11c]
fld dword [ebp - 0x218]
fmul qword [eax + 0x13c]
faddp st(1)
fld dword [ebp - 0x214]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x214]
fld dword [ebp - 0x230]
fmul qword [eax + 0x13c]
fld dword [ebp - 0x234]
fmul qword [eax + 0x11c]
faddp st(1)
fld dword [ebp - 0x22c]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x22c]
fld dword [ebp - 0x224]
fmul qword [eax + 0x13c]
fld dword [ebp - 0x228]
fmul qword [eax + 0x11c]
faddp st(1)
fld dword [ebp - 0x220]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x220]
fld dword [ebp - 0x254]
fmul qword [eax + 0x13c]
fld dword [ebp - 0x258]
fmul qword [eax + 0x11c]
faddp st(1)
fld dword [ebp - 0x250]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x250]
fld dword [ebp - 0x248]
fmul qword [eax + 0x13c]
fld dword [ebp - 0x24c]
fmul qword [eax + 0x11c]
faddp st(1)
fld dword [ebp - 0x244]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x244]
fld dword [ebp - 0x23c]
fmul qword [eax + 0x13c]
fld dword [ebp - 0x240]
fmul qword [eax + 0x11c]
faddp st(1)
fld dword [ebp - 0x238]
fmul qword [eax + 0x15c]
faddp st(1)
fadd qword [eax + 0x17c]
fstp dword [ebp - 0x238]
fld dword [ebp - 0x268]
fld dword [ebp - 0x25c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec451
fld dword [ebp - 0x268]
fstp dword [ecx + 0x98]
jmp 0x100ec463
fld dword [ebp - 0x25c]
mov eax, dword [ebp - 0x1b4]
fstp dword [eax + 0x98]
fld dword [ebp - 0x214]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec484
fld dword [ebp - 0x214]
fstp dword [ecx + 0x98]
fld dword [ebp - 0x22c]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec4a5
fld dword [ebp - 0x22c]
fstp dword [ecx + 0x98]
fld dword [ebp - 0x220]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec4c6
fld dword [ebp - 0x220]
fstp dword [ecx + 0x98]
fld dword [ebp - 0x250]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec4e7
fld dword [ebp - 0x250]
fstp dword [ecx + 0x98]
fld dword [ebp - 0x244]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec508
fld dword [ebp - 0x244]
fstp dword [ecx + 0x98]
fld dword [ebp - 0x238]
fld dword [ecx + 0x98]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ec5bf
fld dword [ebp - 0x238]
fstp dword [ecx + 0x98]
jmp 0x100ec5bf
fld qword [esi + 0x60]
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x1c]
fstp dword [ebp - 0x290]
fld qword [esi + 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x34c]
fstp dword [ebp - 0x28c]
fld qword [esi + 0x70]
push edx
push eax
fstp dword [ebp - 0x288]
call dword [ecx + 0x74]
fld dword [ebp - 0x28c]
fsub dword [eax + 4]
fstp dword [ebp - 0x1d8]
fld dword [ebp - 0x288]
fsub dword [eax + 8]
fstp dword [ebp - 0x1dc]
fld dword [ebp - 0x290]
fsub dword [eax]
lea eax, [ebp - 0x2bc]
push eax
fstp dword [ebp - 0x2bc]
fld dword [ebp - 0x1d8]
fstp dword [ebp - 0x2b8]
fld dword [ebp - 0x1dc]
fstp dword [ebp - 0x2b4]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov ecx, dword [ebp - 0x1b4]
fstp dword [edi + 0x98]
mov eax, dword [ebx + 0x2c0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
mov edi, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x1a8]
mov ecx, dword [ecx + 0x14]
mov esi, dword [edi + 8]
lea eax, [ebp - 0x199]
call fcn.100eaa89
cmp byte [ebp - 0x199], 0
mov esi, dword [ebp - 0x1a8]
je 0x100ec60a
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push 1
push 1
push 0x3ea
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x208], 1
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xa4]
test ecx, ecx
je 0x100ec62b
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
push dword [ebp - 0x198]
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [edi + 0xc]
push ecx
push dword [edi + 8]
push esi
push eax
call dword [edx + 0xa4]
push 0xfffffffffffffff4
pop ecx
mov byte [edi + 0xa0], 1
cmp eax, ecx
je 0x100ec845
cmp eax, 0xffffffff
jne 0x100ec67e
push dword [ebp - 0x198]
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov dword [ebp - 0x1b8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x100ec697
mov esi, dword [esi + 0x14]
mov ecx, dword [esi]
neg eax
push eax
push esi
call dword [ecx + 0x50]
cmp byte [ebp - 0x199], 0
je 0x100ec70f
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
push 1
push 0
push 0x3ea
push eax
call dword [ecx + 0x18]
jmp 0x100ec70f
push 0xfffffffffffffff4
pop eax
cmp dword [ebp - 0x1d8], eax
je 0x100ec84d
cmp dword [ebp - 0x1d8], 0xffffffff
jne 0x100ec70f
mov ecx, dword [ebp - 0x198]
or dword [ebp - 0x1b8], 0xffffffff
push 2
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test al, al
je 0x100ed2dd
push dword [ebp - 0x198]
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x1a8]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov dword [ebp - 0x1b8], eax
mov esi, dword [ebp - 0x198]
xor edi, edi
cmp esi, edi
je 0x100ec73e
mov eax, dword [ebx + 0x164]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x100ec73e
mov eax, dword [esi]
push edi
push dword [ebx + 0x148]
push dword [ebp - 0x1a0]
push esi
call dword [eax + 0xc]
mov eax, dword [ebx + 0x164]
cmp dword [eax + 0x30], edi
je 0x100ec772
cmp byte [0x101626f4], 0
je 0x100ec772
mov ecx, 0x101626f8
call fcn.100ea429
test al, al
je 0x100ec77f
mov eax, dword [ebx]
push 0x3f3a38
push 3
push ebx
call dword [eax + 0x198]
jmp 0x100ec77f
cmp esi, edi
je 0x100ec77f
mov eax, dword [esi]
push edi
push edi
mov ecx, esi
call dword [eax + 0x78]
inc dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a0]
add dword [ebp - 0x1ac], 0xa4
cmp eax, dword [ebx + 0x148]
jl 0x100ebdd9
mov edi, dword [ebp - 0x1a8]
xor esi, esi
cmp dword [ebx + 0x33c], 2
je 0x100ec97d
cmp dword [ebp - 0x1b0], esi
jne 0x100ec97d
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x3e4]
test al, al
je 0x100ec7f0
test byte [ebx + 0x15b], 1
jne 0x100ec7f0
mov eax, dword [ebx + 0x16c]
push 2
push dword [eax + 4]
lea eax, [ebx + 0x74]
push eax
push esi
mov ecx, edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
cmp dword [ebp - 0x1bc], esi
je 0x100ec816
cmp dword [ebp - 0x1bc], 3
je 0x100ec816
push dword [ebp - 0x1bc]
mov ecx, ebx
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov byte [ebp - 0x1a1], 0
cmp dword [ebx + 0x2a8], esi
je 0x100ec97d
cmp dword [ebp - 0x198], esi
je 0x100ec866
mov ecx, dword [ebp - 0x198]
call fcn.10099853
test al, al
jne 0x100ec866
or dword [ebp - 0x1b8], 0xffffffff
jmp 0x100ec97d
mov dword [ebp - 0x1b8], ecx
jmp 0x100ec853
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
jmp 0x100ed2dd
cmp dword [ebx + 0x2ac], esi
jne 0x100ec875
mov ecx, ebx
call fcn.100c4db0
mov eax, dword [ebx + 0x2ac]
cmp eax, esi
je 0x100ec97d
push dword [ebp - 0x198]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x2f8]
push edx
push eax
call dword [ecx + 0xb4]
test al, al
je 0x100ec97d
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x2f8]
push edx
push esi
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebx + 0x2ac]
mov word [ecx + 0x138], ax
mov eax, dword [ebx + 0x2ac]
mov ecx, 0x4000
test word [eax + 0x138], cx
jne 0x100ec97d
push dword [ebp - 0x1c8]
mov ecx, dword [eax]
push 6
push eax
call dword [ecx + 0x98]
mov esi, eax
or esi, dword [ebp - 0x1c8]
lea eax, [ebp - 0x114]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test dword [ebx + 0x158], 0x100
jne 0x100ec91e
mov ecx, dword [ebx + 0x2ac]
lea eax, [ebp - 0x114]
push eax
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [ebx + 0x2ac]
mov ecx, dword [eax]
push 0
push dword [ebp - 0x198]
lea edx, [ebp - 0x114]
push edi
push edx
push esi
push eax
call dword [ecx + 0x8c]
mov esi, eax
test esi, esi
jns 0x100ec96c
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x338]
push 0xfffffffffffffff4
pop eax
cmp esi, eax
jne 0x100ec96c
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0x20]
mov eax, dword [edi + 0x14]
push dword [ebx + 0x2ac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
xor esi, esi
cmp dword [ebp - 0x198], esi
je 0x100ec992
mov ecx, dword [ebp - 0x198]
mov eax, dword [ecx]
push esi
push esi
call dword [eax + 0x78]
cmp dword [ebx + 0x33c], 1
je 0x100eca26
cmp dword [ebp - 0x1b0], esi
jne 0x100eca26
cmp dword [ebx + 0x2c4], esi
je 0x100eca26
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x3d0]
test al, al
je 0x100eca26
mov eax, dword [ebx + 0x2c4]
mov dword [ebp - 0x1a0], esi
cmp dword [eax + 0x24], esi
jle 0x100eca26
mov eax, dword [ebx + 0x2c4]
push dword [ebp - 0x1a0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esi]
push 7
push esi
call dword [eax + 0xf0]
test byte [esi + 0x44], 1
jne 0x100eca0d
test dword [eax + 0x50], 0x200
jne 0x100eca0d
push dword [ebp - 0x198]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0x124]
inc dword [ebp - 0x1a0]
mov eax, dword [ebx + 0x2c4]
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [eax + 0x24]
jl 0x100ec9ce
xor esi, esi
mov eax, dword [ebx + 0x2c0]
cmp dword [eax + 0x24], esi
je 0x100ece43
cmp dword [ebx + 0x33c], 2
je 0x100ece43
mov ecx, ebx
call fcn.100ea251
cmp dword [ebp - 0x1b0], esi
jne 0x100ecb53
cmp dword [ebp - 0x1bc], 0
je 0x100ecb53
cmp byte [ebp - 0x1a1], 0
je 0x100ecb53
cmp dword [ebx + 0x2a8], 0
jne 0x100ecb39
mov esi, dword [ebp - 0x1a8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x194]
push edx
push eax
call dword [ecx + 0x9c]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0xf0]
test eax, eax
je 0x100ecabb
mov ecx, dword [eax]
lea edx, [ebp - 0x284]
push edx
push eax
call dword [ecx + 0xe4]
jmp 0x100ecadc
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x304]
push edx
push eax
call dword [ecx + 0x74]
mov esi, eax
lea edi, [ebp - 0x284]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x194]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov esi, eax
movzx eax, byte [ebx + 0x349]
sub eax, 0
lea edi, [ebp - 0x284]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x100ecc5c
dec eax
je 0x100ecc4b
sub eax, 3
je 0x100ecc30
dec eax
jne 0x100ecb53
fld dword [ebp - 0x280]
fld dword [ebx + 0x84]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100ecb53
push dword [ebp - 0x1bc]
mov ecx, ebx
push dword [ebp - 0x1a8]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov byte [ebp - 0x1a1], 0
push 0x2e
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 0x2c0]
add esp, 0xc
mov dword [ebp - 0x1a0], esi
cmp dword [eax + 0x24], esi
jle 0x100ece2f
mov eax, dword [ebx + 0x2c0]
push dword [ebp - 0x1a0]
mov ecx, dword [eax]
mov esi, dword [ebp - 0x198]
push eax
call dword [ecx + 0x10]
mov edi, eax
push 2
pop eax
mov dword [ebp - 0x208], eax
mov ecx, dword [edi + 0x90]
or dword [ebp - 0x1f2], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1f8], ecx
fld dword [edi + 0x9c]
fstp dword [ebp - 0x1fc]
push dword [edi + 8]
push dword [ebp - 0x1a8]
push ebx
call dword [eax + 0x3e8]
mov ecx, dword [ebx + 0x164]
movzx eax, al
shl eax, 2
xor eax, dword [ebp - 0x1f2]
and eax, 4
xor dword [ebp - 0x1f2], eax
mov eax, dword [ecx + 0x28]
shr eax, 7
xor eax, dword [ebp - 0x1f2]
and eax, 8
xor eax, dword [ebp - 0x1f2]
or eax, 1
mov dword [ebp - 0x1f2], eax
mov edx, dword [edi + 0x94]
mov dword [ebp - 0x20c], edx
mov edx, dword [edi + 8]
test dword [edx + 0x44], 0x200
je 0x100ecc67
mov edx, 0x800
test word [ecx + 0x2c], dx
je 0x100ecc67
xor edx, edx
inc edx
jmp 0x100ecc69
fld dword [ebp - 0x280]
fld dword [ebx + 0x78]
fcompp
fnstsw ax
test ah, 5
jnp 0x100ecb39
jmp 0x100ecb53
fld dword [ebp - 0x27c]
fld dword [ebx + 0x88]
jmp 0x100ecb30
fld dword [ebp - 0x27c]
fld dword [ebx + 0x7c]
jmp 0x100ecc39
xor edx, edx
shl edx, 7
xor edx, eax
and edx, 0x80
xor eax, edx
mov dword [ebp - 0x1f2], eax
mov eax, dword [edi + 8]
cmp eax, dword [ebx + 0x2a8]
jne 0x100ecc94
cmp dword [ebp - 0x1b0], 0
jg 0x100ece14
test esi, esi
je 0x100eccba
cmp dword [ecx + 0x30], 0
je 0x100eccaf
cmp byte [0x101626f4], 0
je 0x100eccaf
push ecx
push 0x100ea464
jmp 0x100eccb3
push 0
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
mov eax, dword [ebx + 0x164]
cmp dword [eax + 0x30], 0
je 0x100ecd3d
cmp byte [0x101626f4], 0
je 0x100ecd3d
mov eax, dword [ebx + 0x148]
add eax, dword [ebp - 0x1a0]
mov ecx, 0x101626f8
mov dword [0x1016270c], eax
call fcn.100ea429
test al, al
je 0x100ecd3d
mov eax, dword [ebx]
push 0x3f3a38
push 3
push ebx
call dword [eax + 0x198]
cmp dword [edi + 0x94], 2
je 0x100ecd3d
mov eax, dword [edi + 8]
cmp eax, dword [ebx + 0x2a8]
je 0x100ecd3d
mov ecx, dword [ebx + 0x164]
cmp dword [ecx + 0x30], 2
je 0x100ece14
push eax
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov dword [ebp - 0x20c], eax
mov dword [edi + 0x94], eax
and dword [ebp - 0x1f2], 0xfffffffe
cmp dword [ebx + 0x2a8], 0
je 0x100ecd59
push edi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov byte [ebp - 0x19a], 1
test al, al
jne 0x100ecd60
mov byte [ebp - 0x19a], 0
mov ecx, dword [ebp - 0x1a8]
mov ecx, dword [ecx + 0x14]
mov esi, dword [edi + 8]
lea eax, [ebp - 0x19a]
call fcn.100eaa89
cmp byte [ebp - 0x19a], 0
mov esi, dword [ebp - 0x1a8]
je 0x100ecd98
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push 1
push 1
push 0x3ea
push eax
call dword [ecx + 0x18]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xa4]
test ecx, ecx
je 0x100ecdaf
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
push dword [ebp - 0x198]
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
lea edx, [edi + 0xc]
push edx
push dword [edi + 8]
push esi
push eax
call dword [ecx + 0xa4]
cmp eax, 0xffffffff
jne 0x100ecdda
or dword [ebp - 0x1b8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x100ecdf3
mov esi, dword [esi + 0x14]
mov ecx, dword [esi]
neg eax
push eax
push esi
call dword [ecx + 0x50]
cmp byte [ebp - 0x19a], 0
je 0x100ece14
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
push 1
push 0
push 0x3ea
push eax
call dword [ecx + 0x18]
inc dword [ebp - 0x1a0]
mov eax, dword [ebx + 0x2c0]
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [eax + 0x24]
jl 0x100ecb7c
mov eax, dword [ebx + 0x2c0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov edi, dword [ebp - 0x1a8]
xor esi, esi
cmp dword [ebp - 0x198], esi
je 0x100ece58
mov ecx, dword [ebp - 0x198]
mov eax, dword [ecx]
push esi
push esi
call dword [eax + 0x78]
cmp dword [ebp - 0x1b0], esi
jle 0x100ece67
push ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
pop ecx
cmp dword [ebx + 0x33c], 1
je 0x100eceef
cmp dword [ebx + 0x2c4], esi
je 0x100eceef
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x3d0]
test al, al
je 0x100eceef
mov eax, dword [ebx + 0x2c4]
mov dword [ebp - 0x1a0], esi
cmp dword [eax + 0x24], esi
jle 0x100eceef
mov eax, dword [ebx + 0x2c4]
push dword [ebp - 0x1a0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [esi]
push 7
push esi
call dword [eax + 0xf0]
test byte [esi + 0x44], 1
jne 0x100eced6
test dword [eax + 0x50], 0x200
je 0x100eced6
push dword [ebp - 0x198]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 0x124]
inc dword [ebp - 0x1a0]
mov eax, dword [ebx + 0x2c4]
mov ecx, dword [ebp - 0x1a0]
cmp ecx, dword [eax + 0x24]
jl 0x100ece97
xor esi, esi
mov eax, dword [ebx + 0x164]
test dword [eax + 0x28], 0x200000
je 0x100ed09b
mov eax, dword [ebp - 0x208]
push 1
push esi
mov dword [ebp - 0x1dc], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 0x3e9
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x1a0], esi
cmp dword [ebx + 0x148], esi
jle 0x100ed07b
and dword [ebp - 0x1ac], 0
cmp dword [ebp - 0x1cc], 0
je 0x100ecf52
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0x1a0]
mov esi, dword [eax + ecx*8]
jmp 0x100ecf5e
mov esi, dword [ebx + 0x144]
add esi, dword [ebp - 0x1ac]
test esi, esi
je 0x100ed059
mov eax, dword [esi + 8]
test eax, eax
je 0x100ed059
cmp dword [eax + 0x70], 0
je 0x100ed059
mov eax, dword [eax + 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp eax, 1
jne 0x100ed059
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 1
push 0
push 0x12d
push eax
call dword [ecx + 0x1c]
cmp eax, 4
jne 0x100ed059
mov dword [ebp - 0x208], 3
mov eax, dword [esi + 0x90]
or dword [ebp - 0x1f2], 2
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebx]
mov dword [ebp - 0x20c], 4
fld dword [esi + 0x9c]
fstp dword [ebp - 0x1fc]
push dword [esi + 8]
push edi
push ebx
call dword [eax + 0x3e8]
mov ecx, dword [ebp - 0x1f2]
movzx eax, al
and eax, 1
and ecx, 0xfffffff2
shl eax, 2
or eax, ecx
mov dword [ebp - 0x1f2], eax
mov ecx, dword [esi + 8]
test dword [ecx + 0x44], 0x200
je 0x100ed024
mov ecx, dword [ebx + 0x164]
mov edx, 0x800
test word [ecx + 0x2c], dx
je 0x100ed024
xor ecx, ecx
inc ecx
jmp 0x100ed026
xor ecx, ecx
push dword [ebp - 0x198]
shl ecx, 7
xor ecx, eax
lea edx, [ebp - 0x20c]
push edx
and ecx, 0x80
xor eax, ecx
lea edx, [esi + 0xc]
push edx
mov dword [ebp - 0x1f2], eax
push dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xa4]
inc dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a0]
add dword [ebp - 0x1ac], 0xa4
cmp eax, dword [ebx + 0x148]
jl 0x100ecf38
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 1
push 1
push 0x3e9
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x208], eax
xor esi, esi
mov eax, dword [ebp - 0x208]
push 1
push esi
mov dword [ebp - 0x1dc], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 0x3e9
push eax
call dword [ecx + 0x18]
cmp dword [ebx + 0x33c], 2
je 0x100ed216
mov dword [ebp - 0x1a0], esi
cmp dword [ebx + 0x148], esi
jle 0x100ed216
mov dword [ebp - 0x1ac], esi
cmp dword [ebp - 0x1cc], 0
je 0x100ed0f7
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0x1a0]
mov esi, dword [eax + ecx*8]
jmp 0x100ed103
mov esi, dword [ebx + 0x144]
add esi, dword [ebp - 0x1ac]
cmp byte [esi + 0xa0], 0
je 0x100ed216
mov eax, dword [esi + 8]
test eax, eax
je 0x100ed1f4
mov eax, dword [eax + 0xa8]
test eax, 0x4000
je 0x100ed12e
cmp dword [edi + 0x68], 0xffffffff
je 0x100ed143
test eax, 0x10000000
je 0x100ed1f4
cmp dword [edi + 0x68], 1
jne 0x100ed1f4
mov dword [ebp - 0x208], 4
mov eax, dword [esi + 0x90]
or dword [ebp - 0x1f2], 2
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebx]
mov dword [ebp - 0x20c], 8
fld dword [esi + 0x9c]
fstp dword [ebp - 0x1fc]
push dword [esi + 8]
push edi
push ebx
call dword [eax + 0x3e8]
mov ecx, dword [ebp - 0x1f2]
movzx eax, al
and eax, 1
and ecx, 0xfffffff2
shl eax, 2
or eax, ecx
mov dword [ebp - 0x1f2], eax
mov ecx, dword [esi + 8]
test dword [ecx + 0x44], 0x200
je 0x100ed1bf
mov ecx, dword [ebx + 0x164]
mov edx, 0x800
test word [ecx + 0x2c], dx
je 0x100ed1bf
xor ecx, ecx
inc ecx
jmp 0x100ed1c1
xor ecx, ecx
push dword [ebp - 0x198]
shl ecx, 7
xor ecx, eax
lea edx, [ebp - 0x20c]
push edx
and ecx, 0x80
xor eax, ecx
lea edx, [esi + 0xc]
push edx
mov dword [ebp - 0x1f2], eax
push dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xa4]
inc dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a0]
add dword [ebp - 0x1ac], 0xa4
cmp eax, dword [ebx + 0x148]
jl 0x100ed0dd
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 1
push 1
push 0x3e9
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x208], eax
je 0x100ed264
cmp byte [ebp - 0x1a1], 0
je 0x100ed264
cmp dword [ebx + 0x33c], 2
je 0x100ed264
push dword [ebp - 0x1bc]
mov ecx, ebx
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov byte [ebp - 0x1a1], 0
mov eax, dword [ebx + 0x114]
test eax, eax
je 0x100ed2dd
cmp dword [eax], 0
je 0x100ed2dd
push dword [ebp - 0x1a8]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x100ed2dd
mov eax, dword [eax + 0x24]
test eax, eax
je 0x100ed2dd
xor esi, esi
test eax, eax
jle 0x100ed2dd
mov ecx, dword [ebx + 0x114]
push dword [ecx]
mov eax, dword [ebx + 0x2b8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
push eax
push dword [ebp - 0x1a8]
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [ebx + 0x2b8]
cmp dword [eax + 0x24], 1
jle 0x100ed2d1
mov ecx, ebx
call fcn.100dfab1
test al, al
jne 0x100ed2dd
mov eax, dword [ebx + 0x2b8]
inc esi
cmp esi, dword [eax + 0x24]
jl 0x100ed297
cmp dword [ebp - 0x1bc], 0
je 0x100ed30b
cmp byte [ebp - 0x1a1], 0
je 0x100ed30b
cmp dword [ebx + 0x33c], 2
je 0x100ed30b
push dword [ebp - 0x1bc]
mov ecx, ebx
push dword [ebp - 0x1a8]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
cmp byte [0x1079da50], 0
je 0x100ed31b
push ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
pop ecx
mov eax, dword [ebx + 0x164]
fld dword [ebp - 0x274]
mov ecx, dword [ebp - 0x278]
mov edi, dword [ebp - 0x198]
mov dword [eax + 0x14], ecx
mov eax, dword [ebx + 0x164]
xor esi, esi
fstp dword [eax + 0x9c]
cmp edi, esi
je 0x100ed351
mov eax, dword [edi]
push esi
push esi
mov ecx, edi
call dword [eax + 0x78]
push dword [ebp - 0x1c4]
mov eax, dword [ebx]
push 3
push ebx
call dword [eax + 0x198]
test byte [ebp + 0x1c], 0x20
jne 0x100ed4c4
push edi
push esi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test byte [ebx + 0x158], 0x10
jne 0x100ed4c4
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x294]
mov dword [ebp - 0x1c4], eax
fild dword [ebp - 0x1c4]
jns 0x100ed3a1
fadd dword [0x10129c80]
mov eax, dword [ebx + 0x328]
fstp dword [ebp - 0x1c4]
fld dword [ebp - 0x1c4]
fstp dword [ebx + eax*4 + 0x2d8]
inc dword [ebx + 0x328]
mov eax, dword [ebx + 0x32c]
mov ecx, dword [ebx + 0x328]
cmp eax, 0x14
jge 0x100ed3d8
inc eax
mov dword [ebx + 0x32c], eax
cmp ecx, 0x14
jne 0x100ed3e3
mov dword [ebx + 0x328], esi
mov eax, dword [ebx + 0x32c]
fldz
xor ecx, ecx
fst dword [ebx + 0x198]
mov dword [ebp - 0x1c4], eax
cmp eax, esi
jle 0x100ed41d
lea eax, [ebx + 0x2d8]
fld dword [eax]
inc ecx
fadd dword [ebx + 0x198]
add eax, 4
fstp dword [ebx + 0x198]
cmp ecx, dword [ebx + 0x32c]
jl 0x100ed403
fld dword [ebx + 0x198]
fidiv dword [ebp - 0x1c4]
fstp dword [ebp - 0x1ac]
fld dword [ebp - 0x1ac]
fstp dword [ebx + 0x198]
fcomp dword [ebp - 0x1ac]
fnstsw ax
test ah, 5
jp 0x100ed456
fld dword [ebp - 0x1ac]
fdivr qword [0x10121cf8]
jmp 0x100ed45c
fld dword [0x1012bf38]
fstp dword [ebx + 0x198]
fld dword [ebx + 0x198]
fld qword [0x10121ca0]
fmul st(1), st(0)
fxch st(1)
fadd qword [0x10121c50]
call fcn.10113590
mov dword [ebp - 0x1c4], eax
fidivr dword [ebp - 0x1c4]
push ecx
push ecx
lea eax, [ebp - 0x84]
fstp dword [ebp - 0x1c4]
fld dword [ebp - 0x1c4]
fstp qword [esp]
push 0x90e
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
add esp, 0x10
cmp edi, esi
je 0x100ed4c4
mov eax, dword [edi]
lea ecx, [ebp - 0x84]
push ecx
push 1
push edi
call dword [eax + 0x18]
add esp, 0xc
mov edi, dword [ebp - 0x1a8]
and dword [edi + 0x80], 0xfffffffa
cmp dword [ebp - 0x2b0], esi
je 0x100ed4e4
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x54]
cmp dword [ebx + 0x33c], 2
je 0x100ed531
test byte [ebp + 0x1c], 0x80
jne 0x100ed501
push dword [ebp - 0x1b8]
mov ecx, ebx
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov ecx, dword [ebx + 0x338]
cmp ecx, esi
jle 0x100ed51e
mov eax, dword [edi + 0x14]
mov edx, dword [eax]
push 0xff000000
push ecx
push esi
push eax
call dword [edx + 0x84]
mov ecx, ebx
call fcn.1001791f
test eax, eax
je 0x100ed531
push edi
mov ecx, ebx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x54]
mov eax, dword [ebx + 0x164]
fld dword [ebp - 0x274]
mov ecx, dword [ebp - 0x278]
mov dword [eax + 0x14], ecx
mov eax, dword [ebx + 0x164]
fstp dword [eax + 0x9c]
mov eax, dword [ebp - 0x1d0]
dec eax
cmp dword [ebp - 0x1b0], eax
jne 0x100ed5db
xor esi, esi
cmp dword [ebp - 0x210], esi
je 0x100ed5a0
mov ecx, dword [ebp - 0x198]
cmp ecx, esi
je 0x100ed58b
push 2
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
test al, al
je 0x100ed5a0
push dword [ebp - 0x1d4]
mov eax, dword [edi + 0x14]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x64]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x54]
mov eax, dword [edi + 0x14]
mov dword [eax + 0x1c], esi
cmp dword [ebp - 0x198], esi
je 0x100ed5db
mov eax, dword [ebx + 0x164]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x100ed5db
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [ecx + 0xc]
inc dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b0]
cmp eax, dword [ebp - 0x1d0]
jl 0x100eb9bf
jmp 0x100ed61c
mov eax, dword [ebx]
push 0
push 8
push ebx
call dword [eax + 0x15c]
push 0xfffffffffffffffd
jmp 0x100eb83e
push dword [ebp - 0x1d4]
mov ecx, ebx
push dword [ebp - 0x210]
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::_FromUpDir_struct_MATRIX3D___struct_POINT3D___struct_POINT3D___struct_POINT3D__
cmp dword [ebp - 0x198], 0
je 0x100ed634
mov ecx, dword [ebp - 0x198]
mov eax, dword [ecx]
push 0
push 0
call dword [eax + 0x78]
and dword [0x101626f8], 0
cmp dword [ebp - 0x198], 0
mov byte [0x10162710], 0
je 0x100ed661
mov ecx, dword [ebp - 0x198]
call fcn.10099853
test al, al
jne 0x100ed661
or dword [ebp - 0x1b8], 0xffffffff
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10113450
leave
ret 0x18