Function at 0x49c678
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 0x49c8f0
call fcn.0049070c
call fcn.00490820
test al, al
je 0x49c8e3
mov eax, dword [esi]
sub eax, 0xbc4e
jne 0x49c8d4
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0xfffffff4
jne 0x49c8f0
mov edi, eax
mov eax, dword [edi + 0xc]
dec eax
je 0x49c6dc
sub eax, 0x10000
je 0x49c6e8
jmp 0x49c8cd
mov dword [esi + 0xc], 0x20
jmp 0x49c8f0
mov eax, dword [ebp - 4]
mov edx, dword [0x470ae0]
call fcn.00403138
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x24]
dec eax
je 0x49c70d
sub eax, 2
je 0x49c79a
jmp 0x49c8c6
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.00403184
test al, al
je 0x49c776
push 0
xor ecx, ecx
mov edx, 0x129
mov eax, dword [ebp - 0x14]
call fcn.00442300
test al, 1
jne 0x49c776
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.00447120
push eax
call fcn.0049070c
mov ecx, dword [edi + 0x10]
pop edx
call fcn.0049100c
jmp 0x49c8c6
lea eax, [ebp - 0x24]
push eax
push 0
push 0x419
mov eax, dword [ebp - 0x14]
call fcn.00447120
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 0x49c816
mov eax, dword [ebp - 0x14]
mov bx, 0xffbb
call fcn.00403184
test al, al
je 0x49c7ec
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 0x49c866
mov eax, dword [ebp - 0x14]
mov bx, 0xffbb
call fcn.00403184
test al, al
je 0x49c83e
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.0049070c
lea ecx, [ebp - 0x30]
mov dl, 0x22
call fcn.00490e18
lea eax, [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00447120
push eax
call fcn.0049070c
mov ecx, dword [edi + 0x10]
pop edx
call fcn.0049100c
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 0x49c8f0
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49c8f0
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call fcn.0049ada8
jmp 0x49c8f0
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call fcn.0049ada8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret