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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x6a8]
mov esi, dword [edi + 0x6ac]
xor eax, eax
or ebx, 0xffffffff
cmp edx, 0xfffffffb
mov dword [esp + 0x68], edi
mov dword [esp + 0x14], eax
jne 0x47d291
cmp esi, ebx
jne 0x47d291
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x23c]
fld qword [0x5d8c90]
test ch, 4
fstp qword [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], 0xbf800000
jne 0x47d30c
cmp dword [edi + 0x6b8], eax
je 0x47d30c
cmp edx, dword [edi + 0x6b0]
jne 0x47d30c
cmp esi, dword [edi + 0x6b4]
je 0x47d92a
test ch, 8
jne 0x47d92a
mov esi, ecx
and esi, 0xfffff3ff
push 2
mov ecx, edi
mov dword [edi + 0x23c], esi
call fcn.0047c300
test eax, eax
mov dword [esp + 0x6c], eax
jne 0x47d34d
or esi, 0x800
mov dword [esp + 0x14], 0x4e007
mov dword [edi + 0x23c], esi
jmp 0x47d99c
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0047f500
test eax, eax
mov dword [esp + 0x14], eax
jge 0x47d370
or dword [edi + 0x23c], 0x800
jmp 0x47d99c
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [edx + 0x54]
test eax, eax
je 0x47d38d
fld qword [0x5d6138]
fstp qword [esp + 0x70]
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [edx + 0x34]
test eax, eax
jl 0x47d3a5
cmp eax, 1
jne 0x47d3b5
xor esi, esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
jmp 0x47d3b9
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x6a8]
cmp eax, 0xfffffffc
mov ecx, dword [edi + 0x6ac]
mov dword [edi + 0x6b0], eax
mov dword [edi + 0x6b4], ecx
jne 0x47d3e2
cmp ecx, ebx
jne 0x47d3e2
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x47d3fd
mov edx, dword [esp + 0x30]
push esi
push edx
push ecx
push eax
mov ecx, edi
call fcn.0047bf00
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x47d419
jl 0x47d413
mov edx, dword [esp + 0x18]
test edx, edx
jae 0x47d41d
xor edx, edx
xor ecx, ecx
jmp 0x47d435
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sub eax, 1
sbb esi, 0
cmp ecx, esi
jl 0x47d43d
jg 0x47d431
cmp edx, eax
jbe 0x47d43d
mov edx, eax
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x4c]
push 0
push 0
lea ebx, [esp + 0x90]
push ebx
lea ebx, [esp + 0x60]
push ebx
lea ebx, [esp + 0x38]
push ebx
lea ebx, [esp + 0x40]
push ebx
lea ebx, [esp + 0x3c]
push ebx
inc eax
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
push edx
push eax
call dword [esi + 0x3c]
test eax, eax
mov dword [esp + 0x14], eax
jl 0x47d361
cmp eax, 0x8004e00a
je 0x47d361
cmp eax, 1
je 0x47d361
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 4]
test eax, eax
je 0x47d361
mov eax, dword [ebx + 8]
test eax, eax
je 0x47d361
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jge 0x47d4bc
dec eax
imul eax, ecx
sub dword [esp + 0x24], eax
mov ecx, dword [esp + 0x6c]
fld qword [ecx + 0x50]
fst qword [esp + 0x40]
fcomp qword [0x5d9300]
fnstsw ax
test ah, 5
jnp 0x47d4e5
fld qword [esp + 0x40]
fcomp qword [0x5d6130]
fnstsw ax
test ah, 0x41
jne 0x47d4ef
fld qword [0x5d6138]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x47d592
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x47d592
cmp dword [ebx + 8], 1
jle 0x47d592
fld qword [esp + 0x70]
fld qword [0x5d6138]
fucompp
fnstsw ax
test ah, 0x44
jp 0x47d592
cmp dword [ebx + 0x10], 3
jne 0x47d530
mov eax, 0xc
jmp 0x47d536
mov eax, dword [ebx + 0x20]
shl eax, 2
mov ecx, dword [ebx]
add ecx, eax
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
push ecx
sar eax, 1
push ebx
mov dword [esp + 0xe0], eax
call fcn.00416b10
mov edi, dword [esp + 0x68]
fld qword [esp + 0x40]
shl eax, 1
fmul qword [0x5d8c68]
lea ebx, [esp + 0xd0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
fstp qword [esp + 0x40]
mov eax, dword [edi + 0x6b8]
test eax, eax
lea esi, [edi + 0x6b8]
jne 0x47d5c8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push edx
push eax
push 0x1c
push esi
call sym.vidcap60.exe__SfDibAlloc_28
test eax, eax
mov dword [esp + 0x14], eax
jl 0x47d361
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x47d6f8
mov eax, dword [esi]
fild dword [ebx + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [edi + 0x6bc], eax
fdivp st(1)
mov dword [edi + 0x6c0], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x6c8], eax
mov dword [edi + 0x6c4], ecx
fmul qword [esp + 0x40]
fild dword [esp + 0x10]
fild dword [esp + 0x14]
fst qword [esp + 0x40]
fdivr st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x47d662
fstp st(0)
fld qword [esp + 0x40]
fmul st(1)
call fcn.005c4484
mov ecx, eax
mov eax, dword [edi + 0x6c4]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x6bc], eax
add eax, ecx
mov dword [edi + 0x6c4], eax
jmp 0x47d686
fdiv st(1)
call fcn.005c4484
mov ecx, eax
mov eax, dword [edi + 0x6c8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x6c0], eax
add eax, ecx
mov dword [edi + 0x6c8], eax
mov eax, dword [ebp + 0x14]
fstp st(0)
movzx ecx, byte [eax + 3]
movzx edx, byte [eax]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax + 1]
fild dword [esp + 0x10]
push 3
sub esp, 0x10
fmul dword [0x5e6a24]
mov dword [esp + 0x24], edx
movzx edx, byte [eax + 2]
fstp dword [esp + 0xc]
fild dword [esp + 0x24]
mov eax, dword [esi]
mov dword [esp + 0x24], ecx
fmul dword [0x5e6a24]
fstp dword [esp + 8]
fild dword [esp + 0x24]
mov dword [esp + 0x24], edx
fmul dword [0x5e6a24]
fstp dword [esp + 4]
fild dword [esp + 0x24]
fmul dword [0x5e6a24]
fstp dword [esp]
push 0
push 0
push 0
push eax
call sym.vidcap60.exe__SfDibSet_36
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push 3
push ecx
push 0
push edx
push ebx
push 0
lea eax, [edi + 0x6bc]
push eax
mov eax, dword [esi]
push 0
push eax
call sym.vidcap60.exe__SfDibCopy_36
mov ebx, dword [esp + 0x54]
test ebx, ebx
mov dword [esp + 0x14], eax
je case.default.0x47d7a8
mov esi, dword [edi + 0x6b8]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x80], ecx
mov edx, dword [esi + 8]
push esi
mov dword [esp + 0x88], edx
call fcn.00423880
mov ecx, eax
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
mov esi, eax
lea eax, [ebx + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x9c], eax
mov ebx, dword [ebx + 0x28]
lea eax, [ebx + 1]
sar esi, 3
cmp eax, 4
mov dword [esp + 0x10], ecx
ja case.default.0x47d7a8
jmp dword [eax*4 + 0x47da64]
fld qword [0x5d6138]
sub esp, 8
fstp qword [esp]
push 3
push 4
lea edx, [esp + 0x88]
push edx
push esi
lea eax, [edi + 0x6bc]
push eax
push ecx
call sym.vidcap60.exe__SfDibChannelSet_32
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x7c]
push eax
push esi
lea eax, [edi + 0x6bc]
push eax
push ecx
call sym.vidcap60.exe__SfDibPremultiply_20
jmp case.default.0x47d7a8
xor eax, eax
cmp ebx, 3
push 4
sete al
lea edx, [esp + 0x94]
push edx
lea edx, [esp + 0x80]
push eax
push edx
push esi
lea eax, [edi + 0x6bc]
push eax
push ecx
call sym.vidcap60.exe__SfDibPrepAlphaImage_28
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47d834
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x40]
mov dword [esp + 0x24], 0
mov ecx, dword [edi + 0x6b8]
lea eax, [esp + 0xa0]
push eax
push 0
lea eax, [edi + 0x6bc]
push eax
push 0
push ecx
call sym.vidcap60.exe__SfDibStats_20
fld dword [esp + 0xc0]
fsub dword [esp + 0xb8]
fld dword [esp + 0xbc]
fsub dword [esp + 0xc0]
fmulp st(1)
fld dword [esp + 0xb4]
fsub dword [esp + 0xac]
fld dword [esp + 0xb0]
fsub dword [esp + 0xb4]
fmulp st(1)
faddp st(1)
fld dword [esp + 0xa4]
fsub dword [esp + 0xa8]
fld dword [esp + 0xa8]
fsub dword [esp + 0xa0]
fmulp st(1)
faddp st(1)
fld dword [0x5e6a20]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x47d8c8
mov dword [esp + 0x3c], 1
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x58], ebx
mov edx, dword [esp + 0x1c]
jne 0x47d8e4
cmp dword [esp + 0x5c], edx
jne 0x47d8e4
mov dword [esp + 0x3c], 1
fcom dword [esp + 0x64]
mov esi, dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x47d9ed
mov eax, dword [esp + 0x4c]
fstp dword [esp + 0x64]
cmp eax, 8
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
jge 0x47d92a
mov ecx, ebx
add ecx, 1
mov eax, edx
adc eax, 0
cmp eax, esi
jg 0x47d92a
jl 0x47d9ef
cmp ecx, dword [esp + 0x30]
jb 0x47d9ef
mov eax, dword [edi + 0x6b8]
test eax, eax
je 0x47d99c
mov eax, dword [ebp + 8]
test eax, eax
je 0x47d99c
cmp dword [eax], 0
jne 0x47d962
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push 0
push 0
push ecx
push edx
push 0x1c
push eax
call sym.vidcap60.exe__SfDibAlloc_28
test eax, eax
mov dword [esp + 0x14], eax
jl 0x47d361
mov eax, dword [ebp + 8]
mov ebx, dword [edi + 0x6b8]
mov ecx, dword [eax]
push 3
push 0
lea esi, [edi + 0x6bc]
push esi
push ebx
mov dword [esp + 0x20], ecx
call fcn.00423880
push eax
push ebx
push 0
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00423880
push eax
push esi
call sym.vidcap60.exe__SfDibCopy_36
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47d9bf
add edi, 0x6bc
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov eax, dword [esp + 0x20]
je 0x47d9d6
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x40]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47d9e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fstp st(0)
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x47d92a
cmp dword [esp + 0x4c], 8
jge 0x47da4d
mov ecx, ebx
add ecx, 1
mov eax, edx
adc eax, 0
cmp eax, esi
jg 0x47da4d
jl 0x47da1c
cmp ecx, dword [esp + 0x30]
jae 0x47da4d
mov ebx, dword [esp + 0x18]
test esi, esi
jg 0x47da3a
jl 0x47da29
cmp dword [esp + 0x30], 0x14
jae 0x47da36
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x47d401
mov ebx, dword [esp + 0x18]
add ebx, 0xa
adc edx, 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
jmp 0x47d401
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x47d401