Function at 0x1003d3d3
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 0xc]
push ebx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
cmp eax, ecx
je 0x1003d654
cmp dword [0x10136608], ecx
jne 0x1003d407
mov edx, dword [ebp + 0x14]
test byte [edx + 0x5c], 2
je 0x1003d407
xor eax, eax
jmp 0x1003d657
mov edi, dword [eax + 0x28]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push edi
push 0x419
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebp - 0x2c]
push eax
call ebx
lea eax, [ebp - 0x5c]
push eax
push edi
push 0x43f
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x20
mov dword [ebp - 0x58], 0x48
call esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x34], 0xfffffffe
jne 0x1003d454
cmp dword [eax + 0x50], 0
je 0x1003d45b
mov dword [ebp - 0xc], 0x14
cmp dword [0x10136608], 0
je 0x1003d4c7
cmp dword [eax + 0x6c], 0
je 0x1003d4c7
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x1003d482
push esi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x3c]
push eax
call ebx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x70], 8
mov ecx, dword [eax + 0x6c]
jb 0x1003d499
mov eax, dword [eax + 0x5c]
jmp 0x1003d49c
add eax, 0x5c
push 0xc24
lea edx, [ebp - 0x3c]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 8]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
add dword [ebp - 0xc], 4
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jle 0x1003d4e7
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x1003d4f1
add dword [ebp - 0x18], edx
mov esi, dword [ebx + 0x10]
test esi, esi
jle 0x1003d507
test eax, eax
jl 0x1003d507
mov ecx, dword [ebp - 0x1c]
lea edi, [esi + ecx]
mov dword [ebp - 0x14], edi
jmp 0x1003d50a
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jle 0x1003d51f
test edx, edx
jl 0x1003d51f
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x1003d522
mov edx, dword [ebp - 0x10]
cmp dword [ebx + 0x18], 2
je 0x1003d599
cmp eax, 0xffffffff
jne 0x1003d552
mov eax, edi
test esi, esi
jle 0x1003d535
sub eax, esi
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
sar eax, 1
add dword [ebp - 0x1c], eax
test esi, esi
jle 0x1003d562
mov eax, dword [ebp - 0x1c]
lea edi, [esi + eax]
mov dword [ebp - 0x14], edi
jmp 0x1003d562
cmp eax, 0xfffffffe
jne 0x1003d562
test esi, esi
jle 0x1003d562
mov eax, edi
sub eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
jne 0x1003d58b
mov eax, edx
test ecx, ecx
jle 0x1003d572
sub eax, ecx
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x18], eax
test ecx, ecx
jle 0x1003d599
mov eax, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x1003d599
cmp eax, 0xfffffffe
jne 0x1003d599
test ecx, ecx
jle 0x1003d599
sub edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], 0
jle 0x1003d5bc
cmp byte [ebp + 0x18], 0
jne 0x1003d5bc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
jmp 0x1003d5cf
sub edi, dword [ebp - 0x2c]
add edi, 4
test byte [ebp - 0x4b], 0x88
mov dword [ebp - 8], edi
je 0x1003d5cf
add dword [ebp - 8], 0xd
mov eax, dword [ebx + 0x18]
dec eax
dec eax
jne 0x1003d64c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1003d5ef
push eax
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], 0
jg 0x1003d643
cmp dword [ebx + 0x10], 0
jge 0x1003d643
cmp dword [ebx + 0x58], 8
mov ecx, dword [ebx + 0x54]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jb 0x1003d616
mov eax, dword [ebx + 0x44]
jmp 0x1003d619
lea eax, [ebx + 0x44]
push 0xc24
lea edx, [ebp - 0x3c]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
add eax, 4
test byte [ebp - 0x4b], 0x88
mov dword [ebp - 8], eax
je 0x1003d643
add dword [ebp - 8], 0xd
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jg 0x1003d657
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14