Function at 0x523350
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 0x5235c5
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 0x5235af
push ebp
push edi
mov eax, dword [0x546560]
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.005239e0
lea edx, [esp + 0x58]
lea edi, [ebx + 0x54]
push eax
push edx
mov ecx, edi
call fcn.00523840
mov ebp, dword [eax]
lea ecx, [esp + 0x12c]
call fcn.00522a80
lea ecx, [esp + 0xb0]
call fcn.00522a80
test byte [ebp + 0x19], 1
jne 0x523598
test ebx, ebx
je 0x5233f5
add ebx, 4
jmp 0x5233f7
xor ebx, ebx
mov eax, dword [0x546560]
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.005239e0
lea edx, [esp + 0x60]
push eax
push edx
mov ecx, edi
call fcn.00523840
mov edi, dword [eax]
lea ecx, [esp + 0x154]
call fcn.00522a80
lea ecx, [esp + 0x68]
call fcn.00522a80
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 0x5234bb
mov dword [esp + 0x28], 0
jmp 0x523543
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x523539
mov ecx, dword [esp + 0x10]
mov eax, dword [0x546560]
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.00523b50
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [edx + 0x54]
call fcn.00523840
mov eax, dword [eax]
lea ecx, [esp + 0xd8]
mov dword [esp + 0x14], eax
call fcn.00522a80
lea ecx, [esp + 0x8c]
call fcn.00522a80
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
jg 0x523543
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 0x52338c
pop edi
pop ebp
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x5235c5
push 0
push 0xb355
push 0x111
push ebx
call esi
pop esi
pop ebx
add esp, 0x168
ret