Function at 0x1018b00
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x64]
add ecx, 4
call fcn.0100d6b0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x1018cf3
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x24]
call fcn.010186f0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], 0
jmp 0x1018b7d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jae 0x1018c18
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x24]
call fcn.01018790
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1018c13
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x419
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1018c13
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 8]
jge 0x1018bfc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
jmp 0x1018c02
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x1018c18
jmp 0x1018b74
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
cmp dword [0x103b010], 0x103b010
je 0x1018ca1
mov ecx, dword [0x103b010]
mov edx, dword [ecx + 0x1c]
and edx, 0x20000000
je 0x1018ca1
mov eax, dword [0x103b010]
movzx ecx, byte [eax + 0x19]
cmp ecx, 4
jl 0x1018ca1
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
push ecx
push 0x10020f8
push 0xe
mov edx, dword [0x103b010]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [edx + 0x10]
push ecx
call fcn.01018d00
mov dword [ebp - 0x6c], 1
jmp 0x1018ca8
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 8]
jl 0x1018b65
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esp, ebp
pop ebp
ret 0xc