Function at 0x10003130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1003400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x20]
test ecx, ecx
jne 0x100031b0
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x10003347
push edi
lea eax, [ebp - 0x204]
push str.D3DEXT_ERROR:__s:_pBufferForDrawCount_cannot_be_NULL._n
push eax
call fcn.10003e60
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x1c
test eax, eax
jne 0x10003209
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x10003347
push edi
lea eax, [ebp - 0x204]
push str.D3DEXT_ERROR:__s:_pBufferForArgs_cannot_be_NULL._n
push eax
call fcn.10003e60
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ecx]
lea edx, [ebp - 0x21c]
push edx
xorps xmm0, xmm0
push ecx
mov esi, dword [eax + 0x28]
mov ecx, esi
movups xmmword [ebp - 0x21c], xmm0
movq qword [ebp - 0x20c], xmm0
call dword [0x10029138]
call esi
mov ecx, dword [ebp + 0xc]
xor eax, eax
add ecx, 4
adc eax, eax
test eax, eax
jb 0x100032b0
ja 0x1000324a
cmp ecx, dword [ebp - 0x21c]
jbe 0x100032b0
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x10003347
lfence
mov eax, dword [ebp - 0x21c]
push eax
add eax, 0xfffffffc
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push edi
push str.D3DEXT_ERROR:__s:_AlignedByteOffsetForDrawCount___u__must_be_smaller_or_equal_to__u__buffer_size_in_bytes___u____4_._n
push eax
call fcn.10003e60
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
push edx
xorps xmm0, xmm0
push ecx
mov eax, dword [ecx]
movups xmmword [ebp - 0x234], xmm0
movq qword [ebp - 0x224], xmm0
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x10029138]
call esi
mov eax, dword [ebp + 0x10]
mul dword [ebp + 0x1c]
add eax, dword [ebp + 0x18]
adc edx, 0
test edx, edx
jb 0x1000335c
ja 0x100032f9
cmp eax, dword [ebp - 0x234]
jbe 0x1000335c
mov eax, dword [ebx + 0x40]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x98]
mov ecx, esi
call dword [0x10029138]
call esi
test al, 2
je 0x10003347
lfence
push dword [ebp - 0x234]
lea eax, [ebp - 0x204]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push edi
push str.D3DEXT_ERROR:__s:_MaxCount___u___ByteStrideForArgs___u___AlignedByteOffsetForArgs___u__must_be_smaller_or_equal_to__u__buffer_size_in_bytes_._n
push eax
call fcn.10003e60
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148f0
mov esp, ebp
pop ebp
ret 0x1c