Function at 0x504e60
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x50511d
sub eax, 0x10000
jne 0x505104
push 1
push dword [edi + 0x10]
mov dword [esp + 0x28], 0x20
mov dword [esp + 0x2c], 0x2d
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push dword [edi + 0x24]
mov dword [esp + 0x18], 0
push 0x419
push dword [edi]
mov dword [esp + 0x1c], 0
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]
mov dword [esp + 0x1c], eax
push 0x40b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [edi + 0x24]
push 0x409
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword ds:[esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push dword [edi + 0x24]
push 0x43f
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x505104
mov eax, dword ds:[edi + 0x10]
lea ebx, [edi + 0x14]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esp + 0x14], esi
jne 0x504f89
push 0x808080
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
jmp 0x504f8f
push dword [0x6340cc]
push ebx
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push dword ds:[edi]
call sym.SystemInformer.exe_PhGetWindowDpi
push 0
push 0
push 0x31
push dword [edi]
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x2c], 0xffffffff
je 0x505104
push 0
push 0
push 0x431
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x505068
mov esi, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [esi + 0x40]
mov ecx, esi
push eax
call dword [0x5a28f0]
call esi
test byte [esp + 0x31], 0x40
je 0x505022
push dword [esp + 0x14]
push 0x2d
call sym.SystemInformer.exe_PhGetSystemMetrics
add dword ds:[ebx], eax
mov esi, dword [ebx]
jmp 0x505034
mov eax, dword [edi + 0x1c]
sub eax, dword [ebx]
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebx]
mov eax, dword [edi + 0x20]
sub eax, dword [edi + 0x18]
sub eax, dword [esp + 0xc]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [edi + 0x18]
cmp dword [esp + 0x18], 0
sete al
movzx eax, al
push eax
push 0
push edx
push esi
push dword [edi + 0x10]
push dword [esp + 0x40]
push dword [esp + 0x34]
call sym.SystemInformer.exe_PhImageListDrawIcon
test byte [esp + 0x31], 0x40
je 0x5050e8
mov eax, dword ds:[ebx]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x4c], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.00580ff0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push dword [edi + 0x24]
push 0x44b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
add dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0x100025
push eax
lea eax, [esp + 0x58]
push eax
call sym.SystemInformer.exe_PhCountStringZ
push eax
lea eax, [esp + 0x5c]
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 + 0x250]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x25c]
mov eax, 0x30
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 4