Function at 0x416320
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 0x452926
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.00417320
test al, al
je 0x416803
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 0x4163bc
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4165c6
mov ecx, eax
call fcn.00415c30
push 0x258
push dword [ebp - 0x38]
call fcn.004252df
add esp, 8
jmp 0x4165c6
cmp eax, 1
jne 0x416471
mov edi, dword [ecx + edi + 0x44]
test edi, edi
je 0x4165c3
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x4163de
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4163eb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [edi]
test eax, eax
je 0x416402
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x416402
mov dword [edi], 0
cmp dword [edi + 0xc], 0
mov dword [edi + 8], vtable.ATL::CComModule.0
je 0x416442
cmp dword [edi + 0x14], 0
je 0x416424
lea ecx, [edi + 0xc]
call fcn.00404ad0
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x416431
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.004252df
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 0x4165c6
cmp eax, 3
jne 0x4164a6
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x1603
push dword [ecx + edi + 4]
call edx
test eax, eax
je 0x4165c6
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4165c6
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x4165c6
cmp eax, 0x23
jne 0x416513
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4165c6
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x3c]
jne 0x4164cd
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4164f6
push eax
mov ecx, esi
call fcn.00417320
test al, al
je 0x4164f6
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.00416320
mov eax, dword [esi + 0x3c]
push 0x1c
push dword [ebp - 0x38]
mov dword [edi + eax + 0x44], 0
call fcn.004252df
add esp, 8
jmp 0x4165c6
cmp eax, 0xc
jne 0x41651e
mov eax, dword [ecx + edi + 0x44]
jmp 0x41656b
cmp eax, 0x1d
jne 0x416546
push 0
push 2
push 0x1108
push dword [ecx + edi + 4]
call edx
test eax, eax
je 0x4165c6
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x4165c6
cmp eax, 0x17
jne 0x416579
cmp dword [ecx + edi + 0x44], 0
je 0x4165c6
movzx eax, word [ecx + edi + 0x44]
test eax, eax
je 0x416563
push eax
mov ecx, esi
call fcn.00416320
mov eax, dword [esi + 0x3c]
movzx eax, word [edi + eax + 0x46]
test eax, eax
je 0x4165c6
push eax
mov ecx, esi
call fcn.00416320
jmp 0x4165c6
cmp eax, 0x22
jne 0x4165c6
mov eax, dword [ecx + edi + 0x44]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4165c6
push fcn.00412ff0
push 4
push 4
add eax, 4
mov dword [ebp - 4], 0
push eax
call fcn.00424a80
push 0x14
push dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.004252df
mov eax, dword [esi + 0x3c]
add esp, 8
mov dword [edi + eax + 0x44], 0
jmp 0x4165c6
mov edi, dword [ebp - 0x40]
mov ecx, dword [esi + 0x3c]
add ecx, edi
mov eax, dword [ecx]
cmp eax, 0x1a
je 0x41671e
cmp eax, 0x16
je 0x41671e
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jne 0x4165f6
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.004179b0
jmp 0x416761
cmp eax, 0x11
jne 0x41660e
push 0
push dword [ebp - 0x3c]
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x416761
cmp eax, 0x1c
jne 0x416649
push 0
push dword [ebp - 0x3c]
push 0x419
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x416761
push 0
push eax
mov eax, dword [esi + 0x3c]
push 0x416
push dword [edi + eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x416761
cmp eax, 0x1b
jne 0x4166eb
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 0x416761
nop dword [eax]
mov edi, dword [ebp - 0x2c]
mov ecx, esi
push edi
call fcn.00417320
test al, al
je 0x4166c3
mov eax, dword [esi + 0x3c]
lea ecx, [edi + edi*8]
cmp dword [eax + ecx*8], 0x1c
jne 0x4166c3
push edi
mov ecx, esi
call fcn.00416320
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 0x4166a0
jmp 0x416761
mov eax, dword [ecx + 4]
test eax, eax
je 0x416761
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 0x416761
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.004179b0
jmp 0x416761
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x41674e
mov edi, dword [eax]
test edi, edi
je 0x416742
nop
push dword [eax + edi*4]
mov ecx, esi
call fcn.00416320
mov eax, dword [ebp - 0x38]
sub edi, 1
jne 0x416730
push eax
call fcn.00424a4f
mov edi, dword [ebp - 0x40]
add esp, 4
cmp dword [ebp - 0x44], 0x1a
jne 0x416761
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 0x41677b
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 0x416789
push eax
call ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + eax + 0x44]
test ecx, ecx
je 0x4167b6
mov eax, dword [ebp - 0x44]
cmp eax, 0xb
jne 0x4167a5
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4167b6
cmp eax, 0x13
je 0x4167af
cmp eax, 0x1c
jne 0x4167b6
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0x3c]
mov ecx, esi
push edi
call fcn.00417820
mov eax, dword [esi + 0x40]
cmp edi, eax
jne 0x4167f0
test eax, eax
je 0x4167f0
mov edx, dword [esi + 0x3c]
nop
mov ecx, dword [esi + 0x40]
lea eax, [ecx + ecx*8]
cmp dword [edx + eax*8 + 0xc], 0
jne 0x4167f0
lea eax, [ecx - 1]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x4167d0
nop word [eax + eax]
mov ecx, dword [esi + 0x1c0]
mov dl, 1
call fcn.00412510
test eax, eax
jne 0x4167f0
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.00424a0b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4