Function at 0x4a5e80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [0x55cfdc]
sub esp, 0x58
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x4a5e9f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
mov ebx, dword [esp + 0x6c]
mov dword [0x55cfdc], 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 [0x55a208]
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.004e91f0
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.004ba880
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a5fd1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a5fd1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00531732
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.004bc8d0
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6039
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6039
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x2c]
push 0x15f92
push ecx
call fcn.004ba880
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a608b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a608b
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, ebp
mov ebx, 1
call fcn.004a15b0
test eax, eax
mov dword [esp + 0x28], eax
je 0x4a60b9
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 0x1c4]
push ecx
push eax
lea ecx, [ebp + 0x20]
call fcn.005087f0
test al, al
je 0x4a60b9
xor ebx, ebx
lea edx, [esp + 0x2c]
push 0x15f93
push edx
call fcn.004ba880
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a610a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a610a
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a61d1
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
jne 0x4a6125
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.004bc8d0
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6183
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6183
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea eax, [esp + 0x2c]
push 0x11
push eax
call fcn.004bc8d0
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a61d1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a61d1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a61e0
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.0052b0d0
test eax, eax
jne 0x4a6261
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 [0x55cfdc], 0
test eax, eax
je 0x4a623b
lea ecx, [esp + 0x1c]
call fcn.00447180
lea ecx, [esp + 0x38]
call fcn.004add10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a6255
lea ecx, [esp + 0x20]
call fcn.00447180
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
cmp eax, 0x2b68
jne 0x4a627f
mov eax, dword [ebp + 0x38]
push 0
push 0x701e
push 0x111
push eax
call edi
jmp 0x4a6779
cmp eax, 0x2b69
jne 0x4a629d
mov ecx, dword [ebp + 0x38]
push 0
push 0x701f
push 0x111
push ecx
call edi
jmp 0x4a6779
cmp eax, 0xb253
jne 0x4a62ba
mov edx, dword [0x55ab48]
push 0
push eax
push 0x111
push edx
call edi
jmp 0x4a6779
cmp eax, 0x2b6a
jne 0x4a62d5
mov eax, dword [ebp + 4]
lea ecx, [ebp + 0x1d0]
push eax
call fcn.00510f40
jmp 0x4a6779
cmp eax, 0x84f6
jne 0x4a62e8
mov ecx, ebp
call fcn.004a69e0
jmp 0x4a6779
cmp eax, 0x898
jl 0x4a6779
mov esi, dword [esp + 0x40]
xor ecx, ecx
test esi, esi
jle 0x4a6779
mov edx, dword [esp + 0x38]
cmp dword [edx], eax
je 0x4a6316
inc ecx
add edx, 4
cmp ecx, esi
jl 0x4a6305
jmp 0x4a6779
cmp ecx, 0xffffffff
je 0x4a6779
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 0x4a6345
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call ebx
jmp 0x4a6367
mov eax, dword [0x546560]
mov dword [esp + 0x18], eax
mov esi, dword [edx + ecx*4]
test esi, esi
jne 0x4a6359
xor eax, eax
jmp 0x4a635c
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00405870
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546560]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov esi, dword [eax - 0xc]
lea edx, [eax - 0xc]
test esi, esi
jl 0x4a638c
push edx
mov dword [esp + 0x18], eax
call ebx
jmp 0x4a63a4
test eax, eax
mov dword [esp + 0x14], ecx
mov esi, eax
je 0x4a6399
push eax
call edi
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00405870
push 0
push 0x546814
lea ecx, [esp + 0x1c]
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
je 0x4a66e6
test esi, esi
jge 0x4a63c7
xor eax, eax
jmp 0x4a63d4
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp esi, ecx
jle 0x4a63d4
mov eax, ecx
mov edx, dword [0x546560]
push 0
push 0
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x3c], edx
call fcn.004126b0
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 0x4a645a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a6428
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a642f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a643f
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x4a6456
lea ecx, [esp + 0x18]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6489
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a648f
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4a648f
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.00413750
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a64fd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a64cb
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a64d2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a64e2
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4a64f9
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6524
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a6524
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
push 0
push 0x546814
lea ecx, [esp + 0x18]
call fcn.00405c70
mov esi, eax
cmp esi, 0xffffffff
je 0x4a66e6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x4a6591
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4a655f
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4a6566
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4a6576
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405870
jmp 0x4a658d
lea ecx, [esp + 0x14]
call fcn.00412670
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.00413750
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x4a65fb
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a65c9
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a65d0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a65e0
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405870
jmp 0x4a65f7
lea ecx, [esp + 0x24]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6622
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a6622
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
test esi, esi
mov eax, esi
jge 0x4a662c
xor eax, eax
jmp 0x4a6639
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp esi, ecx
jle 0x4a6639
mov eax, ecx
mov edx, dword [0x546560]
push 0
push 0
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x3c], edx
call fcn.004126b0
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 0x4a66bf
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a668d
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a6694
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a66a4
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4a66bb
lea ecx, [esp + 0x10]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a66e6
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a66e6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004a67d0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
call fcn.004129b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004129b0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x60]
push edx
call fcn.004129b0
push 0
lea eax, [esp + 0x58]
sub esp, 0x14
mov ecx, esp
push eax
call fcn.004a6800
mov ecx, ebp
call fcn.004a6a60
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.00424870
lea ecx, [esp + 0x1c]
mov dword [0x55cfdc], 0
call fcn.00411d20
lea ecx, [esp + 0x38]
call fcn.004add10
lea ecx, [esp + 0x20]
call fcn.00411d20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 4