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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x28]
push edi
push esi
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x40]
push eax
call sym.vidcap60.exe__SfDibPrepareSet_32
test eax, eax
jl 0x4e3251
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
call sym.vidcap60.exe__SfDibPrepareSet_32
test eax, eax
jl 0x4e3251
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x24]
jg 0x4e324c
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jg 0x4e324c
fild dword [esp + 0x24]
fidiv dword [esp + 0x10]
fmul qword [0x5eb1e0]
call fcn.005c4484
fild dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x24], edi
fidiv dword [esp + 0x1c]
fmul qword [0x5eb1e0]
call fcn.005c4484
test esi, esi
mov dword [esp + 0x5c], eax
jle 0x4e3241
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
sar ebx, 0xe
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
jmp 0x4e2e70
mov edi, dword [esp + 0x24]
nop
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
mov eax, dword [ebp + 0x28]
sar ecx, 0xe
cmp eax, 4
mov eax, dword [esp + 0x10]
jne 0x4e3013
test eax, eax
jle 0x4e3217
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x10]
mov esi, eax
sar esi, 0xe
mov eax, esi
imul eax, ebx
imul ecx, dword [ebp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x20], ecx
fild dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
fdivr qword [0x5d6138]
jmp 0x4e2ee3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
xor edi, edi
lea eax, [ecx + eax*4]
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
jle 0x4e2fb3
add eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
test esi, esi
jle 0x4e2f97
mov ecx, eax
lea esp, [esp]
movzx eax, byte [ecx - 2]
mov ebx, dword [esp + 0x60]
cdq
add edi, eax
adc dword [esp + 0x7c], edx
movzx eax, byte [ecx - 1]
cdq
add ebx, eax
adc dword [esp + 0x64], edx
movzx eax, byte [ecx]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x68]
cdq
add ebx, eax
adc dword [esp + 0x6c], edx
movzx eax, byte [ecx + 1]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x70]
cdq
add ebx, eax
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x74]
adc ebx, edx
add ecx, 4
dec esi
mov dword [esp + 0x74], ebx
jne 0x4e2f40
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, edx
dec ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jne 0x4e2f33
mov dword [esp + 0x78], edi
fild qword [esp + 0x78]
fmul st(1)
call fcn.005c4484
fild qword [esp + 0x60]
mov byte [ebx], al
fmul st(1)
call fcn.005c4484
fild qword [esp + 0x68]
mov byte [ebx + 1], al
fmul st(1)
call fcn.005c4484
fild qword [esp + 0x70]
mov byte [ebx + 2], al
fmul st(1)
call fcn.005c4484
mov ecx, dword [esp + 0x1c]
mov byte [ebx + 3], al
mov eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x40]
add ebx, 4
dec eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
jne 0x4e2edf
jmp 0x4e3211
test eax, eax
jle 0x4e3217
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x10]
sar edi, 0xe
mov edx, edi
imul edx, ebx
mov ebx, dword [esp + 0x18]
mov esi, ecx
imul esi, dword [ebp + 0x20]
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
fild dword [esp + 0x50]
mov dword [esp + 0x3c], eax
fdivr qword [0x5d6138]
lea esp, [esp]
mov eax, dword [esp + 0x1c]
fld qword [0x5d8c90]
fld qword [0x5d8c90]
mov ecx, dword [esp + 0x44]
cdq
fstp qword [esp + 0x28]
fld qword [0x5d8c90]
and edx, 0x3fff
add eax, edx
fstp qword [esp + 0x30]
fld qword [0x5d8c90]
sar eax, 0xe
shl eax, 4
fstp qword [esp + 0x50]
add eax, esi
add eax, ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4e31d2
mov dword [esp + 0x40], ecx
nop
xor esi, esi
cmp edi, 4
jl 0x4e317e
lea edx, [edi - 4]
shr edx, 2
inc edx
lea ecx, [eax + 0x18]
lea esi, [edx*4]
lea esp, [esp]
fadd dword [ecx - 0x18]
add ecx, 0x40
dec edx
fld dword [ecx - 0x54]
fadd qword [esp + 0x28]
fld dword [ecx - 0x50]
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fld dword [ecx - 0x4c]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fld dword [ecx - 0x48]
fadd st(2)
fstp qword [esp + 0x80]
fld dword [ecx - 0x44]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [ecx - 0x40]
fadd qword [esp + 0x30]
fld dword [ecx - 0x3c]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fld dword [ecx - 0x38]
fadd qword [esp + 0x80]
fstp qword [esp + 0x80]
fld dword [ecx - 0x34]
fadd st(2)
fstp qword [esp + 0x28]
fld dword [ecx - 0x30]
fadd st(1)
fstp qword [esp + 0x30]
fstp st(0)
fstp st(0)
fld dword [ecx - 0x2c]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fld dword [ecx - 0x28]
fadd qword [esp + 0x80]
fld dword [ecx - 0x24]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld dword [ecx - 0x20]
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fld dword [ecx - 0x1c]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
jne 0x4e30d0
cmp esi, edi
jge 0x4e31ba
mov ecx, esi
shl ecx, 4
mov edx, edi
lea ecx, [ecx + eax + 8]
sub edx, esi
nop
fadd dword [ecx - 8]
add ecx, 0x10
dec edx
fld dword [ecx - 0x14]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld dword [ecx - 0x10]
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fld dword [ecx - 0xc]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
jne 0x4e3190
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x40]
add eax, edx
dec ecx
mov dword [esp + 0x40], ecx
jne 0x4e30b0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
fmul st(1)
mov edx, dword [esp + 0x24]
fstp dword [ebx]
fld qword [esp + 0x28]
mov eax, dword [esp + 0x3c]
fmul st(1)
add ecx, edx
fstp dword [ebx + 4]
add ebx, 0x10
fld qword [esp + 0x30]
dec eax
fmul st(1)
fstp dword [ebx - 8]
fld qword [esp + 0x50]
mov dword [esp + 0x1c], ecx
fmul st(1)
fstp dword [ebx - 4]
mov dword [esp + 0x3c], eax
jne 0x4e3060
mov ebx, dword [esp + 0x14]
fstp st(0)
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
add esi, eax
mov eax, dword [esp + 0x48]
add eax, edx
dec ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
jne 0x4e2e6b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24