Function at 0x5075a0
Capabilities:
Capture webcam image
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x278
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], edi
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x50796b
sub eax, 0x10000
jne 0x507950
push 1
push dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x3c], 0x2d
movups xmmword [esp + 0x40], xmm0
movq qword [esp + 0x50], xmm0
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push dword [edi + 0x24]
mov dword [esp + 0x24], 0
push 0x419
push dword [edi]
mov dword [esp + 0x28], 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 [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
push dword [edi + 0x24]
push 0x43f
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
nop
cmp eax, 0xffffffff
je 0x507950
mov al, byte ds:[esp + 0x41]
mov ecx, dword [edi + 0x10]
shr al, 7
push 0xffffff
mov byte [esp + 0x16], al
push ecx
cmp dword [esp + 0x1c], esi
jne 0x5076e8
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x808080
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, dword [0x6357b0]
test ecx, ecx
jne 0x5076d4
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, eax
mov dword [0x6357b0], ecx
lea eax, [edi + 0x14]
push ecx
push eax
push dword [edi + 0x10]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x50773c
mov al, byte [esp + 0x48]
and al, 2
mov byte [esp + 0x1b], al
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp byte [esp + 0x13], 0
lea esi, [edi + 0x14]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], esi
jne 0x507719
push dword [0x633bac]
push esi
push eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x50773c
push 0x606060
push eax
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call sym.SystemInformer.exe_Ordinal_2039
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x14], esi
push dword ds:[edi]
call sym.SystemInformer.exe_Ordinal_1669
push 0
push 0
push 0x31
push dword [edi]
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x3c], 0xffffffff
je 0x507950
push 0
push 0
push 0x431
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5078b8
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, dword [esi + 0x40]
mov ecx, esi
push eax
call dword [0x5a9914]
call esi
test byte [esp + 0x41], 0x40
je 0x5077c8
push dword [esp + 0x20]
push 0x2d
call sym.SystemInformer.exe_Ordinal_1665
mov ecx, dword [esp + 0x14]
add dword [ecx], eax
mov esi, dword [ecx]
jmp 0x5077ec
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x1c]
movzx ecx, byte [esp + 0x12]
shl ecx, 2
sub eax, dword [esi]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
sub eax, ecx
add eax, dword [esi]
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword ds:[edi + 0x20]
sub eax, dword [edi + 0x18]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [edi + 0x18]
cmp dword [esp + 0x28], 0
sete al
movzx eax, al
push eax
push 0
push edx
push esi
push dword [edi + 0x10]
push dword [esp + 0x50]
push dword [esp + 0x44]
call sym.SystemInformer.exe_Ordinal_1845
cmp byte [esp + 0x12], 0
je 0x5078b8
mov ecx, dword [esp + 0x24]
mov edi, dword [edi + 0x10]
push 0xdedede
push edi
mov eax, dword [ecx + 0x20]
sub eax, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
cdq
sub esi, 0xb
sub eax, edx
mov dword [esp + 0x58], esi
sar eax, 1
sub eax, 2
lea ecx, [esi + 6]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea ecx, [esi + 3]
mov dword [esp + 0x64], eax
add eax, 3
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SetDCPenColor]
push 0xdedede
push edi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x13
call sym.SystemInformer.exe_Ordinal_2039
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x12
call sym.SystemInformer.exe_Ordinal_2039
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 3
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.GDI32.dll_Polygon]
mov edi, dword [esp + 0x24]
test byte [esp + 0x41], 0x40
je 0x507935
mov eax, dword ds:[esp + 0x14]
push 0x206
movups xmm0, xmmword [eax]
xor eax, eax
push eax
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push eax
movups xmmword [esp + 0x5c], xmm0
call fcn.005861b0
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push dword [edi + 0x24]
push 0x44b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, byte [esp + 0x12]
push 0x100025
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x20]
shl ecx, 2
sub eax, ecx
add dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x78]
push eax
call sym.SystemInformer.exe_Ordinal_1322
push eax
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword ds:[esp + 0x27c]
mov eax, 0x30
pop edi
pop esi
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 4