Function at 0x40ba31
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x54], eax
mov eax, dword [esi]
mov dword [ebp - 4], esi
cmp dword [eax + 0xc], 0
je 0x40bc67
lea ecx, [ebp - 0x30]
push ecx
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
sub eax, ecx
sub eax, dword [ebp - 0x20]
sub edx, dword [ebp - 0x2c]
and dword [ebx + 4], 0
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [ebx + 0x2c], ecx
sub eax, dword [ebp - 0x1c]
push str.Shcore.dll
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x38], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx], eax
test eax, eax
je 0x40baca
push str.GetDpiForMonitor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], eax
lea edi, [ebx + 8]
jmp 0x40bacc
mov edi, esi
cmp dword [ebx + 4], 0
je 0x40bb0b
push 2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
push ecx
xor edx, edx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
call dword [ebx + 4]
test eax, eax
js 0x40bb0b
mov eax, dword [ebp - 8]
mov esi, edi
mov dword [ebp - 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x68], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
lea esi, [ebx + 0x14]
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, dword [ebp - 4]
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
je 0x40bb8b
push edi
push edi
push 0x31
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xa8]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40bb71
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov eax, dword [esi]
push 0
push 0
push 0x419
mov dword [ebx + 0x24], edi
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x28], eax
mov eax, dword [esi]
push 5
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x40bc67
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi]
xor esi, esi
push dword [eax + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push esi
push esi
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x44]
cmp dword [ebx + 0x40], eax
jne 0x40bc25
test eax, eax
jne 0x40bbe6
push 0x10
pop esi
jmp 0x40bbe9
lea esi, [eax + eax]
xor ecx, ecx
mov eax, esi
push 0x18
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b4bd
mov edi, eax
pop ecx
test edi, edi
je 0x40bc53
imul eax, dword [ebx + 0x44], 0x18
push eax
push dword [ebx + 0x3c]
push edi
call fcn.0041bd00
push dword [ebx + 0x3c]
call fcn.0041b4c6
add esp, 0x10
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x44], esi
imul edi, dword [ebx + 0x40], 0x18
lea esi, [ebp - 0x48]
push 6
pop ecx
push 2
push dword [ebp - 8]
add edi, dword [ebx + 0x3c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x40bc67
mov esi, dword [ebp - 4]
jmp 0x40bba5
push dword [ebx + 0x3c]
call fcn.0041b4c6
xor eax, eax
pop ecx
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret