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

Disassembly:
push 0x10c
mov eax, 0x10150109
call fcn.10143988
xor ebx, ebx
lea ecx, [ebp - 0x24]
inc ebx
mov byte [ebp - 0xd], bl
call fcn.100ee3b1
and dword [ebp - 4], 0
push 0x198
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x1013f061
mov ecx, dword [ebx + 0xc]
xor edx, edx
shr ecx, 0xc
inc edx
and ecx, edx
push ecx
push dword [ebx + 8]
mov ecx, eax
push dword [ebx + 4]
call fcn.100da9d0
mov ecx, eax
mov dword [ebp - 0x14], eax
jmp 0x1013f066
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1013f3c9
cmp dword [ecx + 0x1c], 0
je 0x1013f3b9
cmp dword [ecx + 0x20], 0
je 0x1013f3b9
mov dword [ebx + 0x10], ecx
lea edx, [ebx + 0x24]
cmp byte [edx], 0
lea edi, [ebp - 0x118]
push 0x1a
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
je 0x1013f132
mov eax, dword [0x107d05a8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x58]
mov ecx, esi
call dword [0x10151aac]
call esi
mov edi, eax
test edi, edi
je 0x1013f3cd
mov ecx, dword [edi]
push 2
push edi
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x10151aac]
call esi
test eax, eax
je 0x1013f11d
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov esi, dword [eax + 0x34]
mov ecx, esi
push edi
call dword [0x10151aac]
call esi
mov ecx, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [ecx + 0x10c]
push dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0x30]
push edi
call dword [0x10151aac]
call dword [esi + 0x30]
mov eax, dword [edi]
push dword [ebp + 0x10]
push edi
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x10151aac]
call esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10151aac]
call esi
jmp 0x1013f3cd
lea ecx, [ebp - 0xb0]
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
jne 0x1013f151
mov eax, dword [edi + 0x10c]
push eax
lea eax, [ebp - 0xb0]
push eax
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
mov esi, dword [ebp - 0x9c]
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
test cl, 4
je 0x1013f182
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test ecx, 0x100
mov esi, dword [ebx + 8]
push 1
pop edx
cmovne eax, edx
mov dword [ebp - 0x38], esi
mov edx, dword [ebx + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x10c]
and eax, 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], eax
je 0x1013f1c7
or dword [edi + 0x158], 0x200000
lea eax, [edx + edx]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [esi + esi]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
and ecx, 0x1000
neg ecx
sbb ecx, ecx
and ecx, str.drvSOFTZBalpha
push ecx
push eax
call sym.rt3d.dll_bool___stdcall_ChooseDriver_class_DRIVER3D____char_const__
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x1013f210
mov esi, dword [eax]
lea ecx, [ebp - 0xb0]
xor edx, edx
push edx
push edx
push ecx
mov ecx, dword [esi + 0x28]
push edx
push eax
call dword [0x10151aac]
call dword [esi + 0x28]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2a8]
mov ecx, esi
call dword [0x10151aac]
call esi
mov esi, dword [edi]
xor eax, eax
inc eax
push eax
push dword [ebp - 0x38]
mov esi, dword [esi + 0x2b8]
lea eax, [ebp - 0xb0]
push dword [ebp - 0x3c]
mov ecx, esi
push eax
push edi
call dword [0x10151aac]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1013f26c
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1013f26c
mov eax, dword [ebp - 0x9c]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x68]
mov ecx, esi
call dword [0x10151aac]
call esi
mov esi, dword [edi]
lea eax, [ebp - 0xb0]
push 0x81
push dword [ebp + 0x10]
mov esi, dword [esi + 0x2b0]
mov ecx, esi
push 0
push 0
push eax
push edi
call dword [0x10151aac]
call esi
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x9c]
push 0
je 0x1013f2d7
and dword [edi + 0x158], 0xffdfffff
mov ecx, dword [eax]
push 0x66
push eax
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10151aac]
call esi
push dword [ebp - 0x110]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x114]
push eax
push ecx
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
add esp, 0x10
jmp 0x1013f322
mov ecx, dword [eax]
push 0x67
push eax
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10151aac]
call esi
mov ecx, dword [ebp - 0x9c]
push 0
push 0x66
push ecx
mov edx, dword [ecx]
mov dword [ebp - 0x18], eax
mov esi, dword [edx + 0x30]
mov ecx, esi
call dword [0x10151aac]
call esi
test eax, eax
je 0x1013f31e
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push dword [ecx + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1013f322
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x1c]
test esi, esi
mov dword [ebp - 0x20], eax
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x20]
push eax
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
test esi, esi
jne 0x1013f34b
and dword [edi + 0x158], 0xfffffffd
mov esi, dword [edi]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0xa4], eax
inc ecx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esi + 0x2b8]
test eax, eax
jne 0x1013f378
mov eax, dword [edi + 0x10c]
push dword [eax + 0x78]
push dword [eax + 0x74]
push eax
push edi
call dword [0x10151aac]
call dword [esi + 0x2b8]
lea eax, [ebp - 0xb0]
push eax
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
mov eax, dword [edi]
pop ecx
push edi
mov esi, dword [eax + 0x2a8]
mov ecx, esi
call dword [0x10151aac]
call esi
lea ecx, [ebp - 0xb0]
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
jmp 0x1013f3cd
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10151aac]
call esi
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x24]
call fcn.10001a60
mov al, byte [ebp - 0xd]
call fcn.10143951
ret