Function at 0x49df80
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebx, ecx
mov eax, dword [eax + 0xc]
cmp eax, 0x80ad
mov dword [esp + 0x14], eax
je 0x49dfa4
cmp eax, 0x80ae
jne 0x49e409
mov ecx, dword [esp + 0x40]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov dword [ecx], 1
mov edx, dword [ebx + 0x39c]
push 0
push eax
push 0x419
push edx
call esi
mov edx, dword [ebx + 0x39c]
lea ecx, [esp + 0x2c]
push ecx
push eax
push 0x41d
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x39c]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x4d9540]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, str.Zoom_:__3d___
mov edi, eax
test edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], ecx
je 0x49e073
mov eax, edx
shr eax, 0x10
jne 0x49e03a
xor ecx, ecx
mov cx, dx
push ecx
lea ecx, [esp + 0x48]
call fcn.0040ff70
jmp 0x49e073
push str.Zoom_:__3d___
call ebp
mov esi, eax
test esi, esi
je 0x49e073
push esi
lea ecx, [esp + 0x48]
call fcn.004012f0
test eax, eax
je 0x49e073
mov edi, dword [esp + 0x44]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, str.Zoom_:__3d___
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, 0x80ae
jne 0x49e199
lea ecx, [esp + 0x20]
push 0xfa
push ecx
mov ecx, ebx
call fcn.0049e420
mov edx, dword [0x4d9540]
mov esi, eax
mov eax, str.:__3d___
mov dword [esp + 0x14], edx
test eax, eax
je 0x49e0af
push str.:__3d___
call ebp
mov ecx, dword [esi]
push str.:__3d___
push eax
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.004017b0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x49e132
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x49e0fc
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x49e103
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x49e113
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401630
jmp 0x49e12e
lea ecx, [esp + 0x44]
call fcn.0040e950
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49e15d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e15d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49e250
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e250
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x49e250
cmp eax, 0x80ad
jne 0x49e250
lea eax, [esp + 0x20]
push 0xf7
push eax
mov ecx, ebx
call fcn.0049e420
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0x80a1
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49e1f7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e1f7
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x20]
push pe_nt_image_headers32
push eax
mov ecx, ebx
call fcn.0049e420
mov eax, dword [eax]
push eax
push 0x80a2
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49e244
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e244
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
push 0
push 0
push 0x800
push edi
call esi
mov eax, dword [esp + 0x1c]
mov ebp, 0x44c
cmp eax, 0x80ae
jne 0x49e265
mov ebp, 0x640
mov edi, 0x19
cmp ebp, edi
jle 0x49e2e9
mov esi, 0x2341
mov ecx, dword [esp + 0x44]
mov eax, dword [0x4d9540]
push edi
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], eax
call fcn.00401a70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp esi, 0x251c
jl 0x49e2b0
add edi, 0x4b
add esi, 0x4b
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49e2df
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e2df
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
add edi, 0x19
add esi, 0x19
cmp edi, ebp
jl 0x49e273
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
push 0
push ecx
push 0
push edx
push eax
push 0x102
push ebp
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov esi, eax
test esi, esi
je 0x49e3a5
mov eax, dword [esp + 0x1c]
cmp eax, 0x80ae
jne 0x49e343
mov ecx, dword [ebx + 0x108]
lea eax, [esi - 0x2328]
push eax
push 1
push 0x405
push ecx
mov dword [ebx + 0xf8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x49e3a5
cmp eax, 0x80ad
jne 0x49e3a5
cmp esi, 0x2328
jl 0x49e391
cmp esi, 0x4e20
jg 0x49e391
mov edx, dword [ebx + 0x10c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi - 0x2328]
push eax
push 1
push 0x405
push edx
mov dword [ebx + 0xfc], eax
call edi
mov eax, dword [ebx + 4]
push 0
push 0x80a0
push 0x111
push eax
call edi
jmp 0x49e397
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 4]
push 0
push esi
push 0x111
push ecx
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [0x4d9544]
pop edi
pop esi
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49e3d6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49e3d6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
test ebp, ebp
je 0x49e3f5
push ebp
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [esp + 0x40]
pop ebp
xor eax, eax
pop ebx
mov dword [ecx], 0
add esp, 0x2c
ret 0xc
mov edx, dword [esp + 0x40]
pop ebp
xor eax, eax
pop ebx
mov dword [edx], 0
add esp, 0x2c
ret 0xc
mov eax, dword [esp + 0x40]
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
add esp, 0x2c
ret 0xc