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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
shl eax, 2
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x30]
inc edx
xor ecx, ecx
cmp eax, 0x1f
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
jne 0x519ffb
mov dword [ebp - 4], 2
cmp dword [esi + 0x78], ecx
je 0x51a067
cmp eax, 0x1a
je 0x51a05b
cmp eax, 0x19
je 0x51a05b
cmp eax, 0x1c
je 0x51a05b
cmp eax, 0x1e
je 0x51a05b
cmp eax, 0x14
je 0x51a02d
cmp eax, 0x15
je 0x51a02d
cmp eax, 0x16
je 0x51a02d
cmp eax, 0x17
je 0x51a02d
cmp eax, 0x18
jne 0x51a067
mov eax, dword [edi + 0x48]
cmp eax, ecx
je 0x51a067
cmp dword [eax + 0x10], ecx
jne 0x51a067
push str.Matrices_cannot_be_specified_in_temp_registers_with_the_fragment_linker
push 0x7ea
add edi, 0x10
push edi
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov eax, 0x80004005
jmp 0x51a73f
push str.call__callnz__label__and_ret_instructions_are_not_allowed_in_assembly_fragments
push 0x7e9
jmp 0x51a043
push ebx
mov ebx, dword [edi + 0x3c]
cmp ebx, ecx
je 0x51a117
cmp dword [ebx + 4], 0x13
jne 0x51a117
inc dword [ebp - 4]
cmp dword [ebx + 0x10], 0xffffffff
jne 0x51a089
mov dword [ebp - 8], edx
cmp dword [ebx + 0x14], ecx
je 0x51a0ad
push str.source_modifiers_are_not_allowed_on_destination_parameters
push 0x7de
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x51a117
mov eax, dword [esi + 0x38]
cmp eax, 4
jl 0x51a0f8
cmp eax, 5
jg 0x51a0f8
cmp dword [ebx + 0x10], 0xffffffff
jne 0x51a0ce
mov dword [ebp - 8], 1
cmp dword [ebx + 0x28], 0
je 0x51a0f3
push str.only_one_address_register_reference_is_allowed_in_a_relative_address_expression
push 0x7d9
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
inc dword [ebp - 4]
jmp 0x51a117
push str.relative_addressing_of_destination_parameters_is_not_supported_in_this_shader_version
push 0x7d8
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
mov eax, dword [edi + 0x40]
test eax, eax
je 0x51a1c6
cmp dword [eax + 4], 0x13
jne 0x51a1c6
mov eax, dword [esi + 0x38]
test eax, eax
jl 0x51a138
cmp eax, 1
jle 0x51a142
cmp eax, 6
jl 0x51a161
cmp eax, 0xa
jg 0x51a161
push str.predicates_are_not_supported_in_this_shader_version
push 0x7e5
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
mov ebx, dword [edi + 0x40]
inc dword [ebp - 4]
cmp dword [ebx + 0x10], 0xffffffff
jne 0x51a174
mov dword [ebp - 8], 1
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x51a1a1
cmp eax, 0xd000000
je 0x51a1a1
push str.source_modifiers_are_not_allowed_on_predicates
push 0x7e3
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
cmp dword [ebx + 0x28], 0
je 0x51a1c6
push str.relative_addressing_of_predicates_is_not_supported_in_this_shader_version
push 0x7e4
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
and dword [ebp + 8], 0
lea eax, [edi + 0x44]
mov ebx, eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x51a245
mov eax, dword [edi + 0x30]
inc dword [ebp - 4]
cmp eax, 0x51
je 0x51a239
cmp eax, 0x30
je 0x51a239
cmp eax, 0x2f
je 0x51a239
cmp dword [ecx + 0x10], 0xffffffff
jne 0x51a1f7
mov dword [ebp - 8], 1
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x51a239
cmp dword [eax + 0x10], 0xffffffff
jne 0x51a20b
mov dword [ebp - 8], 1
cmp dword [eax + 0x28], 0
je 0x51a230
push str.only_one_address_register_reference_is_allowed_in_a_relative_address_expression
push 0x7d9
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
cmp dword [esi + 0x38], 0
je 0x51a239
inc dword [ebp - 4]
inc dword [ebp + 8]
add ebx, 4
cmp dword [ebp + 8], 4
jb 0x51a1cf
push dword [ebp - 4]
mov ecx, esi
call fcn.00519f29
test eax, eax
jl 0x51a73e
mov eax, dword [esi + 0x5c]
add eax, dword [ebp - 4]
mov ebx, dword [edi + 0x30]
cmp ebx, 3
mov dword [ebp - 0xc], eax
jne 0x51a373
mov eax, dword [esi + 0x38]
test eax, eax
jl 0x51a278
cmp eax, 5
jle 0x51a28a
cmp eax, 0xa
jl 0x51a373
cmp eax, 0xe
jg 0x51a373
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x14]
mov edx, 0x7000000
cmp ecx, edx
push 2
pop ebx
ja 0x51a333
je 0x51a32a
test ecx, ecx
je 0x51a321
cmp ecx, 0x1000000
je 0x51a31b
mov edx, 0x2000000
cmp ecx, edx
je 0x51a312
cmp ecx, 0x3000000
je 0x51a370
mov edx, 0x4000000
cmp ecx, edx
je 0x51a309
cmp ecx, 0x5000000
je 0x51a370
cmp ecx, 0x6000000
jne 0x51a373
push str.source_modifiers_incompatible_with_SUB_instruction
push 0x7dd
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
jmp 0x51a373
mov dword [eax + 0x14], 0x5000000
jmp 0x51a373
mov dword [eax + 0x14], 0x3000000
jmp 0x51a373
and dword [eax + 0x14], 0
jmp 0x51a373
mov dword [eax + 0x14], 0x1000000
jmp 0x51a373
mov dword [eax + 0x14], 0x8000000
jmp 0x51a373
cmp ecx, 0x8000000
je 0x51a370
cmp ecx, 0x9000000
je 0x51a2e8
cmp ecx, 0xa000000
je 0x51a2e8
mov edx, 0xb000000
cmp ecx, edx
je 0x51a367
cmp ecx, 0xc000000
je 0x51a370
cmp ecx, 0xd000000
jmp 0x51a2e2
mov dword [eax + 0x14], 0xc000000
jmp 0x51a373
mov dword [eax + 0x14], edx
cmp dword [edi + 0x54], 0
je 0x51a37f
or ebx, 0x40000000
cmp dword [edi + 0x40], 0
je 0x51a38b
or ebx, 0x10000000
mov eax, dword [esi + 0x38]
cmp eax, 1
jl 0x51a398
cmp eax, 5
jle 0x51a3a2
cmp eax, 0xa
jl 0x51a3ab
cmp eax, 0xe
jg 0x51a3ab
mov eax, dword [ebp - 4]
dec eax
shl eax, 0x18
or ebx, eax
mov eax, dword [edi + 0x30]
cmp eax, 0x29
je 0x51a3bd
cmp eax, 0x2d
je 0x51a3bd
cmp eax, 0x5e
jne 0x51a3c8
mov eax, dword [edi + 0x38]
and eax, 7
shl eax, 0x10
or ebx, eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x5c]
cmp dword [edi + 0x30], 0x1f
mov eax, dword [esi + 0x5c]
jne 0x51a3f2
mov ecx, dword [edi + 0x38]
mov edx, dword [esi + 0x58]
or ecx, 0x80000000
mov dword [edx + eax*4], ecx
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x5c]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x51a4ca
cmp dword [ecx + 4], 0x13
jne 0x51a4ca
cmp dword [esi + 0x38], 0
mov ebx, 0xf0000
jne 0x51a439
cmp dword [ecx + 0x20], ebx
jne 0x51a439
mov eax, dword [edi + 0x30]
cmp eax, 0x15
je 0x51a432
cmp eax, 0x17
je 0x51a432
cmp eax, 0x18
jne 0x51a439
mov dword [ecx + 0x20], 0x30000
jmp 0x51a439
mov dword [ecx + 0x20], 0x70000
mov edx, dword [ecx + 0x10]
mov eax, edx
or eax, 0xfffffff8
and edx, 0x18
shl eax, 0x14
or eax, edx
mov edx, dword [edi + 0x34]
and edx, 0xff00000
shl eax, 8
or eax, edx
mov edx, dword [ecx + 0x18]
and edx, 0x7ff
or eax, edx
mov edx, dword [ecx + 0x20]
and edx, ebx
or eax, edx
cmp dword [ecx + 0x28], 0
je 0x51a474
or eax, 0x2000
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x58]
mov dword [ebx + edx*4], eax
inc dword [esi + 0x5c]
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov eax, dword [esi + 0x5c]
je 0x51a4ca
mov edx, dword [ecx + 0x10]
mov ebx, edx
or ebx, 0xfffffff8
shl ebx, 0x14
and edx, 0x18
or ebx, edx
mov edx, dword [ecx + 0x14]
shl ebx, 8
and edx, 0xf000000
or ebx, edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x24]
and edx, 0x7ff
and ecx, 0xff0000
or ebx, edx
or ebx, ecx
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x5c]
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x51a517
cmp dword [ecx + 4], 0x13
jne 0x51a517
mov edx, dword [ecx + 0x10]
mov ebx, edx
or ebx, 0xfffffff8
shl ebx, 0x14
and edx, 0x18
or ebx, edx
mov edx, dword [ecx + 0x14]
shl ebx, 8
and edx, 0xf000000
or ebx, edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x24]
and edx, 0x7ff
and ecx, 0xff0000
or ebx, edx
or ebx, ecx
mov ecx, dword [esi + 0x58]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x5c]
mov ecx, dword [edi + 0x30]
cmp ecx, 0x51
jne 0x51a565
and dword [ebp + 8], 0
lea ecx, [edi + 0x44]
mov ebx, ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x51a6f4
mov edx, dword [ecx + 0x10]
cmp edx, 5
jl 0x51a54e
cmp edx, 8
jg 0x51a54e
fld qword [ecx + 0x18]
mov ecx, dword [esi + 0x58]
fstp dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4], edx
inc dword [esi + 0x5c]
inc dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add ebx, 4
cmp dword [ebp + 8], 4
jb 0x51a528
jmp 0x51a6f4
cmp ecx, 0x30
jne 0x51a5a8
and dword [ebp + 8], 0
lea ecx, [edi + 0x44]
mov ebx, ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x51a6f4
mov edx, dword [ecx + 0x10]
dec edx
dec edx
je 0x51a588
dec edx
dec edx
jne 0x51a591
mov edx, dword [esi + 0x58]
mov ecx, dword [ecx + 0x18]
mov dword [edx + eax*4], ecx
inc dword [esi + 0x5c]
inc dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add ebx, 4
cmp dword [ebp + 8], 4
jb 0x51a573
jmp 0x51a6f4
cmp ecx, 0x2f
jne 0x51a5c6
mov ecx, dword [edi + 0x44]
xor edx, edx
cmp dword [ecx + 0x18], edx
mov ecx, dword [esi + 0x58]
setne dl
mov dword [ecx + eax*4], edx
inc dword [esi + 0x5c]
jmp 0x51a6f4
and dword [ebp + 8], 0
lea eax, [edi + 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x51a6f4
cmp dword [esi + 0x38], 0
jne 0x51a614
cmp dword [eax + 0x24], 0xe40000
jne 0x51a614
mov ecx, dword [edi + 0x30]
cmp ecx, 6
je 0x51a60d
cmp ecx, 7
je 0x51a60d
cmp ecx, 0xe
je 0x51a60d
cmp ecx, 0x4e
je 0x51a60d
cmp ecx, 0xf
je 0x51a60d
cmp ecx, 0x4f
jne 0x51a614
mov dword [eax + 0x24], 0xff0000
mov edx, dword [eax + 0x10]
mov ecx, edx
or ecx, 0xfffffff8
and edx, 0x18
shl ecx, 0x14
or ecx, edx
mov edx, dword [eax + 0x14]
and edx, 0xf000000
shl ecx, 8
or ecx, edx
mov edx, dword [eax + 0x18]
and edx, 0x7ff
or ecx, edx
mov edx, dword [eax + 0x24]
and edx, 0xff0000
or ecx, edx
cmp dword [eax + 0x28], 0
je 0x51a654
or ecx, 0x2000
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x58]
mov dword [ebx + edx*4], ecx
inc dword [esi + 0x5c]
mov eax, dword [eax + 0x28]
mov edx, dword [esi + 0x5c]
xor ecx, ecx
cmp eax, ecx
je 0x51a6e3
cmp dword [esi + 0x38], ecx
jne 0x51a6a7
cmp dword [eax + 0x10], 3
jne 0x51a686
cmp dword [eax + 0x14], ecx
jne 0x51a686
cmp dword [eax + 0x18], ecx
jne 0x51a686
cmp dword [eax + 0x24], ecx
je 0x51a6e3
push str.only_a0.x_is_allowed_as_a_relative_address_register_in_vs_1_1
push 0x7d7
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
jmp 0x51a6e3
mov ecx, dword [eax + 0x10]
mov ebx, ecx
or ebx, 0xfffffff8
shl ebx, 0x14
and ecx, 0x18
or ebx, ecx
mov ecx, dword [eax + 0x14]
shl ebx, 8
and ecx, 0xf000000
or ebx, ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x24]
and ecx, 0x7ff
and eax, 0xff0000
or ebx, ecx
or ebx, eax
mov eax, dword [esi + 0x58]
mov dword [eax + edx*4], ebx
inc dword [esi + 0x5c]
inc dword [ebp + 8]
add dword [ebp - 4], 4
cmp dword [ebp + 8], 4
jb 0x51a5d0
mov eax, dword [esi + 0x5c]
cmp eax, dword [ebp - 0xc]
je 0x51a718
push str.internal_error:_instruction_size_mismatch
push 0
lea eax, [edi + 0x10]
push eax
push dword [esi]
call fcn.005182f9
add esp, 0x10
mov dword [esi + 0x4c], 1
cmp dword [ebp - 8], 0
je 0x51a726
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x64], eax
jmp 0x51a73c
add edi, 0x10
push edi
mov ecx, esi
call fcn.00519ed9
test eax, eax
jge 0x51a73c
mov dword [esi + 0x50], 1
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4