Function at 0x416480
Capabilities:
Capture webcam image
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453146
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
push edi
mov dword [ebp - 0x3c], edi
call fcn.004174a0
test al, al
je 0x416983
mov ecx, dword [esi + 0x3c]
lea edi, [edi + edi*8]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
shl edi, 3
mov dword [ebp - 0x40], edi
mov eax, dword [ecx + edi]
mov dword [ebp - 0x44], eax
cmp eax, 0x20
jne 0x41651c
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x416747
mov ecx, eax
call fcn.00415d90
push 0x258
push dword [ebp - 0x38]
call fcn.00425adf
add esp, 8
jmp 0x416747
cmp eax, 1
jne 0x4165d1
mov edi, dword [ecx + edi + 0x44]
test edi, edi
je 0x416744
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x41653e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41654b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
test eax, eax
je 0x416562
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x416562
mov dword [edi], 0
cmp dword [edi + 0xc], 0
mov dword [edi + 8], vtable.ATL::CComModule.0
je 0x4165a2
cmp dword [edi + 0x14], 0
je 0x416584
lea ecx, [edi + 0xc]
call fcn.00404a40
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x416591
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [edi + 0xc], 0
push 0x3c
push edi
call fcn.00425adf
mov eax, dword [esi + 0x3c]
add esp, 8
mov edi, dword [ebp - 0x40]
mov dword [edi + eax + 0x44], 0
mov eax, dword [esi + 0x3c]
mov dword [edi + eax + 4], 0
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x416747
cmp eax, 3
jne 0x416606
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x1603
push dword [ecx + edi + 4]
call edx
test eax, eax
je 0x416747
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x416747
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x416747
cmp eax, 0x23
jne 0x416673
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x416747
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x3c]
jne 0x41662d
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x416656
push eax
mov ecx, esi
call fcn.004174a0
test al, al
je 0x416656
mov ecx, dword [ebp - 0x4c]
mov edx, dword [esi + 0x3c]
push ecx
lea eax, [ecx + ecx*8]
mov ecx, esi
mov dword [edx + eax*8 + 0x44], 0
call fcn.00416480
mov eax, dword [esi + 0x3c]
push 0x1c
push dword [ebp - 0x38]
mov dword [edi + eax + 0x44], 0
call fcn.00425adf
add esp, 8
jmp 0x416747
cmp eax, 0xc
jne 0x41667e
mov eax, dword [ecx + edi + 0x44]
jmp 0x4166ec
cmp eax, 0x1d
jne 0x4166c7
push 0
push 2
push 0x1108
push dword [ecx + edi + 4]
call edx
test eax, eax
je 0x41669d
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [esi + 0x3c]
push 0
push 0
push 0x1108
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x416747
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x416747
cmp eax, 0x17
jne 0x4166fa
cmp dword [ecx + edi + 0x44], 0
je 0x416747
movzx eax, word [ecx + edi + 0x44]
test eax, eax
je 0x4166e4
push eax
mov ecx, esi
call fcn.00416480
mov eax, dword [esi + 0x3c]
movzx eax, word [edi + eax + 0x46]
test eax, eax
je 0x416747
push eax
mov ecx, esi
call fcn.00416480
jmp 0x416747
cmp eax, 0x22
jne 0x416747
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x416747
push fcn.00413100
push 4
push 4
add eax, 4
mov dword [ebp - 4], 0
push eax
call fcn.00425280
push 0x14
push dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00425adf
mov eax, dword [esi + 0x3c]
add esp, 8
mov dword [edi + eax + 0x44], 0
jmp 0x416747
mov edi, dword [ebp - 0x40]
mov ecx, dword [esi + 0x3c]
add ecx, edi
mov eax, dword [ecx]
cmp eax, 0x1a
je 0x41689e
cmp eax, 0x16
je 0x41689e
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jne 0x416777
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.00417b30
jmp 0x4168e1
cmp eax, 0x11
jne 0x41678f
push 0
push dword [ebp - 0x3c]
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x4168e1
cmp eax, 0x1c
jne 0x4167ca
push 0
push dword [ebp - 0x3c]
push 0x419
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4168e1
push 0
push eax
mov eax, dword [esi + 0x3c]
push 0x416
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4168e1
cmp eax, 0x1b
jne 0x41686b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0x80000020
push 0x43f
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
push dword [ecx + 4]
mov dword [ebp - 0x38], 0
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4168e1
nop word [eax + eax]
mov edi, dword [ebp - 0x2c]
mov ecx, esi
push edi
call fcn.004174a0
test al, al
je 0x416843
mov eax, dword [esi + 0x3c]
lea ecx, [edi + edi*8]
cmp dword [eax + ecx*8], 0x1c
jne 0x416843
push edi
mov ecx, esi
call fcn.00416480
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov edi, dword [ebp - 0x40]
inc eax
push ecx
push eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x3c]
push 0x43f
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x416820
jmp 0x4168e1
mov eax, dword [ecx + 4]
test eax, eax
je 0x4168e1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x3c]
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x3c]
cmp dword [edi + eax + 8], 0
je 0x4168e1
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.00417b30
jmp 0x4168e1
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4168ce
mov edi, dword [eax]
test edi, edi
je 0x4168c2
nop
push dword [eax + edi*4]
mov ecx, esi
call fcn.00416480
mov eax, dword [ebp - 0x38]
sub edi, 1
jne 0x4168b0
push eax
call fcn.0042524f
mov edi, dword [ebp - 0x40]
add esp, 4
cmp dword [ebp - 0x44], 0x1a
jne 0x4168e1
mov eax, dword [esi + 0x3c]
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x3c]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + eax + 0x14]
test eax, eax
je 0x4168fb
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x3c]
mov eax, dword [edi + eax + 0x10]
test eax, eax
je 0x416909
push eax
call ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + eax + 0x44]
test ecx, ecx
je 0x416936
mov eax, dword [ebp - 0x44]
cmp eax, 0xb
jne 0x416925
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x416936
cmp eax, 0x13
je 0x41692f
cmp eax, 0x1c
jne 0x416936
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0x3c]
mov ecx, esi
push edi
call fcn.004179a0
mov eax, dword [esi + 0x40]
cmp edi, eax
jne 0x416970
test eax, eax
je 0x416970
mov edx, dword [esi + 0x3c]
nop
mov ecx, dword [esi + 0x40]
lea eax, [ecx + ecx*8]
cmp dword [edx + eax*8 + 0xc], 0
jne 0x416970
lea eax, [ecx - 1]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x416950
nop word [eax + eax]
mov ecx, dword [esi + 0x1c0]
mov dl, 1
call fcn.00412620
test eax, eax
jne 0x416970
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4