Function at 0x42f6b0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
push esi
push edi
mov edi, dword [esp + 0x70]
lea esi, [ebx + 4]
mov eax, dword [edi]
cmp eax, ecx
je 0x42f6e0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov eax, 1
mov dword [ecx], 0
pop ebx
add esp, 0x5c
ret 0xc
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetFocus]
call ebp
cmp eax, dword [esi]
je 0x42f70e
test byte [ebx + 0x54], 4
je 0x42f705
mov eax, dword [ebx + 0xa8]
test eax, eax
jne 0x42f705
call ebp
mov dword [ebx + 0xa8], eax
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xc]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
mov eax, dword [esi]
push 0x419
push eax
call ebp
mov dl, byte [ebx + 0x80]
xor ecx, ecx
and dl, 0xcf
mov edi, eax
mov eax, dword [esi]
mov byte [ebx + 0x80], dl
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
push edi
mov dword [esp + 0x28], ecx
push 0x41d
push eax
mov dword [ebx + 0x124], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], ecx
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
push 1
push eax
push 0
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi]
lea edx, [esp + 0x18]
push 2
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor ecx, ecx
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_GetSubMenu]
xor ecx, ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi]
mov dword [esp + 0x44], ecx
push edx
push edi
mov dword [esp + 0x50], ecx
push 0x417
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x5c], ecx
call ebp
mov eax, dword [esp + 0x40]
push 1
push eax
mov dword [esp + 0x7c], eax
mov dword [ebx + 0x84], edi
push 0x403
mov ecx, dword [esi]
push ecx
call ebp
mov edi, dword [esp + 0x74]
mov edx, dword [esi]
push 0
push edi
push 0x448
push edx
call ebp
mov al, byte [0x4e3a0c]
mov edx, dword [esp + 0x14]
neg al
sbb eax, eax
lea ecx, [esp + 0x28]
and eax, 0x1000
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x80]
or al, 0x40
push ecx
push eax
push edx
mov ecx, ebx
call fcn.004311d0
mov eax, dword [esi]
push 0
push edi
push 0x403
push eax
call ebp
mov edi, dword [esi]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
je 0x42f888
push 0
push 0xffffffffffffffff
push 0x448
push edi
call ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push eax
push 0x201
push 0x201
lea edx, [esp + 0x5c]
push ecx
push edx
mov dword [ebx + 0x84], 0xffffffff
call edi
test eax, eax
je 0x42f8f5
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x42f8f5
mov eax, dword [esi]
push 1
push 0x201
push 0x201
lea ecx, [esp + 0x5c]
push eax
push ecx
call edi
mov eax, dword [ebx + 0x88]
cmp eax, 0xffffffff
je 0x42f950
and eax, 0xffff
push 0
push eax
call fcn.00431430
push eax
mov ecx, esi
call fcn.00428990
test dword [ebx + 0x88], 0xffff0000
jne 0x42f93a
test byte [ebx + 0x80], 8
jne 0x42f93a
push 0
push 0x28
push 0x100
mov ecx, esi
call fcn.00428990
pop ebp
pop edi
mov dword [ebx + 0x88], 0xffffffff
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret 0xc
mov cl, byte [ebx + 0x80]
and cl, 0xef
mov al, cl
mov byte [ebx + 0x80], cl
test al, 0x20
jne 0x42f98e
mov al, byte [ebx + 0x81]
test al, 2
je 0x42f97b
test al, 4
je 0x42f97b
and al, 0xf7
mov byte [ebx + 0x81], al
mov ecx, ebx
call fcn.0042e2c0
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret 0xc
mov edx, dword [esp + 0x74]
mov eax, dword [esi]
push 0
push edx
push 0x448
push eax
call ebp
mov ecx, dword [esi]
push 0
push 1
push 0x449
push ecx
call ebp
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret 0xc