Function at 0x4c9f60
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x4ca192
sub eax, 0x10000
jne 0x4ca179
push 1
push dword [edi + 0x10]
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], 0x2d
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push dword [edi + 0x24]
push 0x419
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x447
push dword [edi]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [edi + 0x24]
cmp eax, esi
push 0x40b
push dword [edi]
sete bl
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x24]
push 0x43f
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4ca020
cmp eax, 0xffffffff
je 0x4ca179
mov eax, dword [edi + 0x10]
lea esi, [edi + 0x14]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
test bl, bl
je 0x4ca046
push 0x808080
jmp 0x4ca04c
push dword [0x5c7a44]
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0x5cd510]
test eax, eax
jne 0x4ca0be
push 0x1f4
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], 0x1f8
push eax
call fcn.00536b00
add esp, 0xc
lea eax, [esp + 0x30]
push 0
push eax
push 0
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea ecx, [ecx]
test eax, eax
je 0x4ca0b9
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x5cd510], eax
jmp 0x4ca0be
mov eax, dword [0x5cd510]
push eax
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x1c], 0xffffffff
je 0x4ca107
push 0
push 0
push 0x431
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4ca107
mov ecx, dword [edi + 0x18]
add dword [edi + 0x14], 5
add ecx, 3
push 0
push ecx
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhImageListDrawIcon
test byte [esp + 0x21], 0x40
je 0x4ca15d
push 0x208
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00536b00
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [edi + 0x24]
push 0x44b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
add dword [edi + 0x14], 0xa
lea eax, [edi + 0x14]
push 0x100025
push eax
lea eax, [esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhCountStringZ
push eax
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x23c]
mov eax, 0x30
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4