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

Disassembly:
push 0x10c
mov eax, 0x101506f7
call fcn.10143748
xor ebx, ebx
lea ecx, [ebp - 0x24]
inc ebx
mov byte [ebp - 0xd], bl
call fcn.10074d07
and dword [ebp - 4], 0
push 0x198
call fcn.1013d095
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x1013ec93
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.100d97c0
mov ecx, eax
mov dword [ebp - 0x14], eax
jmp 0x1013ec98
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1013f006
cmp dword [ecx + 0x1c], 0
je 0x1013eff6
cmp dword [ecx + 0x20], 0
je 0x1013eff6
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 0x1013ed64
mov eax, dword [0x107d1580]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x58]
mov ecx, esi
call dword [0x10151b24]
call esi
mov edi, eax
test edi, edi
je 0x1013f00a
mov ecx, dword [edi]
push 2
push edi
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x10151b24]
call esi
test eax, eax
je 0x1013ed4f
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 [0x10151b24]
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 [0x10151b24]
call dword [esi + 0x30]
mov eax, dword [edi]
push dword [ebp + 0x10]
push edi
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x10151b24]
call esi
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10151b24]
call esi
jmp 0x1013f00a
lea ecx, [ebp - 0xb0]
call fcn.1013d095
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
jne 0x1013ed83
mov eax, dword [edi + 0x10c]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.1013d095
mov esi, dword [ebp - 0x9c]
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
test cl, 4
je 0x1013edb4
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 0x1013edf9
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 0x1013ee42
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 [0x10151b24]
call dword [esi + 0x28]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2a8]
mov ecx, esi
call dword [0x10151b24]
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 [0x10151b24]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1013ee9e
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1013ee9e
mov eax, dword [ebp - 0x9c]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x68]
mov ecx, esi
call dword [0x10151b24]
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 [0x10151b24]
call esi
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x9c]
push 0
je 0x1013ef09
and dword [edi + 0x158], 0xffdfffff
mov ecx, dword [eax]
push 0x66
push eax
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10151b24]
call esi
push dword [ebp - 0x110]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x114]
push eax
push ecx
call fcn.1013d095
add esp, 0x10
jmp 0x1013ef54
mov ecx, dword [eax]
push 0x67
push eax
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10151b24]
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 [0x10151b24]
call esi
test eax, eax
je 0x1013ef50
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push dword [ecx + 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x1013ef54
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 fcn.1013d095
test esi, esi
jne 0x1013ef7d
and dword [edi + 0x158], 0xfffffffd
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x2b8]
test ecx, ecx
je 0x1013efad
xor eax, eax
inc eax
push eax
push dword [ecx + 0x78]
push dword [ecx + 0x74]
push ecx
jmp 0x1013efbe
mov eax, dword [edi + 0x10c]
xor ecx, ecx
inc ecx
push ecx
push dword [eax + 0x78]
push dword [eax + 0x74]
push eax
push edi
mov ecx, esi
call dword [0x10151b24]
call esi
lea eax, [ebp - 0xb0]
push eax
call fcn.1013d095
mov eax, dword [edi]
pop ecx
push edi
mov esi, dword [eax + 0x2a8]
mov ecx, esi
call dword [0x10151b24]
call esi
lea ecx, [ebp - 0xb0]
call fcn.1013d095
jmp 0x1013f00a
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10151b24]
call esi
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x24]
call fcn.10001a60
mov al, byte [ebp - 0xd]
call fcn.10143711
ret