Function at 0x42f450
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 0x4c7d56
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 - 0x5bc], esi
mov eax, dword [ebx + 0xc]
push str.Unit
mov dword [ebp - 0x5ac], eax
call fcn.00446f30
push 0x30
mov dword [esi + 8], eax
lea ecx, [esi + 0x148]
mov word [esi + 0x2d8], 0x103
mov dword [esi + 0x2b8], 0xe0
mov dword [esi + 0x2bc], 0x30
mov dword [esi + 0x2c0], 0x10
mov dword [esi + 0x298], 1
mov dword [esi + 0x29c], 0
push dword [0x4fe45c]
call fcn.00442120
test al, al
je 0x42f527
mov ecx, dword [esi + 0x14c]
lea eax, [esi + 0x154]
push eax
push 0
push 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
test eax, eax
je 0x42f561
push str.Map_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.clsFx12Unit_CreateConstantBuffer01_Failed_n
push 0x200
push dword [ebp - 0x5ac]
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
lea eax, [ebp - 0x154]
mov dword [esi + 0x148], 1
push eax
push 1
lea eax, [ebp - 0x140]
mov dword [esi + 0x2a0], 2
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x154], 7
push 4
push dword [0x4fe45c]
movups xmmword [ebp - 0x140], xmm0
mov ecx, esi
mov dword [ebp - 0x150], 0
movaps xmm0, xmmword [0x4f4310]
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x14c], 2
call fcn.00446fa0
test al, al
jne 0x42f5d8
push str.clsFx12Unit_CreateRootSignature_Failed_n
jmp 0x42f52c
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 [0x4f42c0]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
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 [0x4f42c0]
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 5
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42c0]
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 6
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42c0]
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 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], 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 8
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42a0]
mov dword [ebp - 0x138], 0
sub esp, 0x28
mov dword [ebp - 0x134], 5
mov eax, esp
mov dword [ebp - 0x12c], 1
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 [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 0xa
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 0xb
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42d0]
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 0xc
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42d0]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 5
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x128], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
mov dword [ebp - 0x124], 0xffffffff
push 0xd
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
lea ecx, [ebp - 0x15c]
call fcn.0042db50
movaps xmm0, xmmword [0x4f42d0]
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 0xe
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42d0]
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 0xf
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f4240]
lea ecx, [ebp - 0x15c]
sub esp, 0x28
mov dword [ebp - 0x138], 2
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 0x10
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], 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 0x11
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [eax + 0x20], xmm0
call fcn.0042db50
movaps xmm0, xmmword [0x4f42f0]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 8
mov dword [ebp - 0x12c], 5
mov dword [ebp - 0x130], 0xffffffff
movups xmmword [eax], xmm0
mov dword [ebp - 0x128], 0xffffffff
movups xmm0, xmmword [ebp - 0x138]
mov dword [ebp - 0x124], 0xffffffff
movups xmmword [eax + 0x10], xmm0
lea ecx, [ebp - 0x15c]
movq xmm0, qword [ebp - 0x128]
push 0x12
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 - 0x5c8], 0
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 0
mov esi, dword [ebp - 0x5ac]
lea ecx, [ebp - 0x154]
push esi
push 9
push str.Shader_Fx12Unit
push 0
mov byte [ebp - 4], 2
call fcn.00447610
test al, al
je 0x430300
lea ecx, [ebp - 0x5c8]
call fcn.004478d0
push 4
push 0x3000
push 0x18
push 0
mov byte [ebp - 0x5c8], 6
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x5c4], edi
test edi, edi
jne 0x42fee0
push str.alloc_failed
push 0x200
push esi
call fcn.00483128
add esp, 0xc
jmp 0x430300
push 4
push 0x3000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov edx, edi
xor eax, eax
mov dword [ebp - 0x5c0], ecx
sub edx, ecx
mov dword [ebp - 0x5a8], eax
mov esi, ecx
mov dword [ebp - 0x5b0], edx
nop dword [eax]
push eax
push str.Shader_Fx12Unit
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 esi
push eax
push 0x502514
call fcn.004523e0
mov ecx, eax
call fcn.004526f0
mov edi, eax
test edi, edi
jne 0x42ffcc
mov edx, esi
lea ecx, [ebp - 0x360]
call fcn.0044eb80
mov edi, eax
test edi, edi
je 0x4302b4
mov eax, dword [ebp - 0x5b0]
mov dword [eax + esi], edi
add esi, 4
mov eax, dword [ebp - 0x5a8]
inc eax
mov dword [ebp - 0x5a8], eax
cmp eax, 6
jl 0x42ff10
movzx edx, word [ebp - 0x156]
xor edi, edi
test edx, edx
je 0x430266
nop
mov esi, dword [ebp - 0x15c]
xor eax, eax
mov ecx, esi
nop word [eax + eax]
cmp dword [ecx], edi
je 0x430020
inc eax
add ecx, 0x2c
cmp eax, edx
jl 0x430010
xor esi, esi
jmp 0x430028
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 0x430053
cmp cl, al
jae 0x430053
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b4], eax
mov al, byte [ebp - 0x154]
jmp 0x43005d
mov dword [ebp - 0x5b4], 0
mov edx, dword [ebp - 0x14c]
test edx, edx
je 0x430079
cmp cl, al
jae 0x430079
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b8], eax
jmp 0x430083
mov dword [ebp - 0x5b8], 0
mov cl, byte [esi + 0x1c]
cmp cl, 6
jae 0x43009f
mov edx, dword [ebp - 0x5c4]
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5b0], eax
jmp 0x4300a9
mov dword [ebp - 0x5b0], 0
mov edx, dword [ebp - 0x5c0]
test edx, edx
je 0x4300c6
cmp cl, 6
jae 0x4300c6
movzx eax, cl
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x5a8], eax
jmp 0x4300d0
mov dword [ebp - 0x5a8], 0
push 0x23c
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.0047ebc0
mov eax, dword [ebp - 0x5bc]
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 - 0x5b4]
mov dword [ebp - 0x59c], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x598], eax
mov eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x594], eax
mov eax, dword [ebp - 0x5a8]
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 0x4301e8
cmp eax, 3
je 0x4301e8
mov dword [ebp - 0x3a4], 1
mov dword [ebp - 0x39c], 0
jmp 0x4301fc
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 eax, dword [ebp - 0x5bc]
mov ecx, dword [0x4fe45c]
lea eax, [eax + edi*4]
mov edx, dword [ecx]
add eax, 0x14
push eax
push 0x4efae4
lea eax, [ebp - 0x5a0]
push eax
push ecx
call dword [edx + 0x28]
test eax, eax
jne 0x43029d
movzx edx, word [ebp - 0x156]
inc edi
cmp edi, edx
jl 0x430000
mov eax, dword [ebp - 0x5bc]
mov byte [ebp - 0x5a1], 1
mov dword [eax + 0x3a0], 0x3f800000
mov dword [eax + 0x3a4], 0x3f800000
mov dword [eax + 0x3a8], 0x3f800000
mov dword [eax + 0x3ac], 0x3f800000
jmp 0x430307
push eax
push edi
push str.clsFx12Unit_CreateGraphicsPipelineState__d_____d_Failed_n
push dword [ebp - 0x5ac]
call fcn.0044d1b0
add esp, 0x10
jmp 0x430300
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 eax, dword [ebp - 0x5b0]
mov dword [eax + esi], edi
lea eax, [ebp - 0x120]
push eax
push str.ShaderFile:_s_load_failed
push dword [ebp - 0x5ac]
call fcn.0044d1b0
add esp, 0x1c
mov byte [ebp - 0x5a1], 0
lea ecx, [ebp - 0x5c8]
call fcn.004478d0
lea ecx, [ebp - 0x154]
call fcn.004478d0
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x430330
push ecx
call fcn.0047d79d
add esp, 4
mov al, byte [ebp - 0x5a1]
jmp 0x42f541