Function at 0x51a2e0
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 0x51a621
add edi, 0x78
jmp 0x51a33f
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 0x51a364
mov dword [edi + 4], 0
mov al, byte [edi - 0x2f]
and al, 1
cmp al, 1
je 0x51a44f
mov eax, dword [edi - 0x34]
test eax, eax
je 0x51a44f
mov eax, dword [0x546560]
mov ecx, dword [edi]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x51a3d3
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x51a39f
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x51a3a6
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x51a3b6
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x51a3cf
lea ecx, [esp + 0x14]
call fcn.00412670
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 0x51a405
mov edx, 0x553d98
test edx, edx
jne 0x51a3e7
xor eax, eax
jmp 0x51a3f2
push 0x553d98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x553d98
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.0042f390
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x51a46a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a46a
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x51a46a
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.0042f390
mov ecx, dword [ebp]
push 0
push 0
push 0x1004
push ecx
call ebx
mov edx, dword [0x546560]
mov esi, eax
dec esi
lea eax, [esp + 0x10]
push esi
push 0x547b34
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.0042f270
mov edx, dword [edi - 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004f1d20
mov ecx, dword [esp + 0x18]
mov ebx, eax
add esp, 8
mov eax, dword [ebx]
cmp ecx, eax
je 0x51a513
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x51a4e3
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x51a4ea
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x51a4fa
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x51a513
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51a542
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a542
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
push 0x548210
push 0x54681c
lea ecx, [esp + 0x18]
call fcn.004139f0
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.0042f270
mov edx, dword [edi - 0x34]
lea eax, [esp + 0x10]
push edx
push 0x547b34
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.0042f270
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51a5f8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a5f8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
inc esi
add edi, 0x44
cmp esi, eax
mov dword [esp + 0x18], esi
jl 0x51a339
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