Function at 0x4b9ea0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x168
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ba115
mov eax, dword [ebx + 0x60]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0
jle 0x4ba0ff
push ebp
push edi
mov eax, dword [0x4d9540]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb0]
push eax
push ecx
lea ecx, [esp + 0x130]
call fcn.004ba6a0
lea edx, [esp + 0x58]
lea edi, [ebx + 0x54]
push eax
push edx
mov ecx, edi
call fcn.004ba500
mov ebp, dword [eax]
lea ecx, [esp + 0x12c]
call fcn.004b95d0
lea ecx, [esp + 0xb0]
call fcn.004b95d0
test byte [ebp + 0x19], 1
jne 0x4ba0e8
test ebx, ebx
je 0x4b9f45
add ebx, 4
jmp 0x4b9f47
xor ebx, ebx
mov eax, dword [0x4d9540]
lea ecx, [esp + 0x10]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x68]
push eax
push ecx
lea ecx, [esp + 0x158]
call fcn.004ba6a0
lea edx, [esp + 0x60]
push eax
push edx
mov ecx, edi
call fcn.004ba500
mov edi, dword [eax]
lea ecx, [esp + 0x154]
call fcn.004b95d0
lea ecx, [esp + 0x68]
call fcn.004b95d0
mov ebp, dword [edi + 0x14]
mov eax, dword [ebx]
push 0
push ebp
push 0x419
push eax
call esi
mov ebx, eax
xor ecx, ecx
cmp ebx, 0xffffffff
lea edi, [esp + 0x28]
sete cl
mov dword [esp + 0x14], ecx
mov ecx, 0xa
xor eax, eax
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [edi]
push 0x120b
push ecx
mov dword [esp + 0x34], 0x80
call esi
mov eax, dword [edi]
lea edx, [esp + 0x24]
add ebp, 0xfffffc18
push edx
push ebp
push 0x120c
push eax
mov dword [esp + 0x54], ebx
call esi
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4ba00b
mov dword [esp + 0x28], 0
jmp 0x4ba093
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4ba089
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4d9540]
lea edx, [esp + 0x8c]
mov dword [esp + 0xd4], ecx
push edx
lea ecx, [esp + 0xdc]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
call fcn.004ba810
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [edx + 0x54]
call fcn.004ba500
mov eax, dword [eax]
lea ecx, [esp + 0xd8]
mov dword [esp + 0x14], eax
call fcn.004b95d0
lea ecx, [esp + 0x8c]
call fcn.004b95d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
jg 0x4ba093
mov dword [esp + 0x28], 0x4b
mov eax, dword [edi]
lea edx, [esp + 0x24]
push edx
push ebp
push 0x120c
push eax
mov dword [esp + 0x34], 1
call esi
mov edx, dword [esp + 0x1c]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
lea ecx, [esp + 0xfc]
push ecx
push ebp
push 0x120c
push eax
mov dword [esp + 0x10c], 8
mov dword [esp + 0x124], ebx
call esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b9edc
pop edi
pop ebp
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x4ba115
push 0
push 0xb355
push 0x111
push ebx
call esi
pop esi
pop ebx
add esp, 0x168
ret