Function at 0x40bda0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx - 0x370]
call fcn.0040f010
test eax, eax
jne 0x40bdcf
xor eax, eax
jmp 0x40c248
mov ecx, dword [0x43a0f0]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x40bdee
push 1
mov ecx, dword [ebp - 8]
sub ecx, 0x370
call fcn.0040f070
mov edx, dword [ebp - 8]
mov eax, dword [edx - 8]
xor ecx, ecx
cmp dword [eax + 0x1c], 0
setne cl
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0x370
call fcn.0040f230
push 0x414
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x368]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0x198
call fcn.004018a0
push 0x10
push 0x10
push 0x98
mov ecx, dword [ebp - 8]
sub ecx, 0x198
call fcn.004019a0
push 0x418
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x368]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0x148
call fcn.004018a0
push 0x10
push 0x10
push 0x98
mov ecx, dword [ebp - 8]
sub ecx, 0x148
call fcn.004019a0
push 0x431
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x368]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0x58
call fcn.004018a0
push 0x10
push 0x10
push 0xad
mov ecx, dword [ebp - 8]
sub ecx, 0x58
call fcn.004019a0
push 0x419
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x368]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0xa8
call fcn.004018a0
push 0x10
push 0x10
push 0xae
mov ecx, dword [ebp - 8]
sub ecx, 0xa8
call fcn.004019a0
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x370]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x368]
push ecx
mov ecx, dword [ebp - 8]
sub ecx, 0xf8
call fcn.004018a0
push 0x10
push 0x10
push 0x99
mov ecx, dword [ebp - 8]
sub ecx, 0xf8
call fcn.004019a0
push 0
push 1
push 0x401
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, dword [ebp - 8]
sub ecx, 0xf8
call fcn.00401a10
push 0x415
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x370]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x36c]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1c0], eax
push 0x41a
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1bc], eax
push 0x413
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1b8], eax
push 0x417
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1b4], eax
push 0x416
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1b0], eax
push 0x433
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1ac], eax
push 0x432
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1a8], eax
push 0x435
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1a4], eax
push 0x436
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x1a0], eax
push 0x437
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x370]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x36c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 8]
mov dword [ecx - 0x19c], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x374
call fcn.0040b980
mov eax, 1
mov esp, ebp
pop ebp
ret