Function at 0x4a6dd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [0x55e094]
sub esp, 0x58
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x4a6def
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
mov ebx, dword [esp + 0x6c]
mov dword [0x55e094], 1
mov eax, dword [ebp + 0xe4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add eax, 0x22c
xor esi, esi
push esi
push ebx
mov eax, dword [eax]
push 0x419
push eax
call edi
mov edx, dword [ebp + 0xe4]
lea ecx, [esp + 0x44]
push ecx
push eax
mov eax, dword [edx + 0x22c]
push 0x41d
push eax
call edi
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 0xe4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
push 1
mov ecx, dword [eax + 0x22c]
push ebx
push 0x403
push ecx
call edi
mov eax, dword [ebp + 0xe4]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax + 0x22c]
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 0x20], esi
call ebx
mov ecx, dword [0x55b2a8]
xor edx, edx
cmp ecx, 2
mov ecx, dword [ebp + 0xe4]
sete dl
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov edx, dword [ecx + 0x50]
lea ecx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.004e9db0
mov edx, dword [esp + 0x2c]
add esp, 0xc
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push 0x800
push edx
call esi
lea eax, [esp + 0x2c]
push 0x15f94
push eax
call fcn.004bb940
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
add esp, 8
push eax
push 0xb253
push 0
push ecx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6f21
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6f21
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0x800
push ecx
call esi
call ebx
lea edx, [esp + 0x2c]
push 0x15f95
push edx
mov dword [esp + 0x24], eax
call fcn.004bd990
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
add esp, 8
push eax
mov eax, dword [esp + 0x20]
push eax
push 0x10
push ecx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6f89
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6f89
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x2c]
push 0x15f92
push ecx
call fcn.004bb940
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
add esp, 8
push eax
push 0x2b6a
push 0
push edx
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6fdb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6fdb
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, ebp
mov ebx, 1
call fcn.004a2500
test eax, eax
mov dword [esp + 0x28], eax
je 0x4a7009
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x1c4]
push ecx
push eax
lea ecx, [ebp + 0x20]
call fcn.00509350
test al, al
je 0x4a7009
xor ebx, ebx
lea edx, [esp + 0x2c]
push 0x15f93
push edx
call fcn.004bb940
mov eax, dword [eax]
add esp, 8
push eax
mov eax, dword [esp + 0x20]
push 0x84f6
push ebx
push eax
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a705a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a705a
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a7121
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
jne 0x4a7075
mov ebx, 1
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0x800
push eax
call esi
lea ecx, [esp + 0x2c]
push 0x10
push ecx
call fcn.004bd990
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
add esp, 8
push eax
push 0x2b68
push ebx
push edx
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a70d3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a70d3
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea eax, [esp + 0x2c]
push 0x11
push eax
call fcn.004bd990
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
add esp, 8
push eax
push 0x2b69
push ebx
push ecx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7121
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7121
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a7130
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xe4]
mov eax, dword [esp + 0x30]
push 0x12a
mov ecx, dword [ecx + 0x50]
push edx
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.0052bba0
test eax, eax
jne 0x4a71b1
mov ecx, dword [ebp + 0xe4]
push eax
mov eax, dword [esp + 0x70]
mov edx, dword [ecx + 0x22c]
push eax
push 0x403
push edx
call edi
mov eax, dword [esp + 0x1c]
mov dword [0x55e094], 0
test eax, eax
je 0x4a718b
lea ecx, [esp + 0x1c]
call fcn.00447300
lea ecx, [esp + 0x38]
call fcn.004aec80
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a71a5
lea ecx, [esp + 0x20]
call fcn.00447300
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
cmp eax, 0x2b68
jne 0x4a71cf
mov eax, dword [ebp + 0x38]
push 0
push 0x701e
push 0x111
push eax
call edi
jmp 0x4a76c9
cmp eax, 0x2b69
jne 0x4a71ed
mov ecx, dword [ebp + 0x38]
push 0
push 0x701f
push 0x111
push ecx
call edi
jmp 0x4a76c9
cmp eax, 0xb253
jne 0x4a720a
mov edx, dword [0x55bbe8]
push 0
push eax
push 0x111
push edx
call edi
jmp 0x4a76c9
cmp eax, 0x2b6a
jne 0x4a7225
mov eax, dword [ebp + 4]
lea ecx, [ebp + 0x1d0]
push eax
call fcn.00511840
jmp 0x4a76c9
cmp eax, 0x84f6
jne 0x4a7238
mov ecx, ebp
call fcn.004a7930
jmp 0x4a76c9
cmp eax, 0x898
jl 0x4a76c9
mov esi, dword [esp + 0x40]
xor ecx, ecx
test esi, esi
jle 0x4a76c9
mov edx, dword [esp + 0x38]
cmp dword [edx], eax
je 0x4a7266
inc ecx
add edx, 4
cmp ecx, esi
jl 0x4a7255
jmp 0x4a76c9
cmp ecx, 0xffffffff
je 0x4a76c9
mov edx, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edx + ecx*4]
mov esi, dword [eax - 0xc]
test esi, esi
jl 0x4a7295
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4a72b7
mov eax, dword [0x547570]
mov dword [esp + 0x18], eax
mov esi, dword [edx + ecx*4]
test esi, esi
jne 0x4a72a9
xor eax, eax
jmp 0x4a72ac
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00405870
mov eax, dword [esp + 0x18]
mov ecx, dword [0x547570]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov esi, dword [eax - 0xc]
lea edx, [eax - 0xc]
test esi, esi
jl 0x4a72dc
push edx
mov dword [esp + 0x18], eax
call ebx
jmp 0x4a72f4
test eax, eax
mov dword [esp + 0x14], ecx
mov esi, eax
je 0x4a72e9
push eax
call edi
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00405870
push 0
push 0x547824
lea ecx, [esp + 0x1c]
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7636
test esi, esi
jge 0x4a7317
xor eax, eax
jmp 0x4a7324
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp esi, ecx
jle 0x4a7324
mov eax, ecx
mov edx, dword [0x547570]
push 0
push 0
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x3c], edx
call fcn.00412500
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a73aa
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a7378
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a737f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a738f
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4a73a6
lea ecx, [esp + 0x18]
call fcn.004124c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a73d9
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a73df
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4a73df
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x14]
lea eax, [esi + 1]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub edx, eax
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004135a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a744d
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a741b
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a7422
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a7432
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4a7449
lea ecx, [esp + 0x10]
call fcn.004124c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7474
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7474
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push 0
push 0x547824
lea ecx, [esp + 0x18]
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7636
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x4a74e1
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4a74af
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4a74b6
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4a74c6
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x4a74dd
lea ecx, [esp + 0x14]
call fcn.004124c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 8]
lea eax, [esi + 1]
sub edx, eax
lea ecx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004135a0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a754b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a7519
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a7520
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a7530
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405870
jmp 0x4a7547
lea ecx, [esp + 0x24]
call fcn.004124c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7572
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7572
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
test esi, esi
mov eax, esi
jge 0x4a757c
xor eax, eax
jmp 0x4a7589
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp esi, ecx
jle 0x4a7589
mov eax, ecx
mov edx, dword [0x547570]
push 0
push 0
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x3c], edx
call fcn.00412500
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a760f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a75dd
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a75e4
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a75f4
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4a760b
lea ecx, [esp + 0x10]
call fcn.004124c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call ebx
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7636
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7636
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004a7720
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
call fcn.00412800
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00412800
lea edx, [esp + 0x24]
lea ecx, [esp + 0x60]
push edx
call fcn.00412800
push 0
lea eax, [esp + 0x58]
sub esp, 0x14
mov ecx, esp
push eax
call fcn.004a7750
mov ecx, ebp
call fcn.004a79b0
lea ecx, [esp + 0x64]
call fcn.00405700
lea ecx, [esp + 0x60]
call fcn.00405700
lea ecx, [esp + 0x5c]
call fcn.00405700
lea ecx, [esp + 0x58]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
mov ecx, dword [esp + 0x6c]
push 0
push ecx
mov ecx, dword [ebp + 0xe4]
add ecx, 0x22c
call fcn.00424740
lea ecx, [esp + 0x1c]
mov dword [0x55e094], 0
call fcn.00411b70
lea ecx, [esp + 0x38]
call fcn.004aec80
lea ecx, [esp + 0x20]
call fcn.00411b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 4