Function at 0x4068cd
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 4], 0x3f9
mov dword [esp], eax
call ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
push edi
push edi
mov dword [esp + 4], 0x408
mov dword [esp], eax
call ebx
mov edi, eax
mov eax, dword [0x43ba88]
push edx
push edx
mov dword [ebp - 0x64], eax
mov eax, dword [0x43ba60]
add eax, 0x94
cmp dword [ebp + 0xc], 0x110
mov dword [ebp - 0x68], eax
jne 0x406c80
mov eax, dword [ebp + 8]
mov dword [esp], 0x40
mov dword [0x43ba5c], eax
mov eax, dword [0x43ba8c]
shl eax, 2
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x434cc4], eax
mov eax, dword [0x43baec]
push ebx
push ebx
mov dword [esp + 4], 0x6e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push esi
push esi
mov ebx, eax
mov dword [0x435d28], 0xffffffff
mov dword [esp + 8], sym._32
mov dword [esp + 4], 0xfffffffc
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
sub esp, 0xc
mov dword [0x435d2c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 6
mov dword [esp + 8], 0x21
mov dword [esp + 4], 0x10
mov dword [esp], 0x10
call dword [sym.imp.COMCTL32.DLL_ImageList_Create]
sub esp, 0x14
mov dword [0x434cc0], eax
mov dword [esp + 8], 0xff00ff
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.COMCTL32.DLL_ImageList_AddMasked]
mov eax, dword [0x434cc0]
sub esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1109
mov dword [esp], edi
mov dword [esp + 0xc], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x111c
mov dword [esp], edi
call esi
sub esp, 0x10
cmp eax, 0xf
jg 0x406a50
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x111b
mov dword [esp], edi
call esi
sub esp, 0x10
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
mov dword [ebp - 0x60], 2
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x406ace
cmp ebx, 0x20
mov edx, 0
cmove edx, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x60], edx
call sym.3
push edx
push edx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x151
mov dword [esp], eax
call esi
sub esp, 0x10
inc ebx
cmp ebx, 0x21
jne 0x406a63
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 0x60]
lea ebx, [eax + esi*4]
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], 0x15
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.n_
mov eax, dword [ebx + 0x34]
sub esp, 0xc
xor ebx, ebx
mov dword [esp + 4], 0x16
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.n_
xor ecx, ecx
sub esp, 0xc
mov dword [ebp - 0x6c], 0
cmp dword [0x43ba8c], ebx
jle 0x406c1d
imul edx, ebx, 0x818
mov eax, dword [ebp - 0x64]
add eax, edx
cmp word [eax + 0x18], 0
je 0x406c17
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0xffff0002
mov dword [ebp - 0x44], 0xd
mov dword [ebp - 0x38], 0x20
mov dword [ebp - 0x20], ebx
lea edx, [esi + edx + 0x18]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 8]
and edx, 0x20
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 8]
test al, 2
je 0x406bbd
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], 0x4d
mov dword [ebp - 0x24], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp + 0xc], eax
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov eax, dword [0x434cc4]
sub esp, 0x10
mov dword [ebp - 0x6c], 1
mov dword [eax + ebx*4], ecx
jmp 0x406c17
test al, 4
je 0x406be5
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 3
mov dword [esp + 4], 0x110a
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov ecx, eax
jmp 0x406c17
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], edi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x434cc4]
mov ecx, dword [ebp - 0x70]
sub esp, 0x10
mov dword [edx + ebx*4], eax
inc ebx
jmp 0x406b22
cmp dword [ebp - 0x6c], 0
jne 0x406c51
mov dword [esp + 4], 0xfffffff0
mov dword [esp], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push esi
and eax, 0xfffffffb
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfffffff0
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
sub esp, 0xc
cmp dword [ebp - 0x60], 0
jne 0x406c75
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x5c]
push ebx
push ebx
mov dword [esp], eax
jmp 0x406c78
mov dword [esp], edi
call sym._22
push ecx
jmp 0x406c9e
cmp dword [ebp + 0xc], 0x405
jne 0x406c9e
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x40f
cmp dword [ebp + 0xc], 0x4e
je 0x406cb1
cmp dword [ebp + 0xc], 0x413
jne 0x406dcb
cmp dword [ebp + 0xc], 0x413
mov ebx, dword [ebp + 0x14]
je 0x406cca
cmp dword [ebx + 4], 0x408
jne 0x406dcb
test byte [0x43bac5], 2
jne 0x406d72
cmp dword [ebp + 0xc], 0x413
je 0x406ced
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], 0xfffffffe
jne 0x406d72
xor eax, eax
cmp dword [ebp + 0xc], 0x413
mov dword [esp], edi
setne al
mov dword [esp + 4], eax
call fcn.004067c0
test eax, eax
push edx
mov esi, eax
push edx
js 0x406d72
imul eax, eax, 0x818
add eax, dword [ebp - 0x64]
mov edx, dword [eax + 8]
test dl, 0x10
jne 0x406d72
mov ecx, edx
xor ecx, 1
test dl, 0x40
je 0x406d3e
mov ecx, edx
xor cl, 0x80
mov dword [ebp - 0x60], ecx
and ecx, 0xfffffffe
and dl, 0x80
jne 0x406d3e
mov ecx, dword [ebp - 0x60]
or ecx, 1
mov dword [eax + 8], ecx
mov dword [esp], esi
call fcn.00401230
push eax
lea eax, [esi + 1]
mov dword [ebp + 0x10], eax
xor eax, eax
test byte [0x43bac5], 1
sete al
cmp dword [ebp + 0x14], 0
mov dword [ebp + 0x14], eax
je 0x406f27
mov dword [ebp + 0xc], 0x40f
jmp 0x406d78
cmp dword [ebp + 0x14], 0
je 0x406dcb
cmp dword [ebx + 8], 0xfffffe3d
jne 0x406da4
mov eax, dword [ebx + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x419
mov dword [esp], edi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
cmp dword [ebx + 8], 0xfffffe39
jne 0x406dcb
imul edx, dword [ebx + 0x5c], 0x818
add edx, dword [ebp - 0x64]
cmp dword [ebx + 0xc], 2
mov eax, dword [edx + 8]
jne 0x406dc5
or eax, 0x20
jmp 0x406dc8
and eax, 0xffffffdf
mov dword [edx + 8], eax
cmp dword [ebp + 0xc], 0x111
jne 0x406e96
cmp word [ebp + 0x10], 0x3f9
jne 0x407170
mov eax, dword [ebp + 0x10]
shr eax, 0x10
dec eax
jne 0x407170
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp eax, 0xffffffff
je 0x407170
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x150
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
je 0x406e52
mov eax, dword [ebp - 0x68]
cmp dword [eax + ebx*4], 0
jne 0x406e57
mov ebx, 0x20
mov dword [esp], ebx
call fcn.00401347
push eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x420
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x14], 0
sub esp, 0x10
mov dword [ebp + 0x10], 0xffffffff
jmp 0x406f27
cmp dword [ebp + 0xc], 0x200
jne 0x406ec8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x200
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
jmp 0x407170
cmp dword [ebp + 0xc], 0x40b
jne 0x406f1a
mov eax, dword [0x434cc0]
test eax, eax
je 0x406ee4
mov dword [esp], eax
call dword [sym.imp.COMCTL32.DLL_ImageList_Destroy]
push eax
mov eax, dword [0x434cc4]
test eax, eax
je 0x406ef7
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
mov dword [0x434cc0], 0
mov dword [0x434cc4], 0
mov dword [0x43ba5c], 0
jmp 0x407170
cmp dword [ebp + 0xc], 0x40f
jne 0x407120
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401295
cmp dword [ebp + 0x10], 0
push esi
push esi
je 0x406f5e
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x406f4c
dec eax
mov dword [esp + 4], eax
mov dword [esp], 8
call sym._30
push ebx
push ebx
cmp dword [ebp + 0x14], 0
mov dword [ebp + 0xc], 0x40f
je 0x406fc5
mov eax, dword [0x434cc4]
mov dword [esp], eax
call fcn.00401396
push edx
mov dword [ebp + 0x14], eax
mov dword [esp], eax
call fcn.00401347
push ecx
xor edx, edx
xor eax, eax
cmp eax, dword [ebp + 0x14]
jge 0x406f9b
mov esi, dword [ebp - 0x68]
cmp dword [esi + eax*4], 0
je 0x406f98
inc edx
inc eax
jmp 0x406f89
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x14e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0xc], 0x420
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], 0
xor ebx, ebx
call fcn.00401295
mov eax, dword [0x434cc4]
push esi
push esi
mov dword [ebp - 0x40], 0xf030
mov dword [ebp - 0x64], eax
mov eax, dword [0x43ba88]
mov dword [ebp - 0x60], eax
imul ecx, ebx, 0x818
cmp ebx, dword [0x43ba8c]
mov eax, dword [ebp - 0x60]
lea edx, [ecx + eax]
jge 0x4070c9
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + ebx*4]
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x4070c3
mov eax, dword [edx + 8]
mov esi, dword [ebp - 0x5c]
bt eax, 8
mov dword [ebp - 0x48], esi
jb 0x407035
mov dword [ebp - 0x4c], 8
jmp 0x40704d
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 9
lea ecx, [ecx + esi + 0x18]
mov dword [ebp - 0x3c], ecx
and dword [edx + 8], 0xfffffeff
test al, 0x40
mov ecx, 3
jne 0x407065
mov edx, eax
and edx, 1
test al, 0x10
lea ecx, [edx + 4]
jne 0x407065
lea ecx, [edx + 1]
lea edx, [eax + eax]
shl ecx, 0xc
mov dword [esp + 4], 0x1102
mov dword [esp], edi
and edx, 0x10
mov esi, edx
mov edx, eax
sar eax, 5
and edx, 0x20
and eax, 1
or edx, esi
mov esi, dword [ebp - 0x5c]
inc eax
or edx, ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x44], edx
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
lea eax, [ebp - 0x4c]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113f
mov dword [esp + 0xc], eax
mov dword [esp], edi
call esi
sub esp, 0x10
inc ebx
jmp 0x406ff4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x43cb24]
sub esp, 0xc
cmp dword [eax + 0x10], 0
je 0x407120
mov dword [esp], 5
call sym._17
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xfffffffb
mov dword [esp], 0x3ff
call sym._23
sub esp, 0x10
cmp dword [ebp + 0xc], 0x420
jne 0x407170
test byte [0x43bac5], 1
je 0x407170
xor ebx, ebx
cmp dword [ebp + 0x14], 0x20
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp], edi
sete bl
shl ebx, 3
mov dword [esp + 4], ebx
call esi
push eax
push eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x3fe
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
push edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
push ecx
push ecx
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040513b
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10