Function at 0x4746b0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and ebp, 0xffff
mov eax, dword [esi + 0x5d8]
push 0
push ebp
push 0x419
push eax
call edi
mov edx, dword [esi + 0x5d8]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x41d
push edx
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5d8]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 0x5d8]
push 1
push ebp
push 0x403
push ecx
call edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
lea edx, [esp + 0x14]
push 0x3f7
push edx
mov edi, eax
call fcn.0048eb30
mov ebx, eax
mov eax, dword [0x4d9540]
mov ecx, 0x4da888
add esp, 8
test ecx, ecx
mov dword [esp + 0x38], eax
jne 0x474753
xor eax, eax
jmp 0x47475e
push 0x4da888
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
push 0x4da888
push eax
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x44]
push edx
call fcn.004017b0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call fcn.00401200
lea ecx, [esp + 0x38]
call fcn.004014c0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
push ecx
push 0
push 3
push edi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4747cc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4747cc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4747fb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4747fb
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
push 0
push 0
push 0x800
push edi
call ebx
lea eax, [esp + 0x38]
push 0x7d6
push eax
call fcn.0048eb30
mov ecx, dword [esi + 0x2c4]
mov eax, dword [eax]
add esp, 8
dec ecx
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xfffffff8
push 1
add ecx, 8
push ecx
push edi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474862
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474862
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x38]
push 0x7d7
push ecx
call fcn.0048eb30
mov eax, dword [eax]
add esp, 8
xor edx, edx
push eax
mov eax, dword [esi + 0x2c4]
cmp eax, 2
push 2
setne dl
dec edx
and edx, 8
push edx
push edi
call ebx
mov eax, dword [esp + 0x38]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4748be
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4748be
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x38]
push 0x7db
push eax
call fcn.0048eb30
mov edx, dword [esi + 0x2c4]
mov eax, dword [eax]
add esp, 8
xor ecx, ecx
cmp edx, 3
setne cl
dec ecx
push eax
and ecx, 8
push 3
push ecx
push edi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47491a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47491a
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x38]
push 0x7d1
push ecx
call fcn.0048eb30
mov eax, dword [eax]
add esp, 8
xor edx, edx
push eax
mov eax, dword [esi + 0x2c4]
cmp eax, 4
push 4
setne dl
dec edx
and edx, 8
push edx
push edi
call ebx
mov eax, dword [esp + 0x38]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474976
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474976
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x38]
push 0xd2f3
push eax
call fcn.0048eb30
mov edx, dword [esi + 0x2c4]
mov eax, dword [eax]
add esp, 8
xor ecx, ecx
cmp edx, 5
setne cl
dec ecx
push eax
and ecx, 8
push 5
push ecx
push edi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4749d2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4749d2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
push 0
push 2
push 0x800
push edi
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push ecx
push 0
push edx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ecx, dword [esi + 0x5d8]
push 0
push ebp
push 0x403
push ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x474a5c
push 0
push ebx
push str.m_grupping_type
push 0x4db058
mov dword [esi + 0x2c4], ebx
call fcn.00480e00
mov eax, dword [esi + 0x2c4]
add esp, 0x10
cmp eax, 1
je 0x474a4e
mov ecx, esi
mov dword [esi + 0x468], 0
call fcn.00479970
mov edx, dword [esi + 0x3258]
mov ecx, esi
push edx
call fcn.0046e3f0
mov ecx, esi
call fcn.004738f0
test edi, edi
je 0x474a6e
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x10