Function at 0x43cc30
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0xc]
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x40], ebx
cmp eax, 1
jne 0x43cc64
mov eax, 0x20
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
cmp eax, 0x10001
jne 0x43d05f
mov eax, dword [edi + 0x24]
cmp eax, 3
jne 0x43d071
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0xf4]
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, esi
je 0x43cce2
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebx + 0x24]
lea esi, [ebp - 0x24]
call fcn.004756e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, dword [ebp - 0x1c]
push edx
sub eax, ecx
mov ecx, dword [edi + 0x10]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [ebp - 0x40]
xor esi, esi
mov edx, dword [ebx + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x3c], eax
test al, 1
je 0x43d05f
test al, 0x10
jne 0x43d05f
push 0x92a1a1
push 1
push esi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x24]
push ecx
push esi
push 0x41a
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edx
mov dword [ebp - 0x48], eax
call esi
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
push 0
push 0x419
push ecx
call esi
xor eax, eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov al, byte [ebp - 0x3c]
test al, 2
je 0x43ceed
test al, 4
je 0x43cd9e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffb
mov dword [ebp - 0x38], eax
jns 0x43cdb3
mov dword [ebp - 0x38], 0
jmp 0x43cdb3
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
inc ecx
dec eax
mov dword [ebp - 0x38], ecx
cmp ecx, eax
jle 0x43cdb3
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
cdq
sub eax, edx
mov edx, dword [edi + 0x10]
sar eax, 1
add eax, dword [ebp - 0x24]
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x24]
add ecx, 3
push eax
mov eax, dword [edi + 0x10]
push ecx
push eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x38]
sar eax, 1
sub ecx, eax
mov eax, dword [edi + 0x10]
push 0
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cdq
sub eax, edx
mov edx, dword [ebp - 0x3c]
sar eax, 1
sub ecx, eax
mov eax, dword [edi + 0x10]
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x401
push ecx
call esi
mov edx, dword [ebx + 4]
push 0
push 0
push 0x402
push edx
call esi
mov eax, dword [ebx + 4]
push 0
push 0
push 0x410
push eax
call esi
lea esi, [eax - 1]
cmp esi, 2
jbe 0x43d047
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
cmp esi, 1
jbe 0x43d047
lea ecx, [esi - 1]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x40]
xor edx, edx
div esi
push 0
mov ebx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
mov edx, dword [ebp - 0x38]
sar eax, 1
add eax, ebx
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
cdq
sub eax, edx
sar eax, 1
add eax, ebx
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
add eax, 3
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 0x44]
add dword [ebp - 0x40], edx
dec dword [ebp - 0x3c]
jne 0x43ce91
jmp 0x43d047
test al, 4
je 0x43cf05
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffb
mov dword [ebp - 0x38], eax
jns 0x43cf1a
mov dword [ebp - 0x38], 0
jmp 0x43cf1a
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
inc ecx
dec eax
mov dword [ebp - 0x38], ecx
cmp ecx, eax
jle 0x43cf1a
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi + 0x10]
push 0
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x38]
add eax, 3
push eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 0x10]
sar eax, 1
add eax, dword [ebp - 0x24]
push eax
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
push 0
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 0x10]
sar eax, 1
sub ecx, eax
dec ecx
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 0x10]
sar eax, 1
sub ecx, eax
dec ecx
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebx + 4]
push 0
push 0
push 0x401
push eax
call esi
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x402
push ecx
call esi
mov edx, dword [ebx + 4]
push 0
push 0
push 0x410
push edx
call esi
lea esi, [eax - 1]
cmp esi, 2
jbe 0x43d047
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
cmp esi, 1
jbe 0x43d047
mov dword [ebp - 0x40], eax
lea eax, [esi - 1]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
xor edx, edx
div esi
mov ecx, dword [ebp - 0x38]
push 0
push ecx
mov ebx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 0x10]
sar eax, 1
add eax, ebx
add eax, dword [ebp - 0x24]
push eax
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x38]
add eax, 3
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, ebx
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x40], ecx
dec dword [ebp - 0x3c]
jne 0x43cff0
mov edx, dword [ebp - 0x48]
mov eax, dword [edi + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486a8b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x43d05f
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 4
pop ebx
call fcn.00486a8b
mov esp, ebp
pop ebp
ret