Function at 0x430910
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7dd6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b8
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c8], esi
mov eax, dword [ebx + 0xc]
push str.UnitInstance
mov dword [ebp - 0x5a8], eax
call fcn.00446f30
push 0x30
mov dword [esi + 8], eax
lea ecx, [esi + 0x178]
mov word [esi + 0x2d8], 0x103
mov dword [esi + 0x2b8], 0x7d00
mov dword [esi + 0x2bc], 0xc80
mov dword [esi + 0x2c0], 0x30
mov dword [esi + 0x298], 1
mov dword [esi + 0x29c], 2
mov dword [esi + 0x2a0], 0
push dword [0x4fe45c]
call fcn.00442120
test al, al
je 0x4309f1
mov ecx, dword [esi + 0x17c]
lea eax, [esi + 0x184]
push eax
push 0
push 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
test eax, eax
je 0x430a2b
push str.Map_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.clsFx12UnitInstance_CreateConstantBuffer02_Failed_n
push 0x200
push dword [ebp - 0x5a8]
call fcn.00483128
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov dword [esi + 0x178], 1
mov eax, dword [esi + 0x184]
test eax, eax
je 0x430a5f
movups xmm0, xmmword [esi + 0x2e0]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x2f0]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esi + 0x300]
movups xmmword [eax + 0x20], xmm0
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 7
push eax
push 1
lea eax, [ebp - 0x140]
mov dword [ebp - 0x150], 1
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14c], 2
push 4
push dword [0x4fe45c]
movups xmmword [ebp - 0x140], xmm0
mov ecx, esi
movaps xmm0, xmmword [0x4f4310]
movups xmmword [ebp - 0x130], xmm0
call fcn.00446fa0
test al, al
jne 0x430ac2
push str.clsFx12UnitInstance_CreateRootSignature_Failed_n
jmp 0x4309f6
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x15c], xmm0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x15c]
movaps xmm0, xmmword [0x4f4290]
sub esp, 0x28
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], eax
mov eax, esp
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x124], 0xffffffff
movups xmmword [eax], xmm0
push 0
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4290]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 1
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4290]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x12c], 2
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 2
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4290]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 3
mov dword [ebp - 0x12c], 3
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 3
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4230]
mov dword [ebp - 0x138], 2
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
sub esp, 0x28
mov dword [ebp - 0x124], 0xffffffff
mov eax, esp
lea ecx, [ebp - 0x15c]
push 4
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42a0]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 4
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 5
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42a0]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 5
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 6
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42a0]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 6
mov dword [ebp - 0x12c], 2
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 7
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42a0]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 0
mov eax, esp
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x12c], 3
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 8
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4260]
mov dword [ebp - 0x138], 2
sub esp, 0x28
mov dword [ebp - 0x134], 4
mov eax, esp
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x130], 0xffffffff
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x124], 0xffffffff
movups xmmword [eax], xmm0
push 9
movups xmm0, xmmword [ebp - 0x138]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4260]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 2
mov eax, esp
mov dword [ebp - 0x134], 4
mov dword [ebp - 0x12c], 4
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x124], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
push 0xa
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
mov byte [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 0x5bc], 0
push dword [ebp - 0x5a8]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 2
push 8
push str.Shader_Fx12Unit_Instance
push 0
call fcn.00447610
test al, al
je 0x431480
lea ecx, [ebp - 0x5c4]
call fcn.004478d0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x14
push 0
mov byte [ebp - 0x5c4], 5
call edi
mov dword [ebp - 0x5c0], eax
test eax, eax
jne 0x43104e
push str.alloc_failed
push 0x200
push dword [ebp - 0x5a8]
call fcn.00483128
add esp, 0xc
jmp 0x431480
push 4
push 0x3000
push 0x14
push 0
call edi
mov ecx, dword [ebp - 0x5c0]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x5bc], edx
sub ecx, edx
mov dword [ebp - 0x5b0], eax
mov edi, edx
mov dword [ebp - 0x5ac], ecx
nop dword [eax + eax]
push eax
push str.Shader_Fx12Unit_Instance
lea eax, [ebp - 0x120]
push str._sPs_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x200
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.0047ebc0
add esp, 0x1c
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x360]
push 0x200
push eax
call fcn.00483128
add esp, 8
lea ecx, [ebp - 0x360]
call fcn.0044d1d0
push 0x4f0edc
lea eax, [ebp - 0x360]
push 0x200
push eax
call fcn.00484a35
add esp, 0xc
lea eax, [ebp - 0x360]
push 0x4f0ee8
push 0x200
push eax
call fcn.00484a35
add esp, 0xc
lea eax, [ebp - 0x360]
push edi
push eax
push 0x502514
call fcn.004523e0
mov ecx, eax
call fcn.004526f0
mov dword [ebp - 0x5b4], eax
test eax, eax
jne 0x431144
mov edx, edi
lea ecx, [ebp - 0x360]
call fcn.0044eb80
mov dword [ebp - 0x5b4], eax
test eax, eax
je 0x43142e
mov ecx, dword [ebp - 0x5ac]
mov dword [ecx + edi], eax
add edi, 4
mov eax, dword [ebp - 0x5b0]
inc eax
mov dword [ebp - 0x5b0], eax
cmp eax, 5
jl 0x431080
movzx edx, word [ebp - 0x156]
xor edi, edi
test edx, edx
je 0x4313e6
nop word [eax + eax]
mov esi, dword [ebp - 0x15c]
xor eax, eax
mov ecx, esi
nop word [eax + eax]
cmp dword [ecx], edi
je 0x4311a0
inc eax
add ecx, 0x2c
cmp eax, edx
jl 0x431190
xor esi, esi
jmp 0x4311a8
imul eax, eax, 0x2c
add esi, 4
add esi, eax
mov edx, dword [ebp - 0x150]
mov cl, byte [esi + 0x14]
mov al, byte [ebp - 0x154]
test edx, edx
je 0x4311d3
cmp cl, al
jae 0x4311d3
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b8], eax
mov al, byte [ebp - 0x154]
jmp 0x4311dd
mov dword [ebp - 0x5b8], 0
mov edx, dword [ebp - 0x14c]
test edx, edx
je 0x4311f9
cmp cl, al
jae 0x4311f9
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5ac], eax
jmp 0x431203
mov dword [ebp - 0x5ac], 0
mov cl, byte [esi + 0x1c]
cmp cl, 5
jae 0x43121f
mov edx, dword [ebp - 0x5c0]
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b4], eax
jmp 0x431229
mov dword [ebp - 0x5b4], 0
mov edx, dword [ebp - 0x5bc]
test edx, edx
je 0x431246
cmp cl, 5
jae 0x431246
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b0], eax
jmp 0x431250
mov dword [ebp - 0x5b0], 0
push 0x23c
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.0047ebc0
mov eax, dword [ebp - 0x5c8]
add esp, 0xc
mov dword [ebp - 0x3a8], 3
mov dword [ebp - 0x37c], 1
mov dword [ebp - 0x378], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x5a0], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x59c], eax
mov eax, dword [ebp - 0x5ac]
mov dword [ebp - 0x598], eax
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x594], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x590], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x418], 0xffffffff
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x584], 0
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x58c], 0
mov dword [ebp - 0x588], 0
push dword [esi]
push eax
call fcn.00447210
push ecx
push dword [esi + 0x10]
lea eax, [ebp - 0x5a0]
push eax
call fcn.00447350
mov dword [ebp - 0x3a0], 0x1c
mov eax, dword [esi + 0x1c]
cmp eax, 2
je 0x431368
cmp eax, 3
je 0x431368
mov dword [ebp - 0x3a4], 1
mov dword [ebp - 0x39c], 0
jmp 0x43137c
mov dword [ebp - 0x3a4], 2
mov dword [ebp - 0x39c], 0x36
push dword [esi + 4]
lea eax, [ebp - 0x5a0]
push ecx
push eax
call fcn.004473e0
cmp dword [esi + 0xc], 0
push ecx
setne al
movzx eax, al
push eax
xor eax, eax
cmp dword [esi + 8], eax
setne al
push eax
lea eax, [ebp - 0x5a0]
push eax
call fcn.00447560
mov esi, dword [ebp - 0x5c8]
mov ecx, dword [0x4fe45c]
lea eax, [esi + 0x14]
mov edx, dword [ecx]
lea eax, [eax + edi*4]
push eax
push 0x4efae4
lea eax, [ebp - 0x5a0]
push eax
push ecx
call dword [edx + 0x28]
test eax, eax
jne 0x431417
movzx edx, word [ebp - 0x156]
inc edi
cmp edi, edx
jl 0x431180
mov dword [esi + 0x390], 0x3f800000
mov dword [esi + 0x394], 0x3f800000
mov dword [esi + 0x398], 0x3f800000
mov dword [esi + 0x39c], 0x3f800000
mov byte [ebp - 0x5a1], 1
jmp 0x431487
push eax
push edi
push str.clsFx12UnitInstance_CreateGraphicsPipelineState__d_____d_Failed_n
push dword [ebp - 0x5a8]
call fcn.0044d1b0
add esp, 0x10
jmp 0x431480
lea eax, [ebp - 0x360]
push eax
push 0x502514
lea eax, [ebp - 0x568]
push 0x4f0eec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x568]
call fcn.0044cef0
mov ecx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5b4]
mov dword [edi + ecx], eax
lea eax, [ebp - 0x120]
push eax
push str.ShaderFile:_s_load_failed
push dword [ebp - 0x5a8]
call fcn.0044d1b0
add esp, 0x1c
mov byte [ebp - 0x5a1], 0
lea ecx, [ebp - 0x5c4]
call fcn.004478d0
lea ecx, [ebp - 0x154]
call fcn.004478d0
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x4314b0
push ecx
call fcn.0047d79d
add esp, 4
mov al, byte [ebp - 0x5a1]
jmp 0x430a0b