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

Disassembly:
sub esp, 0x3c
test eax, eax
jne 0x4e2b62
mov eax, 0x80004003
add esp, 0x3c
ret 0x1c
mov edx, dword [eax]
push ebx
mov ebx, dword [eax + 8]
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, dword [eax + 0xc]
push ebp
sub ebx, edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x60]
push eax
sub edi, ecx
mov ecx, dword [esp + 0x60]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], edi
call sym.vidcap60.exe__SfDibPrepareSet_32
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
push ebp
push eax
call sym.vidcap60.exe__GetByteOffsetFromChannelEnum_8
fild dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
fidiv dword [esp + 0xc]
fmul qword [0x5eb1e0]
call fcn.005c4484
fild dword [esp + 0x54]
mov dword [esp + 0x5c], eax
fidiv dword [esp + 0x28]
fmul qword [0x5eb1e0]
call fcn.005c4484
test edi, edi
mov ecx, eax
mov dword [esp + 0x24], ecx
jle 0x4e2d7b
cdq
and edx, 0x3fff
add eax, edx
push esi
mov esi, eax
sar esi, 0xe
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x2c], edi
cmp ebp, 4
jne 0x4e2d53
test ebx, ebx
mov dword [esp + 0x24], 0
jle 0x4e2d53
mov eax, dword [esp + 0x60]
fild dword [esp + 0x60]
cdq
and edx, 0x3fff
add eax, edx
mov edi, eax
sar edi, 0xe
mov dword [esp + 0x64], edi
fidiv dword [esp + 0x64]
call fcn.005c4484
fild dword [esp + 0x28]
mov dword [esp + 0x38], eax
fidiv dword [esp + 0x20]
call fcn.005c4484
mov ecx, edi
imul ecx, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x58]
mov dword [esp + 0x58], 0
fdivr qword [0x5d6138]
mov eax, dword [esp + 0x54]
xor ebx, ebx
xor ebp, ebp
test esi, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], eax
jle 0x4e2d12
mov dword [esp + 0x1c], esi
nop
test edi, edi
mov esi, dword [esp + 0x58]
jle 0x4e2ced
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
sar ecx, 0xe
imul ecx, dword [esp + 0x5c]
jmp 0x4e2cc0
mov eax, esi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
lea edx, [ecx + eax*4]
add edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
movzx eax, byte [edx + eax]
cdq
add ebx, eax
adc ebp, edx
add esi, dword [esp + 0x38]
dec edi
jne 0x4e2cc0
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
add eax, edx
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x4e2ca0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
fild qword [esp + 0x44]
fmul st(1)
call fcn.005c4484
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
add edx, eax
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x58], edx
jl 0x4e2c83
mov ebp, dword [esp + 0x68]
fstp st(0)
mov ecx, dword [esp + 0x28]
mov ebx, eax
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add edi, edx
mov edx, dword [esp + 0x54]
add edx, ecx
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], eax
jne 0x4e2c17
pop esi
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret 0x1c