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

Disassembly:
sub esp, 0xd4
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xb8], 0
jne 0x1007a45a
mov esi, dword [esp + 0xe0]
push str.Internal_error__RenderStateCache_is_not_initialized.
push 0x505
push esi
call fcn.101314c0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0xd4
ret 0x14
cmp byte [esp + 0xe8], 0
mov eax, dword [esp + 0xe4]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x2c], xmm0
movq xmm0, qword [eax + 0x30]
mov eax, dword [eax + 0x38]
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], eax
je 0x1007a4a1
mov byte [esp + 0xc], 0
mov byte [esp + 0x14], 0
cmp byte [esp + 0xec], 0
je 0x1007a4c0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x15], 0
mov eax, dword [edi + 0x68]
lea ecx, [esp + 0xc]
push ebx
push ebp
push ecx
call eax
add esp, 4
lea ecx, [edi + 0x68]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.100683c0
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x1007a4ec
mov ebp, dword [edi + 0x74]
mov edx, dword [edi + 0x74]
cmp ebp, edx
je 0x1007a520
mov edx, dword [edi + 0x10]
mov ecx, edx
mov esi, dword [edi + 0x14]
add ecx, 1
mov eax, esi
mov dword [edi + 0x10], ecx
adc eax, 0
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0xf8]
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], esi
mov dword [eax], ecx
jmp 0x1007a75d
cmp dword [edi + 0x78], 0x1000
jb 0x1007a5bd
mov esi, dword [edx]
mov eax, esi
cmp eax, edx
je 0x1007a54f
mov ecx, dword [eax + 0x54]
cmp ecx, dword [esi + 0x54]
ja 0x1007a549
jb 0x1007a547
mov ecx, dword [eax + 0x50]
cmp ecx, dword [esi + 0x50]
jae 0x1007a549
mov esi, eax
mov eax, dword [eax]
cmp eax, edx
jne 0x1007a535
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1007a563
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x48], 0
mov ecx, dword [edi + 0x68]
lea eax, [esi + 8]
push eax
call ecx
mov ecx, dword [edi + 0x88]
add esp, 4
and ecx, eax
mov eax, dword [edi + 0x7c]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1007a59a
cmp eax, esi
jne 0x1007a592
mov eax, dword [edi + 0x74]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1007a5a2
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1007a5a2
cmp eax, esi
jne 0x1007a5a2
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [edi + 0x78]
mov eax, dword [esi + 4]
push 0x58
push esi
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.10174919
add esp, 8
push dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x18], al
mov word [esp + 0x76], ax
setne al
mov dword [esp + 0x64], eax
call fcn.1008c100
push dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
call fcn.1008c050
push dword [esp + 0x2c]
mov dword [esp + 0x74], eax
xor eax, eax
cmp byte [esp + 0x29], al
setne al
mov dword [esp + 0x78], eax
call fcn.1008c200
push dword [esp + 0x40]
mov byte [esp + 0x80], al
call fcn.1008c200
push dword [esp + 0x38]
mov byte [esp + 0x85], al
call fcn.1008c210
push dword [esp + 0x40]
mov dword [esp + 0x8c], eax
call fcn.1008c210
push dword [esp + 0x48]
mov dword [esp + 0x94], eax
call fcn.1008c210
push dword [esp + 0x3c]
mov dword [esp + 0x9c], eax
call fcn.1008c050
push dword [esp + 0x60]
mov dword [esp + 0xa4], eax
call fcn.1008c210
push dword [esp + 0x68]
mov dword [esp + 0xac], eax
call fcn.1008c210
push dword [esp + 0x70]
mov dword [esp + 0xb4], eax
call fcn.1008c210
push dword [esp + 0x64]
mov dword [esp + 0xbc], eax
call fcn.1008c050
mov ecx, dword [edi + 0xb8]
lea edx, [esp + 0x40]
add esp, 0x30
mov dword [esp + 0x90], eax
mov dword [esp + 0x10], 0
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x64]
push edx
push ecx
call dword [eax + 0x54]
test eax, eax
js 0x1007a785
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1007a785
movups xmm0, xmmword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov ecx, edx
mov esi, dword [edi + 0x14]
add ecx, 1
movups xmmword [esp + 0x94], xmm0
mov eax, esi
mov dword [esp + 0x50], ebp
movups xmm0, xmmword [esp + 0x24]
adc eax, 0
mov dword [esp + 0x58], edx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x4c]
movups xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x94]
movups xmm0, xmmword [esp + 0x34]
mov dword [esp + 0x5c], esi
push eax
movups xmmword [esp + 0xb8], xmm0
lea eax, [esp + 0x54]
mov dword [edi + 0x10], ecx
movq xmm0, qword [esp + 0x48]
lea ecx, [edi + 0x68]
movq qword [esp + 0xc8], xmm0
movups xmm0, xmmword [esp + 0x54]
push eax
movups xmmword [esp + 0xdc], xmm0
call fcn.10068c60
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0xe8]
pop ebp
pop ebx
pop edi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
pop esi
add esp, 0xd4
ret 0x14
mov esi, dword [esp + 0xe8]
push eax
push str.Unable_to_create_a_ID3D11DepthStencilState__HRESULT:_0x_X.
push 0x505
push esi
call fcn.101314c0
add esp, 0x10
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xd4
ret 0x14