Function at 0x41dbd7
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x28], edi
test edi, edi
je 0x41df35
lea eax, [ebp - 0x30]
push eax
call fcn.0043e347
pop ecx
test eax, eax
js 0x41df35
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
push 0x8000050a
mov dword [ebp - 0x34], 0x48
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test byte [ebp - 0x34], 8
je 0x41dc64
test dword [esi + 0x58], 8
jne 0x41dc56
push 0x124
push 0x44b408
push 0x44b418
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x41dc64
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41df49
mov ebx, dword [esi + 0xc5c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x418
push ebx
mov dword [ebp - 0x2c], ebx
call edi
mov dword [ebp - 0x38], eax
cmp eax, 1
jne 0x41dd5e
mov ecx, 0x8066
cmp cx, word [esi + 0x1e2]
je 0x41dd5e
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
movzx eax, word [esi + 0x1e2]
cmp eax, 0x8046
je 0x41dcd8
cmp eax, 0x8048
jle 0x41df49
cmp eax, 0x804b
jle 0x41dcd8
cmp eax, 0x807e
je 0x41dd47
cmp eax, 0x8095
jne 0x41df49
push 0
push 0
push 0xb
push ebx
call edi
mov ebx, dword [esi + 0x254]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
movzx ecx, word [esi + 0x1e2]
mov eax, ebx
or eax, 4
sub ecx, 0x8000
mov dword [esi + 0x254], eax
shl ecx, 4
push dword [ecx + 0x448860]
lea eax, [esi + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
push dword [ebp + 8]
lea eax, [esi + 0xdc8]
push dword [ebp - 0x28]
mov dword [esi + 0x254], ebx
push 0x221
call fcn.004409fb
push 0
push 1
push 0xb
push dword [ebp - 0x2c]
mov esi, eax
call edi
mov eax, esi
jmp 0x41df4b
push 0
push 0
push 0x10
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41df49
test byte [ebp - 0x34], 0x40
je 0x41dd78
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
push dword [ebp - 0x28]
jmp 0x41df39
cmp eax, 2
jge 0x41dde4
test byte [ebp - 0x34], 4
je 0x41dde4
mov ebx, 0xc000000
test dword [esi + 0x210], ebx
je 0x41dde4
push 0
push dword [ebp - 0x28]
push 0x419
push dword [ebp - 0x2c]
call edi
mov ecx, dword [esi + 0x210]
and ecx, ebx
cmp ecx, 0x8000000
jne 0x41ddb2
dec eax
jmp 0x41ddb3
inc eax
test eax, eax
jns 0x41ddb9
xor eax, eax
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jl 0x41ddc3
lea eax, [ecx - 1]
lea ecx, [ebp - 0x24]
push ecx
push eax
push 0x417
push dword [ebp - 0x2c]
call edi
push 0
push dword [ebp - 0x20]
push 0x222
push dword [esi + 0xdd0]
call edi
xor edi, edi
push 0x58
lea eax, [ebp - 0xa8]
push edi
push eax
mov dword [ebp - 0xac], edi
call fcn.004432d0
add esp, 0xc
test byte [esi + 0x212], 1
mov dword [ebp - 0x3c], 0x80004005
je 0x41de38
push edi
push edi
mov eax, 0x4000
mov word [ebp - 0x24], ax
push edi
lea edx, [ebp - 0x24]
lea eax, [ebp - 0xac]
push edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push 0x80000505
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x228]
and eax, 3
cmp al, 1
setne bl
test bl, bl
je 0x41de57
or dword [esi + 0x58], 2
push dword [ebp + 8]
lea eax, [esi + 0xdc8]
push dword [ebp - 0x28]
push 0x221
call fcn.004409fb
and dword [esi + 0x58], 0xfffffffd
mov dword [ebp - 0x40], eax
test bl, bl
je 0x41df0f
mov eax, 0xfff
test word [esi + 0x8c], ax
je 0x41df0f
mov eax, dword [esi + 0x198]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], 0x448858
lea ebx, [esi + 0x110]
movzx ecx, word [ebx]
mov dword [ebp - 0x48], ecx
test cl, 7
je 0x41def1
mov edi, dword [esi + 0x194]
test eax, eax
jle 0x41deec
mov dword [ebp - 0x2c], eax
mov cx, word [edi + 4]
mov eax, dword [ebp - 0x28]
test word [eax + 6], cx
je 0x41dee1
push dword [edi]
movzx eax, word [eax]
push dword [ebp - 0x48]
push eax
mov ax, word [ebx - 0x82]
call fcn.004079ea
add esp, 0xc
add edi, 8
dec dword [ebp - 0x2c]
jne 0x41debc
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [ebx], cx
add dword [ebp - 0x28], 0x10
add ebx, 2
cmp dword [ebp - 0x28], 0x448c68
jl 0x41dea4
mov eax, 0xf000
and word [esi + 0x8c], ax
xor edi, edi
cmp dword [ebp - 0x3c], edi
jl 0x41df20
push esi
lea eax, [ebp - 0xac]
call fcn.0041efba
cmp dword [ebp - 0x38], 1
jne 0x41df30
add esi, 0x14
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x74]
mov eax, dword [ebp - 0x40]
jmp 0x41df4b
push dword [ebp + 8]
push edi
push 0x221
lea eax, [esi + 0xdc8]
call fcn.004409fb
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044552e
leave
ret 4