Function at 0x40b460
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193b8
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x419
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov dword [ebp - 0xb0], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x68], eax
push 0
push 0
push 0x1042
push edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov dword [ebp - 0x5c], eax
push 0
push 0
push 0x1009
push edi
call ebx
mov eax, dword [0x41dfe0]
mov ecx, dword [eax]
push ecx
call fcn.004161b0
add esp, 4
mov edi, eax
test edi, edi
jne 0x40b506
mov edx, dword [0x41b1a8]
push edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ecx, edi
sub ecx, dword [0x41dfcc]
push ecx
mov edx, dword [str._08lX]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push 0x41a
push esi
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
call ebx
mov edx, dword [edi]
push edx
mov eax, dword [str._08lX]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x9c]
push edx
push 0x41b
push esi
call ebx
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [str._08lX]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
push 0x41c
push esi
call ebx
mov ecx, dword [edi + 0xc]
push ecx
mov edx, dword [str._08lX]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push 0x41d
push esi
call ebx
mov edx, dword [0x41b1b0]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [edi + 0xc]
push ecx
call fcn.004161b0
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40b5f8
push 0x32
push eax
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test eax, eax
setne cl
push ecx
push 0x41e
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0xc5
push 0x41e
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x9c]
push eax
push 0x41e
push esi
call ebx
mov ecx, dword [edi + 0x14]
push ecx
mov edx, dword [str._08lX]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push 0x41f
push esi
call ebx
mov edx, dword [edi + 0x18]
push edx
mov eax, dword [str._08lX]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x9c]
push edx
push 0x420
push esi
call ebx
mov eax, dword [edi + 0x1c]
push eax
mov ecx, dword [str._08lX]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
push 0x421
push esi
call ebx
mov ecx, dword [edi + 0x24]
push ecx
mov edx, dword [str._08lX]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push 0x423
push esi
call ebx
mov edx, dword [edi + 0x20]
push edx
mov eax, dword [str._08lX]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x9c]
push edx
push 0x422
push esi
call ebx
mov eax, dword [edi + 0x1c]
push eax
call fcn.004161b0
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov ecx, dword [edi + 0x24]
push ecx
call fcn.004161b0
mov esi, eax
mov dword [ebp - 0xac], esi
mov edx, dword [edi + 0x20]
push edx
call fcn.004161b0
add esp, 0xc
mov dword [ebp - 0x60], eax
xor edx, edx
cmp esi, edx
je 0x40b903
cmp ebx, edx
je 0x40b903
cmp eax, edx
je 0x40b903
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x64], edx
cmp edx, dword [edi + 0x14]
jae 0x40b916
xor ecx, ecx
cmp dword [ebx], ecx
je 0x40b8f7
mov dword [ebp - 0x2c], ecx
mov eax, esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x28], ecx
cmp ecx, dword [edi + 0x18]
jae 0x40b7a9
xor esi, esi
mov si, word [eax]
cmp esi, edx
jne 0x40b84e
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x50], 0
mov eax, dword [edi + 0x10]
add eax, edx
push eax
mov ecx, dword [str._04lX]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0x1007
mov esi, dword [ebp - 0xb0]
push esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
push eax
mov ecx, dword [str._08lX]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
push 0
push 0x1006
push esi
call ebx
inc dword [ebp - 0x50]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
call fcn.00416250
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x40b85d
mov eax, dword [0x41b1b0]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40b875
add eax, 2
mov dword [ebp - 0xa8], eax
inc ecx
jmp 0x40b78d
push eax
mov edx, dword [str._08lX]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0x1006
push esi
call ebx
inc dword [ebp - 0x50]
push 0x41c918
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40b8da
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x28]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x40b8da
push eax
call fcn.004161b0
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40b8d7
mov edx, dword [0x41b1b0]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40b8da
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0x1006
push esi
call ebx
inc dword [ebp - 0x54]
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xac]
mov edx, dword [ebp - 0x64]
add ebx, 4
mov dword [ebp - 0x24], ebx
inc edx
jmp 0x40b76c
mov edx, dword [0x41b1a8]
push edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.004043a0
add esp, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x5c]
cmp esi, 0xffffffff
je 0x40b969
push 0
push esi
push 0x1013
mov ebx, dword [ebp - 0xb0]
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, 3
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x58]
push ecx
push esi
push 0x102b
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret