Function at 0x66cab6
Capabilities:
Capture webcam image

Disassembly:
mov eax, 0x6d0b37
call fcn.006899cc
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], edi
sub eax, 1
je 0x66cd26
sub eax, 1
je 0x66cd22
sub eax, 0xffff
je 0x66cc78
sub eax, 1
jne 0x66cd22
cmp dword [ebx + 0x24], 3
jne 0x66cd22
lea eax, [ebp - 0x30]
push eax
push 0
push 0x41a
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
push dword [edi + 0x58]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [ebp - 0x24]
mov eax, esi
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sub eax, 4
cdq
sub eax, edx
sar eax, 1
add ecx, eax
sub esi, eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x2c], ecx
push eax
push dword [edi + 4]
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_GetClientRect]
and dword [ebp - 0x30], 0
lea esi, [ebp - 0x30]
mov eax, dword [ebp - 0x58]
lea edi, [ebp - 0x50]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
push eax
push 0
push 0x419
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push dword [edi]
call ebx
mov esi, dword [ebp - 0x10]
xor ebx, ebx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x38]
cmp dword [eax + 4], ebx
je 0x66cc2b
push 0x6ac
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi], eax
jne 0x66cc2b
mov ecx, dword [esi + 0x38]
push dword [edi + 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp + 8]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x14], eax
call fcn.005c8f56
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x66cc1d
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x38]
push 0x66add1
mov eax, dword [eax + 4]
push dword [eax + 0x64]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.005c0f16
mov ecx, dword [ebp - 0x24]
mov esi, eax
sub ecx, dword [ebp - 0x2c]
push esi
push ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp + 8]
push dword [ebp - 0x30]
call fcn.005c948f
push esi
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040f570
jmp 0x66cc4f
push 0x717171
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x30]
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call ebx
call fcn.005dfeae
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x50]
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push esi
call ebx
mov edi, dword [ebp - 0x10]
push 4
jmp 0x66cd28
cmp dword [ebx + 0x24], 2
jne 0x66cd18
mov edi, 0x821d64
lea esi, [ebx + 0x14]
mov ecx, 0x7f8620
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x14]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push 0x61
call fcn.00619b3c
mov esi, eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x34]
add eax, 0x10
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x38]
add eax, 0x10
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push 3
push edi
push edi
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
inc eax
push eax
push esi
push dword [ebp - 0x3c]
lea eax, [ecx - 1]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x66cc6e
cmp dword [ebx + 0x24], 3
jne 0x66cd22
push 0x14
jmp 0x66cd28
xor eax, eax
jmp 0x66cd29
push 0x30
pop eax
or dword [edi + 0x10], 0x40
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x81bb08], eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4