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

Disassembly:
sub esp, 0x58
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x6c]
movups xmm0, xmmword [esi + 0x68]
push edi
sub esp, 0x10
mov dword [esp + 0x2c], esi
lea ebp, [esi + 0x68]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0040a4f0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x47436b
mov ecx, dword [eax]
mov ebp, dword [ebx + ecx*4 + 0x63de0]
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x474368
push 4
push 0
lea eax, [esi + 0x78]
push eax
push ebx
call fcn.00476a70
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x474463
lea ebp, [esi + 0x68]
movups xmm0, xmmword [ebp]
psrldq xmm0, 0xc
movd eax, xmm0
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x474388
test eax, eax
jne 0x474430
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
cmp eax, 2
je 0x474430
xor ecx, ecx
mov edi, 2
push 4
push ecx
test eax, eax
push ebp
push ebx
cmovne edi, ecx
call fcn.00476a70
mov edx, dword [ebx + 0x63fec]
add esp, 0x10
mov ebp, dword [ebx + 0x640fc]
mov esi, dword [ebx + 0x63bc8]
shr edx, 2
shr ebp, 2
add ebp, edx
shr esi, 2
add ebp, esi
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x24], 6
mov edx, ebp
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x18
mov ecx, eax
imul ecx, ebp
add ecx, dword [ebx + 0x64208]
nop dword [eax]
cmp dword [ecx + 4], edi
jne 0x4743fc
mov esi, dword [ecx + 8]
test esi, esi
je 0x474401
inc edx
add ecx, eax
jmp 0x4743f0
cmp dword [esp + 0x10], 0
sete al
sub edx, ebp
movzx eax, al
push eax
push dword [esp + 0x18]
push edx
push edi
push dword [ecx + 0xc]
push esi
push 1
push ebx
call fcn.0046da40
mov esi, dword [esp + 0x3c]
add esp, 0x20
mov ebp, eax
mov dword [esp + 0x18], eax
jmp 0x474446
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
mov ebp, dword [ecx + eax]
mov dword [esp + 0x18], ebp
push 4
push 0
lea eax, [esi + 0x78]
push eax
push ebx
call fcn.00476a70
add esp, 0x10
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x47467b
test eax, eax
je 0x47467b
movups xmm0, xmmword [esi + 0x58]
lea edi, [esi + 0x58]
psrldq xmm0, 0xc
movd eax, xmm0
movups xmm0, xmmword [edi]
psrldq xmm0, 0xc
movzx ebp, byte [eax + 0x10]
movd eax, xmm0
cmp byte [eax + 0x11], 0x10
jne 0x47449e
mov eax, dword [ebx + 0x2c]
or dword [ebx + 0x28], 0x40000
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x64230]
shl ecx, 6
push dword [ecx + eax]
call fcn.00480140
push eax
call fcn.00480110
add esp, 8
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
xor esi, esi
movups xmmword [esp + 0x2c], xmm0
test ebp, ebp
je 0x4744f1
push eax
push esi
push edi
push ebx
call fcn.00476a70
add esp, 0x10
mov dword [esp + esi*4 + 0x2c], eax
test eax, eax
je 0x47467b
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebp
jb 0x4744d0
lea esi, [ebx + 0x10]
push 0x20
push esi
call fcn.0047ee30
add esp, 8
test eax, eax
je 0x47467b
push eax
push esi
call fcn.0047fe70
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x47467b
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0x64]
movzx ecx, byte [ecx + 0x11]
push ecx
push dword [esp + 0x14]
call fcn.004767b0
add esp, 8
mov dword [esp + 0x10], eax
cmp ebp, 4
jae 0x474581
push dword [esp + 0x2c]
call fcn.00480140
push eax
push esi
call fcn.0047fe70
add esp, 0xc
test eax, eax
je 0x47467b
mov ecx, 4
lea edi, [esp + 0x2c]
sub ecx, ebp
lea edi, [edi + ebp*4]
shl ecx, 2
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov al, 1
mov ecx, ebp
shl al, cl
dec al
movzx eax, al
push eax
push esi
call fcn.0047ec10
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x47467b
cmp dword [ebx + 0x1c], 2
push dword [esp + 0x10]
jb 0x47464a
mov ecx, dword [edi + 0x64]
push str.dx.op.rawBufferStore
push esi
movzx edi, byte [ecx + 0x11]
shr edi, 3
call fcn.00482a70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4745e1
mov al, 0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004eee25
add esp, 0x58
ret
push 0x8c
push esi
call fcn.0047eb70
movups xmm0, xmmword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push edi
push esi
mov dword [esp + 0x58], eax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x6c], ebp
call fcn.0047eb70
mov dword [esp + 0x70], eax
lea eax, [esp + 0x4c]
push 0xa
push eax
push ebx
push esi
call fcn.0047d170
add esp, 0x20
test al, al
setne al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004eee25
add esp, 0x58
ret
push ebp
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.0046d050
add esp, 0x18
test al, al
setne al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004eee25
add esp, 0x58
ret
mov ecx, dword [esp + 0x64]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eee25
add esp, 0x58
ret