Function at 0x473e30
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, ecx
and esi, 0xffff
push 1
push esi
mov eax, dword [edi + 0x5d8]
push 0x403
push eax
mov dword [esp + 0x48], esi
call ebx
mov dword [esp + 0x5c], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [edi + 0x5d8]
push 0
push esi
push 0x419
push ecx
mov dword [esp + 0x6c], eax
call ebx
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [edi + 0x5d8]
push 0x41d
push eax
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x5d8]
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [0x4d9540]
mov eax, 0x4dd838
test eax, eax
mov dword [esp + 0x10], edx
je 0x473f04
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x473f04
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x473f04
mov ecx, dword [esp + 0x10]
inc esi
push esi
push 0x4dd838
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
lea edx, [esp + 0x30]
push 0xc1c
push edx
call fcn.0048eb30
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
mov dword [esp + 0x28], 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 + 0x30]
call fcn.004017b0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401200
lea ecx, [esp + 0x20]
call fcn.004014c0
lea edx, [esp + 0x34]
push 0xc1d
push edx
call fcn.0048eb30
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x24], ecx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004017b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.00401200
lea ecx, [esp + 0x24]
call fcn.004014c0
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x473fcf
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x473fd5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
jmp 0x473fd5
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x30]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474000
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x474000
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47402b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x47402b
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474056
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x474056
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9540]
mov ecx, 0x4dd838
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4740a2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4740a2
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4740a2
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x4dd838
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
lea eax, [esp + 0x34]
push 0xc1c
push eax
call fcn.0048eb30
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
mov dword [esp + 0x30], 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 + 0x38]
call fcn.004017b0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x28]
call fcn.004014c0
lea edx, [esp + 0x30]
push 0xc1e
push edx
call fcn.0048eb30
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x24], ecx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004017b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401200
lea ecx, [esp + 0x24]
call fcn.004014c0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474165
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x474165
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474190
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x474190
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x30]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4741bb
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4741bb
mov edx, dword [esp + 0x30]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4741e6
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4741e6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x1c]
push 0xcf0c
push eax
call fcn.0048eb30
add esp, 8
mov ecx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb3ba
call fcn.004723e0
lea ecx, [esp + 0x34]
push 0x19a
push ecx
mov esi, eax
call fcn.0048eb30
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
add esp, 8
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push 0x10
push edx
call esi
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47425a
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x47425a
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x5c]
push eax
mov ebx, eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push 0xb3b3
push ebx
call fcn.00468470
lea eax, [esp + 0x40]
push 0x19b
push eax
call fcn.0048eb30
mov eax, dword [eax]
mov ecx, dword [esp + 0x70]
add esp, 0x14
push eax
push 0xb3b4
push 0
push ecx
call esi
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4742c2
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4742c2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0x5c]
push 0
push 0
push 0x800
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
push edx
push 0x8060
push 0
push eax
call esi
lea ecx, [esp + 0x34]
push 0xb5
push ecx
call fcn.0048cba0
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
add esp, 8
push eax
push 0x8015
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474333
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x474333
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push eax
push 2
push 0x800
push ecx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
push edx
push 2
push 0x800
push eax
call esi
lea ecx, [esp + 0x34]
push 0x3f2
push ecx
call fcn.0048eb30
mov eax, dword [eax]
mov edx, dword [esp + 0x64]
add esp, 8
push eax
push 0x8493
push 0
push edx
call esi
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4743a7
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4743a7
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 0x34]
push 0x3f3
push eax
call fcn.0048eb30
mov eax, dword [eax]
mov ecx, dword [esp + 0x64]
add esp, 8
push eax
push 0x8492
push 0
push ecx
call esi
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4743f5
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4743f5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea ebp, [edi + 4]
push 0
push 0
push 0x101f
push ecx
call ebx
push 0
push 0
push 0x1200
push eax
call ebx
mov edx, dword [0x4d9540]
push eax
lea eax, [esp + 0x18]
push 0x4dd82c
push eax
mov dword [esp + 0x20], edx
call fcn.00401a70
mov ecx, dword [0x4d9540]
mov edx, 0x4db064
add esp, 0xc
mov dword [esp + 0x10], ecx
test edx, edx
je 0x474483
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x474483
push ebx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x474483
mov eax, dword [esp + 0x10]
inc ebx
push ebx
push 0x4db064
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
lea ecx, [esp + 0x30]
push 0x196
push ecx
call fcn.0048eb30
mov edx, dword [0x4d9540]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
mov dword [esp + 0x28], edx
mov edx, dword [eax - 8]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004017b0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
call fcn.00401200
lea ecx, [esp + 0x28]
call fcn.004014c0
mov ecx, dword [0x4d9540]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x30]
push eax
call fcn.004017b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401200
lea ecx, [esp + 0x24]
call fcn.004014c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
push edx
push 0x8063
push 0
push eax
call esi
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47454d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47454d
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x34]
call fcn.004014c0
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, dword [edi + 0x50]
mov ecx, dword [esp + 0x5c]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x8060
push ecx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x4eacec]
xor esi, esi
test ecx, ecx
je 0x4745ab
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push esi
push edx
mov edx, dword [esp + 0x64]
push eax
push 0x102
push edx
call fcn.00431c10
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x5d8]
push 0
push eax
push 0x403
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0x47466d
cmp esi, 1
jne 0x4745e7
mov ecx, edi
mov dword [edi + 0x2cc], 0
call fcn.004738f0
jmp 0x47466d
cmp esi, 2
jne 0x474621
lea edx, [esp + 0x38]
push 0xb8
push edx
call fcn.0048eb30
mov eax, dword [eax]
add esp, 8
mov ecx, ebp
push 0
push 0x4e3a28
push eax
call fcn.00438920
lea ecx, [esp + 0x38]
call fcn.004014c0
mov ecx, edi
call fcn.004738f0
jmp 0x47466d
cmp esi, 0x8060
jne 0x47465c
mov esi, dword [edi + 0x50]
xor eax, eax
test esi, esi
sete al
lea ecx, [edi + 0x2d0]
mov dword [edi + 0x50], eax
mov dword [ecx], eax
call fcn.0047a800
push 0x105
push 0
push 0
mov ecx, ebp
call fcn.004152c0
mov ecx, edi
call fcn.004738f0
jmp 0x47466d
mov eax, dword [ebp]
mov ecx, ebp
push eax
push esi
push 0x111
call fcn.0040d6c0
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x1c]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x2c]
call fcn.004014c0
lea ecx, [esp + 0x5c]
call fcn.0040e020
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0x10