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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x1004a87a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x100cf50c
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
js 0x1004a87a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1004da40
add eax, 0xffffffe8
add esp, 4
cmp eax, 0x40
ja case.0x1004a76c.25
movzx eax, byte [eax + 0x1004b218]
jmp dword [eax*4 + 0x1004b210]
cmp dword [ebp - 0x28], 1
seta byte [ebp - 5]
cmp dword [ebp - 0x30], 1
ja 0x1004a78b
cmp dword [ebp - 0x34], 1
mov byte [ebp + 0xb], 0
jbe 0x1004a78f
mov byte [ebp + 0xb], 1
mov ecx, dword [ebx + 8]
lea esi, [ebx + 8]
mov edi, edx
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x1004a805
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push edx
push ecx
call dword [eax + 0x30]
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x3c]
jne 0x1004a885
mov eax, dword [ebp - 0x20c]
cmp eax, dword [ebp - 0x38]
jne 0x1004a885
push edx
call fcn.1004da40
add esp, 4
cmp dword [ebp - 0x200], eax
jne 0x1004a885
mov ecx, 0xb
lea esi, [ebp - 0x210]
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
lea esi, [ebx + 8]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xc]
test ecx, ecx
jne 0x1004a8a3
push edx
call fcn.1004da40
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], 1
push esi
push 0
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x124]
test eax, eax
jns 0x1004a8a3
push eax
push str.CD3D10ScaleToNV12_failed_to_create_resolve_texture:_0x_x_n
call fcn.10081660
add esp, 8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1004a87a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [esi]
test ecx, ecx
je 0x1004a805
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
mov dword [esi], 0
jmp 0x1004a805
cmp byte [ebp - 5], 0
je 0x1004a9a0
mov eax, edi
sub eax, 0x1d
je 0x1004a8d8
sub eax, 0x3e
je 0x1004a8d8
sub eax, 2
je 0x1004a8d8
mov eax, dword [ebx]
push edi
push 0
push dword [ebp - 4]
mov ecx, dword [eax]
push 0
push dword [esi]
push eax
call dword [ecx + 0x98]
jmp 0x1004a9d0
mov edx, dword [ebx]
lea esi, [ebp - 0x3c]
mov ecx, 0xb
lea edi, [ebp - 0x1e4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push ecx
push 0
mov dword [ebp - 0x1d4], esi
lea ecx, [ebp - 0x1e4]
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1dc], 1
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x124]
test eax, eax
jns 0x1004a968
push eax
push str.CD3D10ScaleToNV12_failed_to_create_SRGB_resolve_texture:_0x_x_n
jmp 0x1004a865
mov eax, dword [ebx]
push esi
push 0
push dword [ebp - 4]
mov ecx, dword [eax]
push 0
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x98]
mov eax, dword [ebx]
lea esi, [ebx + 8]
push dword [ebp - 0xc]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1004a9d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x1004a9d0
cmp byte [ebp + 0xb], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [eax]
je 0x1004a9c5
push 0
push 0
push dword [ebp - 4]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0x80]
jmp 0x1004a9d0
push dword [ebp - 4]
push edx
push eax
call dword [ecx + 0x84]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1004a9dd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
fld dword [ebx + 0x48]
fsub dword [ebx + 0x40]
mov eax, dword [ebp - 0x38]
fild dword [ebp - 0x38]
test eax, eax
jns 0x1004a9fe
fadd dword [0x100cf570]
fstp dword [ebp + 8]
fmul dword [ebp + 8]
fld qword [0x100cf558]
fadd st(1), st(0)
fxch st(1)
call fcn.100a1c50
fld dword [ebx + 0x44]
mov esi, eax
fsub dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x3c]
fild dword [ebp - 0x3c]
test ecx, ecx
jns 0x1004aa2b
fadd dword [0x100cf570]
fstp dword [ebp + 8]
fmul dword [ebp + 8]
faddp st(1)
call fcn.100a1c50
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], esi
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push eax
call fcn.1004d840
push dword [ebp + 0x1c]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp + 0x14]
push edi
push esi
call fcn.1009e050
mov ecx, dword [ebp + 0x20]
add esp, 0x24
mov dword [ecx], eax
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
lea eax, [edi + edi*2]
cdq
sub eax, edx
sar ecx, 1
mov esi, eax
mov dword [ebp + 8], ecx
sar esi, 1
mov dword [ebp + 0x18], esi
cmp dword [ebx + 0x30], ecx
jne 0x1004aa92
cmp dword [ebx + 0x34], esi
je 0x1004aaeb
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1004aaa6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x10], 0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1004aaba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0xc], 0
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x1004aace
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x28], 0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1004aae2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], esi
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
cmp eax, dword [ebx + 0x38]
je 0x1004ab0e
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x1004ab0b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 0x28], 0
mov eax, dword [edi]
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jne 0x1004ac2a
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x114], eax
mov eax, dword [ebx]
push esi
push 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x104], 1
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x108], 0x31
mov dword [ebp - 0xf8], 0x28
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x124]
test eax, eax
jns 0x1004aba8
push eax
push str.CD3D10ScaleToNV12_couldnt_create_render_target:_0x_x_n
jmp 0x1004abfc
mov ecx, dword [ebx]
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], 0
push eax
push dword [esi]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x98], 0x31
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0x130]
test eax, eax
jns 0x1004ac2a
push eax
push str.CD3D10ScaleToNV12_couldnt_create_render_target_view:_0x_x_n
call fcn.10081660
mov ecx, dword [ebp - 4]
add esp, 8
test ecx, ecx
je 0x1004ac18
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.1004f1e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebx + 0x20], 0
lea edx, [ebx + 0x20]
fld qword [0x100cf550]
jne 0x1004ae7e
movss xmm0, dword [ebx + 0x3c]
lea eax, [ebp - 0x1b8]
movss xmm2, dword [ebx + 0x48]
movss xmm1, dword [ebx + 0x40]
fild dword [ebp + 0x14]
mov dword [ebp - 0x1b8], 0xbf800000
mov dword [ebp - 0x1b4], 0xbf800000
mov dword [ebp - 0x1b0], 0
movss dword [ebp - 0x1ac], xmm0
movss dword [ebp - 0x198], xmm0
movss dword [ebp + 0x10], xmm0
movss xmm0, dword [ebx + 0x44]
movss dword [ebp - 0x1a8], xmm2
mov dword [ebp - 0x1a4], 0xbf800000
mov dword [ebp - 0x1a0], 0x3f800000
mov dword [ebp - 0x19c], 0
movss dword [ebp - 0x194], xmm1
mov dword [ebp - 0x190], 0x3f800000
mov dword [ebp - 0x18c], 0xbf800000
mov dword [ebp - 0x188], 0
movss dword [ebp - 0x184], xmm0
movss dword [ebp - 0x180], xmm2
mov dword [ebp - 0x17c], 0x3f800000
mov dword [ebp - 0x178], 0x3f800000
mov dword [ebp - 0x174], 0
movss dword [ebp - 0x170], xmm0
movss dword [ebp - 0x16c], xmm1
mov dword [ebp - 0x168], 0xbf800000
mov dword [ebp - 0x164], 0xbf800000
mov dword [ebp - 0x160], 0
fstp dword [ebp + 0x20]
fdiv dword [ebp + 0x20]
push edx
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx]
push edx
lea edx, [ebp - 0xac]
mov dword [ebp - 0x154], 0xbf800000
mov dword [ebp - 0x150], 0x3f800000
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x140], 0x3f800000
mov dword [ebp - 0x13c], 0xbf800000
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x12c], 0x3f800000
mov dword [ebp - 0x128], 0x3f800000
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0xa0
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push edx
push eax
movss dword [ebp + 0xc], xmm0
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fld dword [ebp + 0x10]
fsub st(1)
movss dword [ebp - 0x158], xmm2
movss dword [ebp - 0x144], xmm1
movss dword [ebp - 0x130], xmm2
movss dword [ebp - 0x11c], xmm1
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fst dword [ebp - 0x15c]
fstp dword [ebp - 0x148]
fsubr dword [ebp + 0xc]
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fst dword [ebp - 0x134]
fstp dword [ebp - 0x120]
mov ecx, dword [eax]
call dword [ecx + 0x11c]
test eax, eax
jns 0x1004ae80
push eax
push str.CD3D10ScaleToNV12_couldnt_create_vertex_buffer:_0x_x_n
call fcn.10081660
mov ecx, dword [ebp - 4]
add esp, 8
test ecx, ecx
je 0x1004ae6c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.1004f1e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
fstp st(0)
cmp dword [ebx + 0x24], 0
lea esi, [ebx + 0x24]
jne 0x1004af23
mov eax, dword [ebx]
lea edx, [ebp - 0x78]
push esi
push edx
mov dword [ebp - 0xb4], 0
lea edx, [ebp - 0xc0]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 8
mov dword [ebp - 0xb8], 2
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0x100ceed0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x11c]
test eax, eax
jns 0x1004af23
push eax
push str.CD3D10ScaleToNV12_couldnt_create_index_buffer:_0x_x_n
call fcn.10081660
mov ecx, dword [ebp - 4]
add esp, 8
test ecx, ecx
je 0x1004af11
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.1004f1e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebx + 0x28], 0
jne 0x1004b03a
fld dword [ebx + 0x44]
lea eax, [ebp - 0x214]
fsub dword [ebx + 0x3c]
push 0x30
push 0
push eax
fmul qword [0x100cf550]
fild dword [ebp + 8]
fstp dword [ebp + 0x20]
fdiv dword [ebp + 0x20]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
fstp dword [ebp - 0x224]
call fcn.100a3330
push 4
lea eax, [ebp - 0x214]
push eax
push dword [edi]
call fcn.1009ded0
push 8
lea eax, [ebp - 0x204]
push eax
push dword [edi]
call fcn.1009ddb0
add esp, 0x24
mov dword [ebp - 0xc8], 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x84], eax
lea edx, [ebx + 0x28]
mov eax, dword [ebx]
push edx
lea edx, [ebp - 0x84]
mov dword [ebp - 0xd0], 0
push edx
mov dword [ebp - 0xd4], 0x40
lea edx, [ebp - 0xd4]
mov dword [ebp - 0xcc], 4
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x11c]
test eax, eax
jns 0x1004b03a
push eax
push str.CD3D10ScaleToNV12_couldnt_create_constants_buffer:_0x_x_n
call fcn.10081660
mov ecx, dword [ebp - 4]
add esp, 8
test ecx, ecx
je 0x1004b028
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.1004f1e0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [ebp - 0x2c]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
call fcn.1004da40
add esp, 4
mov dword [ebp - 0xec], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
mov dword [ebp - 0xe8], 4
mov dword [ebp - 0xe0], 1
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0xec]
push edx
push dword [ebp - 4]
push eax
call dword [ecx + 0x12c]
test eax, eax
jns 0x1004b0a5
push eax
push str.CD3D10ScaleToNV12_couldnt_create_shader_resource_view:_0x_x_n
jmp 0x1004a865
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x114]
mov eax, dword [ebx]
push dword [ebx + 0x2c]
mov dword [ebp - 0x48], 0x14
mov dword [ebp - 0x44], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebx]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [eax]
lea edx, [ebx + 0x20]
push edx
push 1
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebx]
push 0
push 0x39
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebx]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebx]
push dword [ebx + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebx]
lea eax, [ebx + 0x10]
push 0
push eax
push 1
mov edx, dword [ecx]
push ecx
call dword [edx + 0x60]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, 0x55555556
mov dword [ebp - 0x60], 0
lea ecx, [edi + edi]
mov dword [ebp - 0x5c], 0
imul ecx
mov eax, dword [ebx]
mov esi, edx
mov dword [ebp - 0x50], 0
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x4c], 0x3f800000
lea edx, [ebp - 0x60]
mov dword [ebp - 0x54], esi
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x78]
mov eax, dword [ebx]
push dword [ebx + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebx]
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 1
push 0
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx]
lea edx, [ebx + 0x28]
push edx
push 1
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov ecx, dword [ebx]
push 0
push 0
push 4
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
mov eax, 0x55555556
mov dword [ebp - 0x5c], esi
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx]
push edx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, dword [ebx]
push dword [ebx + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebx]
push 4
push 0
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1004b1f5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1004b202
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x1c