Function at 0x5c5040
Capabilities:
Capture webcam image

Disassembly:
push 0xffffffffffffffff
push 0x70d2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, ecx
push 0x30
lea eax, [esp + 0x48]
push 0
push eax
call fcn.0054b920
mov esi, dword [esp + 0x90]
mov ebx, 1
add esp, 0xc
mov dword [esp + 0x44], 0x28
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
call fcn.005b07b0
cmp eax, 0x1d6
jl 0x5c50aa
or dword [esp + 0x48], 0x100
mov ecx, dword [edi + 8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
lea esi, [edi + 8]
mov dword [esp + 0x68], ecx
call fcn.005c4db0
test eax, eax
je 0x5c52d3
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x44]
push edx
push 0
push 0x432
push eax
call edi
test eax, eax
je 0x5c52d3
push 0
push 0xa
mov ecx, esi
call fcn.005fc3d0
cmp eax, 0xffffffff
je 0x5c52e3
call fcn.005b07b0
cmp eax, 0x1d6
jl 0x5c529f
call fcn.005c4db0
test eax, eax
je 0x5c5122
push 0
push 0
push 0x31
push eax
call edi
mov edi, eax
test edi, edi
jne 0x5c512c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
mov dword [esp + 0x1c], ebp
push edi
push ebp
mov dword [esp + 0x84], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x77132c]
push ecx
xor edi, edi
push edi
push 0x7b9064
lea ecx, [esp + 0x20]
call fcn.005fc220
push edi
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], bl
call fcn.006197b0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x7c], 3
je 0x5c519c
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5c519c
call fcn.005fb120
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
call fcn.00619670
mov eax, dword [esp + 0x84]
cmp dword [eax - 8], 0
mov bl, 4
mov byte [esp + 0x7c], bl
je 0x5c522c
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [eax - 8]
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push ebp
call esi
mov eax, dword [esp + 0x20]
cmp eax, edi
jle 0x5c51dd
mov edi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00619670
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 5
call fcn.005fbb30
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x7c], bl
je 0x5c521f
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5c521f
call fcn.005fb120
mov eax, dword [esp + 0x84]
cmp dword [eax - 8], 0
jne 0x5c51c6
call fcn.005c4db0
test eax, eax
je 0x5c5247
push 0
push 0
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x5c5249
xor eax, eax
cmp edi, eax
jle 0x5c5265
call fcn.005c4db0
test eax, eax
je 0x5c5265
push edi
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x7c], 3
je 0x5c5288
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x5c5288
call fcn.005fb120
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 0
call fcn.005804c0
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x5c52e3
push ebx
push 0x7b70a0
push 0x7b9064
mov ecx, esi
call fcn.005fd570
mov ecx, dword [esi]
mov dword [esp + 0x68], ecx
call fcn.005c4db0
test eax, eax
je 0x5c52d3
lea edx, [esp + 0x44]
push edx
push 0
push 0x432
push eax
call edi
test eax, eax
jne 0x5c52e3
mov eax, dword [esi]
push eax
push str.Failed_to_create_the_tooltip__s
call fcn.0040808f
add esp, 8
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4