Function at 0x10052987
Capabilities:
Capture webcam image

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x100e746f
call fcn.100c908c
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
mov dword [ebp + 0x60], ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ecx + 0xe0]
push 0xb
push dword [esi]
mov dword [ebp + 0x68], ecx
mov dword [ebp - 4], ebx
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x1010d92c
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x100f45a0
mov byte [ebp - 4], 1
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.KeepHistory
mov byte [ebp - 4], 2
call fcn.10009e15
lea eax, [ebp + 0x64]
push eax
mov byte [ebp - 4], bl
call fcn.10061f03
add esp, 0x10
push 0x100f45a0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10004959
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp + 0x68]
sete cl
mov byte [ebp - 4], bl
mov dword [eax + 0x208], ecx
mov ecx, dword [ebp + 0x64]
add ecx, 0xfffffff0
call fcn.10003f60
push dword [ebp + 0x74]
mov ecx, dword [ebp + 0x68]
call fcn.1002c0ba
mov eax, dword [ebp + 0x68]
cmp byte [eax + 0xd9], bl
je 0x10052d38
lea ecx, [ebp + 0x77]
push ecx
mov ecx, dword [eax + 0x84]
push eax
mov byte [ebp + 0x77], bl
call fcn.1007943b
mov ecx, dword [ebp + 0x68]
push ebx
push str._GS_
add ecx, 0x50
mov dword [ebp + 0x64], eax
call fcn.1000506b
cmp eax, 0xffffffff
je 0x10052c59
mov eax, dword [ebp + 0x68]
add eax, 0x20c
push dword [eax]
mov dword [ebp + 0x60], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10052e3d
lea eax, [ebp + 0x40]
push eax
push dword [esi]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0xc]
push ebx
push eax
push 0x419
push dword [ebp + 0x64]
call edi
lea ecx, [ebp + 0x30]
push ecx
push eax
push 0x41d
push dword [ebp + 0x64]
mov dword [ebp + 0x68], eax
call edi
lea eax, [ebp]
push eax
mov eax, dword [ebp + 0x68]
dec eax
push eax
push 0x41d
push dword [ebp + 0x64]
call edi
mov eax, dword [ebp]
mov dword [ebp + 0x30], eax
call fcn.1004ade8
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, eax
mov eax, dword [ebp + 0x34]
sub eax, dword [ebp + 0x3c]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [ebp + 0x30]
push eax
call edi
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x34]
sub eax, dword [ebp + 0x4c]
add eax, dword [ebp + 0x3c]
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [ebp + 0x30]
push eax
call edi
add dword [ebp + 0x3c], 0x64
push 4
lea eax, [ebp + 0x30]
push eax
push ebx
mov ecx, esi
call fcn.1004c33d
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
lea eax, [ebp + 0x10]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp + 0x50]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
add dword [ebp + 0x50], 2
mov eax, dword [ebp + 0x50]
add dword [ebp + 0x54], 2
sub dword [ebp + 0x5c], 2
add eax, 0x1f
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 3
push eax
push dword [ebp + 0x64]
mov dword [ebp + 0x68], eax
push dword [ebp + 0x64]
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
push dword [ebp + 0x64]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [ebp + 0x68]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x60]
push dword [eax]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 1
push eax
mov eax, dword [ebp + 0x60]
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea eax, [ebp + 0x40]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x60]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x44]
neg eax
push eax
mov eax, dword [ebp + 0x40]
neg eax
push eax
lea eax, [ebp + 0x20]
push eax
call edi
add dword [ebp + 0x20], 0x1e
mov ecx, dword [ebp + 0x60]
inc dword [ebp + 0x2c]
add dword [ebp + 0x28], 2
push 4
lea eax, [ebp + 0x20]
push eax
push ebx
call fcn.1004c33d
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10052e3d
lea eax, [ebp + 0x40]
push eax
push dword [esi]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0xc]
push ebx
push eax
push 0x419
push dword [ebp + 0x64]
call edi
lea ecx, [ebp + 0x50]
push ecx
push eax
push 0x41d
push dword [ebp + 0x64]
call edi
call fcn.1004ade8
mov ecx, eax
mov eax, dword [ebp + 0x54]
sub eax, dword [ebp + 0x5c]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x54]
sub eax, dword [ebp + 0x4c]
add eax, dword [ebp + 0x5c]
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [ebp + 0x50]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
add dword [ebp + 0x5c], 0x64
push 4
lea eax, [ebp + 0x50]
push eax
push ebx
mov ecx, esi
call fcn.1004c33d
lea eax, [ebp + 0x10]
push eax
push dword [esi]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetWindowRgnBox]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10052e3d
push ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [ebp + 0x68]
push 1
push ebx
push dword [eax + 0x20c]
call dword [sym.imp.USER32.dll_SetWindowRgn]
jmp 0x10052e3d
push ebx
push ebx
push 0x14b
push dword [esi]
call edi
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0xbc]
push 1
push eax
push 0x30
push dword [esi]
call edi
or dword [ebp + 0x64], 0xffffffff
mov dword [ebp + 0x74], ebx
mov eax, dword [ebp + 0x68]
lea ecx, [eax + 0x1f0]
mov edx, dword [ecx + 0x10]
sub edx, dword [ecx + 0xc]
sar edx, 2
cmp dword [ebp + 0x74], edx
jae 0x10052dca
push dword [ebp + 0x74]
call fcn.1008d01e
mov eax, dword [eax]
add eax, 0x30
push dword [eax]
mov ecx, esi
call fcn.1004c2ac
cmp dword [ebp + 0x64], ebx
jge 0x10052dc5
mov ecx, dword [ebp + 0x68]
push dword [ebp + 0x74]
add ecx, 0x1f0
call fcn.1008d01e
mov eax, dword [eax]
add eax, 0x34
push eax
mov eax, dword [ebp + 0x68]
add eax, 0x90
push eax
call fcn.100050a4
pop ecx
pop ecx
test al, al
je 0x10052dc5
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x64], eax
inc dword [ebp + 0x74]
jmp 0x10052d62
cmp dword [ebp + 0x64], ebx
jge 0x10052e27
lea ecx, [eax + 0x1f0]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov dword [ebp + 0x64], ebx
sar eax, 2
test eax, eax
jbe 0x10052df2
push ebx
call fcn.1008d01e
mov eax, dword [eax]
add eax, 0x34
jmp 0x10052e07
push 0x1010d92c
lea ecx, [ebp + 0x74]
call fcn.10009e15
or dword [ebp + 0x60], 1
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x68]
add ecx, 0x90
push eax
call fcn.1000688b
test byte [ebp + 0x60], 1
je 0x10052e27
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.10003f60
push dword [ebp + 0x64]
mov ecx, esi
call fcn.1004c274
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
mov dword [ecx + 0x110], eax
push ebx
push 1
push 0xb
push dword [esi]
call edi
push ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add ebp, 0x6c
leave
ret 4