Function at 0x4700c0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x55154c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], edi
test esi, esi
jne 0x47010c
push 0x5232b0
push str.....UTILptSliderptSliderCustomDraw.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x24]
push 1
push dword [ebx + 0x10]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x38], eax
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [ebp - 0x64], xmm0
call dword [sym.imp.GDI32.dll_SetBkMode]
movups xmm0, xmmword [ebp - 0x14]
psrldq xmm0, 0xc
movd eax, xmm0
cmp eax, 0x10001
ja 0x470344
je 0x470197
cmp eax, 1
je 0x47017e
cmp eax, 2
jbe 0x470354
cmp eax, 4
jbe 0x47034e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
mov dword [edi], 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
sub eax, 2
je 0x4702f6
sub eax, 1
jne 0x470354
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebx]
call edi
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
push eax
call esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx]
call edi
push eax
call esi
mov eax, dword [ebp - 0x44]
push dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push dword [edi + 0x440]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x6c]
push eax
push 0x18
push dword [edi + 0x440]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x24]
push eax
push 0
push 0x419
push dword [ebx]
call esi
lea eax, [ebp - 0x34]
push eax
push 0
push 0x41a
push dword [ebx]
call esi
mov eax, dword [edi + 0x41c]
mov ecx, dword [ebp - 0x14]
sub eax, ecx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x420]
sub eax, edx
cmp dword [edi + 0x408], 0
mov dword [ebp - 0x3c], eax
je 0x4702af
mov eax, dword [edi + 0x408]
push 0xcc0020
push edx
push ecx
push dword [eax]
mov eax, dword [ebp - 8]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x3c]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x38]
sub esi, eax
push esi
push dword [edi + 0x424]
push eax
push dword [ebp - 0x50]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x54]
mov dword [eax], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x434], 0
je 0x47034e
cmp dword [esi + 0x438], 0
je 0x47034e
cmp dword [esi + 0x43c], 0
je 0x47034e
push dword [ebx + 0x10]
movups xmm0, xmmword [ebx + 0x14]
sub esp, 0x10
mov eax, esp
push 0
push esi
movups xmmword [eax], xmm0
call fcn.00470370
add esp, 0x1c
mov dword [edi], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
add eax, 0xfffefffd
cmp eax, 1
ja 0x470354
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e19a5
mov esp, ebp
pop ebp
ret