Function at 0x647753
Capabilities:
Capture webcam image

Disassembly:
mov eax, 0x6a86e9
call fcn.00664608
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 0x6479c3
sub eax, 1
je 0x6479bf
sub eax, 0xffff
je 0x647915
sub eax, 1
jne 0x6479bf
cmp dword [ebx + 0x24], 3
jne 0x6479bf
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 0x6478c8
push 0x6ac
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi], eax
jne 0x6478c8
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.005a75f7
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x6478ba
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x38]
push 0x645a6e
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.0059f67d
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.005a7b30
push esi
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00427b28
jmp 0x6478ec
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.005c1019
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 0x6479c5
cmp dword [ebx + 0x24], 2
jne 0x6479b5
mov edi, 0x7f2004
lea esi, [ebx + 0x14]
mov ecx, 0x7c8ba8
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.005f68c6
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 0x64790b
cmp dword [ebx + 0x24], 3
jne 0x6479bf
push 0x14
jmp 0x6479c5
xor eax, eax
jmp 0x6479c6
push 0x30
pop eax
or dword [edi + 0x10], 0x40
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x7ebddc], eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4