Function at 0x4a88b0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4a8adb
cmp dword [esi + 0x90], 0
je 0x4a8adb
call fcn.00501825
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x28]
push edx
push 0
push 0x419
push eax
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x41a
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fd874
mov edi, eax
test edi, edi
je 0x4a8950
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.005039ae
mov ecx, dword [esi + 0x98]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
sub eax, ecx
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
test byte [esp + 0x10], 2
je 0x4a8a2c
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x68]
mov edi, ecx
sub edi, dword [esp + 0x2c]
cmp edx, edi
jge 0x4a898d
sub ecx, edx
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov edi, dword [esi + 0xc0]
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0xc4]
sub ecx, dword [esi + 0xc8]
add edi, ebx
mov ebx, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esi + 0xcc]
add edx, ebx
sub eax, ebx
sub eax, dword [esp + 0xc]
cmp ecx, dword [esi + 0x98]
jg 0x4a89cd
mov dword [esp + 0x10], ecx
jmp 0x4a89d7
mov ebx, dword [esi + 0x98]
mov dword [esp + 0x10], ebx
mov ebx, dword [esi + 0x9c]
cmp eax, ebx
mov dword [esp + 0xc], eax
jle 0x4a89e9
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
add esi, 0x8c
push ebx
mov ebx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
push ebx
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
push edi
push ecx
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov edx, dword [esi + 0x64]
mov ebx, ecx
sub ebx, edi
cmp edx, ebx
jge 0x4a8a47
sub ecx, edx
sub ecx, edi
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x2c]
mov edi, dword [esi + 0xc0]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0xc4]
add edx, dword [esp + 0x18]
add edi, ebx
add edi, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esi + 0xc8]
sub ecx, ebx
sub eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x98]
sub eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0xc], eax
jle 0x4a8a8f
mov dword [esp + 0xc], ebx
mov ebx, dword [esi + 0x9c]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
jle 0x4a8aa1
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
and bl, 0x65
add bl, 0xff
add esi, 0x8c
push ebx
mov ebx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push 0
push 0
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
push edi
push edx
call fcn.00407930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8