Function at 0xb8be77
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00b8a774
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr ecx, 0x10
movsx ecx, cx
movsx edx, ax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call fcn.00b8d005
xor esi, esi
test al, al
je 0xb8becf
push esi
push dword [ebx + 0x144]
push 0x419
push edi
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SendMessageW]
mov edx, eax
mov dword [ebp - 4], edx
cmp edx, 0xffffffff
jne 0xb8bf1c
lea eax, [ebp - 0x18]
push eax
push esi
push 0x445
push edi
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SendMessageW]
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 4], edx
call fcn.00b8b196
test al, al
je 0xb8bf1c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x20
push eax
push edx
push 0x43f
push edi
mov dword [ebp - 0x3c], 0x80000020
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SendMessageW]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [ebx + 0x144], eax
mov eax, dword [ebx + 0x18c]
cmp eax, 3
je 0xb8bfb2
mov ecx, dword [ebp + 0xc]
sub ecx, 0x200
je 0xb8c094
sub ecx, 1
je 0xb8c00c
sub ecx, 1
je 0xb8bf95
dec ecx
sub ecx, 1
je 0xb8bf84
sub ecx, 0x9f
jne 0xb8bfb2
sub eax, 1
je 0xb8c0c9
sub eax, 1
jne 0xb8bfb2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
or dword [ebp - 0x10], 0xffffffff
push eax
push esi
push 0x450
push edi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_SendMessageW]
jmp 0xb8c0d6
cmp eax, 2
jne 0xb8bfa6
mov ecx, ebx
call fcn.00b886eb
jmp 0xb8c0d6
cmp eax, 2
jne 0xb8bfa6
mov ecx, ebx
call fcn.00b8b8d6
jmp 0xb8c0d6
cmp eax, 1
jne 0xb8bfb2
mov ecx, ebx
call fcn.00b8b449
mov ecx, dword [ebp - 8]
push 1
push dword [ebp - 4]
call fcn.00a48ab1
mov dword [ebp - 0xc], eax
test eax, eax
je 0xb8c0f0
push 1
lea eax, [ebp - 0x18]
push eax
push esi
push edi
call dword [sym.imp.ext_ms_win_rtcore_ntuser_window_ext_l1_1_0.dll_MapWindowPoints]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_rtcore_ntuser_wmpointer_l1_1_0.dll_GetCurrentInputMessageSource]
test eax, eax
je 0xb8bfe9
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00b8a8e1
xor eax, eax
inc eax
jmp 0xb8c0f2
test edx, edx
js 0xb8bfb2
mov ecx, dword [ebp - 8]
xor esi, esi
mov eax, ecx
mov dword [ebx + 0x178], ecx
mov dword [ebx + 0x180], eax
inc esi
mov eax, edx
mov dword [ebx + 0x18c], esi
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x18]
push esi
mov dword [ebx + 0x190], eax
mov eax, dword [ebp - 0x14]
push edx
mov dword [ebx + 0x17c], edx
mov dword [ebx + 0x194], eax
call fcn.00a48ab1
mov edx, dword [ebp - 0x14]
lea edi, [ebx + 0x198]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x188], eax
lea eax, [edx + 1]
push eax
lea eax, [ecx + 1]
push eax
push edx
push ecx
push edi
call dword [sym.imp.api_ms_win_ntuser_rectangle_l1_1_0.dll_SetRect]
push 0x45
call dword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetSystemMetrics]
push 0x44
mov esi, eax
call dword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetSystemMetrics]
push esi
push eax
push edi
call dword [sym.imp.api_ms_win_ntuser_rectangle_l1_1_0.dll_InflateRect]
mov edi, dword [ebp + 8]
jmp 0xb8c0d6
sub eax, 1
je 0xb8c0b2
sub eax, 1
jne 0xb8bfb2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.00b8b569
jmp 0xb8c0d6
push dword [ebp - 0x14]
lea eax, [ebx + 0x198]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.api_ms_win_ntuser_rectangle_l1_1_0.dll_PtInRect]
test eax, eax
jne 0xb8c0d6
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x18]
call fcn.00b8badc
cmp dword [ebx + 0x18c], 1
jne 0xb8c0f0
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00b89b18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10