Function at 0x4c9ed8
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
test al, al
jne 0x4ca150
call fcn.004bdf6c
call fcn.004be080
test al, al
je 0x4ca143
mov eax, dword [esi]
sub eax, 0xbc4e
jne 0x4ca134
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xfffffff4
jne 0x4ca150
mov edi, eax
mov eax, dword [edi + 0xc]
dec eax
je 0x4c9f3c
sub eax, 0x10000
je 0x4c9f48
jmp 0x4ca12d
mov dword [esi + 0xc], 0x20
jmp 0x4ca150
mov eax, dword [ebp - 4]
mov edx, dword [0x49e2f0]
call fcn.00403148
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x24]
dec eax
je 0x4c9f6d
sub eax, 2
je 0x4c9ffa
jmp 0x4ca126
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
mov bx, 0xffbb
call fcn.00403194
test al, al
je 0x4c9fd6
push 0
xor ecx, ecx
mov edx, 0x129
mov eax, dword [ebp - 0x14]
call fcn.00455db4
test al, 1
jne 0x4c9fd6
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x200e
call sub.user32.dll_SystemParametersInfoA
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2010
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0x10]
neg eax
push eax
mov eax, dword [ebp - 0xc]
neg eax
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_InflateRect
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0045abd4
push eax
call fcn.004bdf6c
mov ecx, dword [edi + 0x10]
pop edx
call fcn.004be86c
jmp 0x4ca126
lea eax, [ebp - 0x24]
push eax
push 0
push 0x419
mov eax, dword [ebp - 0x14]
call fcn.0045abd4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ec], 0
jne 0x4ca076
mov eax, dword [ebp - 0x14]
mov bx, 0xffbb
call fcn.00403194
test al, al
je 0x4ca04c
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x200e
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
jmp 0x4ca0c6
mov eax, dword [ebp - 0x14]
mov bx, 0xffbb
call fcn.00403194
test al, al
je 0x4ca09e
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2010
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_CreateRectRgn
mov ebx, eax
push ebx
mov eax, dword [edi + 0x10]
push eax
call sub.gdi32.dll_SelectClipRgn
call fcn.004bdf6c
lea ecx, [ebp - 0x30]
mov dl, 0x22
call fcn.004be678
lea eax, [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0045abd4
push eax
call fcn.004bdf6c
mov ecx, dword [edi + 0x10]
pop edx
call fcn.004be86c
push ebx
call sub.gdi32.dll_DeleteObject
push 0
mov eax, dword [edi + 0x10]
push eax
call sub.gdi32.dll_SelectClipRgn
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ca150
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ca150
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call fcn.004c8608
jmp 0x4ca150
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call fcn.004c8608
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret