Function at 0x51afa0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
push edi
mov edi, ecx
push 0
push 0
push 0x431
mov esi, dword [edi + 0x4440]
push eax
mov dword [esp + 0x34], edi
mov dword [edi + 0x28], 1
mov dword [esp + 0x30], esi
call ebx
mov ecx, dword [edi + 0x24]
lea ebp, [edi + 0x24]
push 0
push 0
push 0x1009
push ecx
call ebx
xor eax, eax
cmp esi, eax
mov dword [esp + 0x18], eax
jle 0x51b2e1
add edi, 0x78
jmp 0x51afff
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi - 0x34]
mov edx, dword [esp + 0x54]
push 0
push eax
push 0x419
push edx
mov dword [edi + 4], 1
call ebx
cmp eax, 0xffffffff
jne 0x51b024
mov dword [edi + 4], 0
mov al, byte [edi - 0x2f]
and al, 1
cmp al, 1
je 0x51b10f
mov eax, dword [edi - 0x34]
test eax, eax
je 0x51b10f
mov eax, dword [0x547570]
mov ecx, dword [edi]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x51b093
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x51b05f
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x51b066
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x51b076
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x51b08f
lea ecx, [esp + 0x14]
call fcn.004124c0
mov eax, dword [edi]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x51b0c5
mov edx, 0x554e08
test edx, edx
jne 0x51b0a7
xor eax, eax
jmp 0x51b0b2
push 0x554e08
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x554e08
push eax
lea ecx, [esp + 0x1c]
call fcn.00405870
mov eax, dword [esp + 0x14]
mov ecx, dword [edi - 0x38]
mov edx, dword [esp + 0x18]
push 0
push ecx
push 0
push 0
push eax
push edx
push 3
mov ecx, ebp
call fcn.0042f440
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x51b12a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51b12a
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x51b12a
mov eax, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push 0
push 0
push str.Separator
push eax
push 3
mov ecx, ebp
call fcn.0042f440
mov ecx, dword [ebp]
push 0
push 0
push 0x1004
push ecx
call ebx
mov edx, dword [0x547570]
mov esi, eax
dec esi
lea eax, [esp + 0x10]
push esi
push 0x548b44
push eax
mov dword [esp + 0x1c], edx
call fcn.00405cb0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push 1
push 1
push esi
mov ecx, ebp
call fcn.0042f320
mov edx, dword [edi - 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004f28e0
mov ecx, dword [esp + 0x18]
mov ebx, eax
add esp, 8
mov eax, dword [ebx]
cmp ecx, eax
je 0x51b1d3
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x51b1a3
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x51b1aa
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x51b1ba
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x51b1d3
lea ecx, [esp + 0x10]
call fcn.004124c0
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51b202
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51b202
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push 0x549230
push 0x54782c
lea ecx, [esp + 0x18]
call fcn.00413840
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push esi
mov ecx, ebp
call fcn.0042f320
mov edx, dword [edi - 0x34]
lea eax, [esp + 0x10]
push edx
push 0x548b44
push eax
call fcn.00405cb0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push 1
push 3
push esi
mov ecx, ebp
call fcn.0042f320
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp]
lea eax, [esp + 0x28]
inc edx
push eax
push esi
push 0x102b
shl edx, 0xc
push ecx
mov dword [esp + 0x48], 0xf000
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51b2b8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51b2b8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x20]
inc esi
add edi, 0x44
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x51aff9
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x28], 0
pop ebx
add esp, 0x40
ret 4
mov dword [edi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4