Function at 0x472c70
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, ecx
push edi
and ebx, 0xffff
mov eax, dword [esi + 0x5d8]
push 1
push ebx
push 0x403
push eax
mov dword [esp + 0x2c], ebx
call ebp
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [esi + 0x5d8]
push 0
push ebx
push 0x419
push ecx
mov dword [esp + 0x60], eax
call ebp
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esi + 0x5d8]
push 0x41d
push eax
call ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x5d8]
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0x28]
push 0xc80
push edx
call fcn.0048eb30
lea eax, [esp + 0x2c]
push 0xc81
push eax
call fcn.0048eb30
lea ecx, [esp + 0x3c]
push 0x49552
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
mov eax, str.__zip_cab_.._
add esp, 0x18
mov dword [esp + 0x10], edx
test eax, eax
je 0x472d74
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x472d74
push edi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x472d74
mov ecx, dword [esp + 0x10]
inc edi
push edi
push str.__zip_cab_.._
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
lea edx, [esp + 0x18]
push 0x16b4d
push edx
call fcn.0048eb30
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [ecx - 8]
push ecx
push edx
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x24]
call fcn.004017b0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x472def
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472def
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x472e1e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472e1e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0xb3ee
push 0
push ecx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
push edx
push 0xb3ef
push 0
push eax
call edi
mov ecx, dword [esi + 0x3e0]
mov edx, dword [esp + 0x50]
neg ecx
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
sbb ecx, ecx
and ecx, 8
push ecx
push 0xb3ee
push edx
call edi
mov eax, dword [esi + 0x358]
mov ecx, dword [esp + 0x50]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x84df
push ecx
call edi
mov edx, dword [esi + 0x468]
mov eax, dword [esp + 0x50]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0xb3ef
push eax
call edi
mov ecx, dword [esi + 0x4f0]
mov edx, dword [esp + 0x50]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0xb3f0
push edx
call edi
mov edi, dword [0x4eacec]
test edi, edi
je 0x472f3d
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x472f33
mov dl, byte [edi + 0x80]
mov al, byte [edi + 0x81]
or dl, 0x10
test al, 2
mov byte [edi + 0x80], dl
je 0x472f08
mov cl, al
and al, 0xfb
shr cl, 2
and cl, 4
or cl, al
mov byte [edi + 0x81], cl
mov edx, dword [esp + 0x18]
push 0
push ebx
push ebp
push 0x102
push edx
mov ecx, edi
call fcn.004311d0
test eax, eax
je 0x472f33
push 0
push eax
mov eax, dword [esi + 4]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x5d8]
push 0
push ebx
push 0x403
push ecx
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4d9544]
pop edi
pop esi
lea edx, [eax - 0xc]
pop ebp
cmp edx, ecx
pop ebx
je 0x472f81
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x472f81
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004014c0
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x472fad
lea ecx, [esp + 0x40]
call fcn.0040e7f0
xor eax, eax
add esp, 0x38
ret 0x10