Function at 0x403fe0
Capabilities:
Access peb ldr_data

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 0x415f6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x194
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
lea esi, [edi + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x180], eax
push 0x30
mov dword [edi], 0
lea eax, [ebp - 0x44]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [esi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 0x20], xmm0
push 0
movq qword [edi + 0x30], xmm0
push eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x18], 0x1000
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.00404750
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
movaps xmm0, xmmword [0x41e230]
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x180]
push esi
mov esi, dword [ebp - 0x180]
push ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x108]
movups xmmword [ebp - 0x44], xmm0
push ecx
movaps xmm0, xmmword [0x41e090]
movups xmmword [ebp - 0x34], xmm0
push esi
movaps xmm0, xmmword [0x41e0b0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x108], 0x30
mov dword [ebp - 0x104], 1
mov dword [ebp - 0x100], 1
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
call dword [eax + 0xc]
test eax, eax
js 0x4044a5
lea eax, [edi + 8]
mov dword [ebp - 0xf0], str.POSITION
push eax
push edi
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xec], 0
push 6
push eax
mov edx, str.._Data_Shaders_primitive_batch_vs.cso
mov dword [ebp - 0xe8], 6
mov ecx, esi
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], str.NDC_TRANSFORM
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 2
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], str.NDC_TRANSFORM
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], str.NDC_TRANSFORM
mov dword [ebp - 0x98], 2
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x80], str.NDC_TRANSFORM
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], str.COLOR
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 1
call fcn.00404b20
add esp, 0x10
test al, al
je 0x4044a5
lea eax, [edi + 4]
mov edx, str.._Data_Shaders_primitive_batch_ps.cso
push eax
mov ecx, esi
call fcn.00404cf0
add esp, 4
test al, al
je 0x4044a5
mov esi, dword [edi + 0x18]
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x1a0], esi
mov edx, 0x50
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0040aec5
add esp, 4
mov dword [ebp - 0x1a4], eax
push fcn.00403e60
push 0x4044e0
push esi
mov byte [ebp - 4], 1
mov dword [eax], esi
add eax, 4
push 0x50
push eax
mov dword [ebp - 0x184], eax
call fcn.0040ae1d
mov esi, dword [ebp - 0x180]
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 0
mov eax, dword [edi + 0x18]
push ecx
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x11c], 2
push ecx
lea eax, [eax + eax*4]
mov dword [ebp - 0x118], 1
shl eax, 4
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x19c], eax
mov eax, dword [esi]
push ecx
push esi
mov dword [ebp - 0x114], 0x10000
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
call dword [eax + 0xc]
test eax, eax
js 0x4044a5
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x404420
push fcn.00403e60
lea esi, [eax - 4]
mov byte [ebp - 4], 2
push dword [esi]
push 0x50
push eax
call fcn.0040ad08
mov eax, dword [esi]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 4
push eax
push esi
call fcn.0040acfa
mov esi, dword [ebp - 0x180]
add esp, 8
mov byte [ebp - 4], 0
movaps xmm0, xmmword [0x41e0a0]
lea ecx, [edi + 0x10]
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push esi
movups xmmword [ebp - 0x130], xmm0
call dword [eax + 0x58]
test eax, eax
js 0x4044a5
movaps xmm0, xmmword [0x41e0d0]
lea ecx, [edi + 0x14]
mov eax, dword [esi]
push ecx
movups xmmword [ebp - 0x17c], xmm0
lea ecx, [ebp - 0x17c]
mov word [ebp - 0x16c], 0xffff
movaps xmm0, xmmword [0x41e1d0]
movups xmmword [ebp - 0x168], xmm0
push ecx
movaps xmm0, xmmword [0x41e1e0]
push esi
movups xmmword [ebp - 0x158], xmm0
call dword [eax + 0x54]
push fcn.00403e60
push 4
push 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0040ad08
mov eax, edi
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.0040ac8b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8