Function at 0x472df0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x24
mov al, byte [0x55a00c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
test al, 1
mov dword [esp + 0x10], esi
jne 0x472e28
mov dl, al
mov eax, dword [0x546560]
or dl, 1
push 0x473120
mov byte [0x55a00c], dl
mov dword [0x55a008], eax
call fcn.00532359
add esp, 4
mov eax, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x472ec7
mov edi, dword [0x55a008]
cmp eax, edi
je 0x472f16
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x472e5f
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x472e66
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x472eab
mov ebx, dword [edi - 8]
lea ecx, [esp + 0x38]
push ebx
call fcn.00405660
test eax, eax
je 0x472ec3
lea eax, [ebx + ebx]
mov esi, edi
mov edi, dword [esp + 0x38]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x38]
mov word [eax + edx], 0
mov eax, dword [esp + 0x38]
jmp 0x472ec7
lea ecx, [esp + 0x38]
call fcn.00412670
mov eax, dword [0x55a008]
mov dword [esp + 0x38], eax
add eax, 0xfffffff4
push eax
call ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [0x55a008]
cmp ecx, eax
je 0x472f16
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x472ee5
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x472eec
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x472efd
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, 0x55a008
call fcn.00405870
jmp 0x472f16
mov ecx, 0x55a008
call fcn.00412670
mov eax, dword [esp + 0x38]
mov dword [0x55a008], eax
add eax, 0xfffffff4
push eax
call ebp
mov ecx, dword [esi + 0x498c]
push 0
push 0x8496
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x472f6f
mov eax, dword [esp + 0x38]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x472f63
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472f63
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0xc
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x18], 0x4a
mov ecx, 0xff
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x472fa5
cmp dword [eax - 4], ecx
jge 0x472fea
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x472fae
mov ecx, ebp
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405530
test eax, eax
je 0x472fea
mov edi, dword [esp + 0x38]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [0x54a310]
test eax, eax
mov word [esp + 0x26], 0x5a
mov byte [esp + 0x25], 0x80
jne 0x473036
mov ecx, 0x553d98
test ecx, ecx
jne 0x473010
xor eax, eax
jmp 0x47301b
push 0x553d98
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x553d98
push eax
lea ecx, [esp + 0x40]
call fcn.00405870
mov word [esp + 0x26], 0
mov byte [esp + 0x25], 0x90
mov ecx, dword [esi + 0x498c]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], edx
push eax
push 0x8496
push 0x440
push ecx
mov dword [esp + 0x28], 0x4a
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4730a0
push 1
mov ecx, esi
call fcn.00472c10
mov eax, dword [esp + 0x38]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47310a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47310a
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
jmp 0x473102
mov ecx, dword [0x54a32c]
mov eax, dword [0x54a310]
cmp ecx, eax
je 0x4730db
lea edx, [esi + 0x890]
test edx, edx
je 0x4730c1
lea eax, [esi + 0x894]
jmp 0x4730c3
xor eax, eax
cmp dword [eax], 0
je 0x4730db
push 1
mov ecx, esi
call fcn.00472c10
mov eax, dword [0x54a310]
mov dword [0x54a32c], eax
mov eax, dword [esp + 0x38]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47310a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47310a
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0xc