Function at 0x10050220
Capabilities:
Capture webcam image

Disassembly:
mov eax, 0x100e7104
call fcn.100c908c
sub esp, 0x70
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x84]
lea eax, [ebp - 0x15]
push eax
push esi
mov byte [ebp - 4], 1
mov byte [ebp - 0x15], bl
call fcn.1007943b
push ebx
lea ecx, [esi + 0x48]
push str.tbs_msearch_button
call fcn.1000506b
neg eax
sbb al, al
push ebx
inc al
push str.hide_marquee
lea ecx, [esi + 0x48]
mov byte [ebp - 0x13], al
call fcn.1000506b
test eax, eax
je 0x100502a0
push ebx
push str._MQ_
lea ecx, [esi + 0x50]
call fcn.1000506b
mov byte [ebp - 0x14], bl
test eax, eax
jl 0x100502a4
mov byte [ebp - 0x14], 1
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x28]
mov ecx, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and cl, 0x40
cmp cl, 0x40
sete byte [ebp - 0x17]
and al, 1
dec al
neg al
sbb al, al
inc al
push ebx
mov byte [ebp - 0x12], al
mov eax, dword [esi + 0xc]
push eax
push 0x419
push dword [ebp + 0xc]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call edi
lea ecx, [ebp - 0x5c]
push ecx
push eax
push 0x41d
push dword [ebp + 0xc]
call edi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
mov edi, 0x1010d92c
push edi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x100f45a0
mov byte [ebp - 4], 2
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.DescriptiveText
mov byte [ebp - 4], 3
call fcn.10009e15
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.10061f03
add esp, 0x10
push 0x100f45a0
mov ecx, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], 1
call fcn.10004959
cmp eax, ebx
jne 0x10050369
mov eax, dword [esi + 0x34]
cmp dword [eax - 0xc], ebx
mov byte [ebp - 0x11], 1
jg 0x1005036c
mov byte [ebp - 0x11], bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], ebx
call fcn.10003f60
cmp byte [ebp - 0x15], bl
jne 0x10050402
cmp byte [ebp - 0x11], bl
je 0x10050402
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x1010d9f4
mov byte [ebp - 4], 5
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.TextBelowImage
mov byte [ebp - 4], 6
call fcn.10009e15
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.10061f03
add esp, 0x10
push 0x100f45a0
mov ecx, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], 2
call fcn.10004959
cmp eax, ebx
jne 0x10050402
push str.right
lea ecx, [esi + 0xb0]
call fcn.10004959
mov byte [ebp + 0xf], 1
cmp eax, ebx
jne 0x10050405
mov byte [ebp + 0xf], bl
xor edi, edi
inc edi
test byte [ebp - 0x24], 2
mov dword [ebp - 4], edi
je 0x1005041c
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.10003f60
mov dword [ebp - 0x28], ebx
cmp byte [ebp + 0xf], bl
je 0x1005049d
push 0x101519f8
lea ecx, [ebp - 0x24]
call fcn.1007170f
mov eax, dword [esi + 0xb4]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x10050446
add eax, 0xe0
jmp 0x10050453
mov eax, dword [esi + 0xb8]
cmp eax, ebx
je 0x1005045c
add eax, 0x30
push eax
lea ecx, [ebp - 0x24]
call fcn.1000688b
push str.Single
lea ecx, [ebp - 0x24]
call fcn.10004959
cmp eax, ebx
jne 0x10050476
mov dword [ebp - 0x28], 7
jmp 0x1005048e
push str.Split
lea ecx, [ebp - 0x24]
call fcn.10004959
cmp eax, ebx
jne 0x1005048e
mov dword [ebp - 0x28], 0xd
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.10003f60
cmp byte [esi + 0x17c], bl
je 0x100505e5
cmp byte [ebp - 0x13], bl
je 0x10050539
lea eax, [esi + 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000548f
push str._combo_
push str._button_
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.10006657
mov ecx, dword [esi + 0x84]
lea eax, [ebp - 0x16]
push eax
push esi
mov byte [ebp - 0x16], bl
call fcn.1007943b
cmp byte [ebp - 0x16], bl
jne 0x1005052a
push ebx
push edi
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, dword [esi + 0x84]
add ecx, 0xf4
call fcn.1006951b
cmp eax, ebx
setne al
cmp al, bl
jne 0x1005052a
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10003f60
push 4
pop eax
jmp 0x1005088f
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.10003f60
cmp byte [ebp + 0xf], bl
je 0x1005055d
mov eax, dword [ebp - 0x54]
sub eax, dword [esi + 0x180]
sub eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x28]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x58]
sar edi, 1
add edi, dword [ebp - 0x5c]
inc eax
jmp 0x10050583
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
add edi, 3
call fcn.1004c36b
mov ecx, eax
mov eax, dword [esi + 0x184]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 4]
sar edx, 1
sub eax, edx
cmp byte [ebp - 0x14], bl
je 0x1005058b
sub edi, 3
cmp byte [ebp - 0x13], bl
je 0x10050596
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x12], bl
cmp byte [ebp - 0x12], bl
je 0x100505c0
mov ecx, dword [esi + 0x10c]
cmp ecx, ebx
jne 0x100505d5
mov ecx, dword [esi + 0xec]
push ebx
inc eax
push eax
inc edi
push edi
push dword [ebp - 0x1c]
push ebx
cmp ecx, ebx
jne 0x100505dc
mov ecx, dword [esi + 0xcc]
jmp 0x100505dc
cmp byte [ebp - 0x17], bl
je 0x100505cf
mov ecx, dword [esi + 0xec]
cmp ecx, ebx
jne 0x100505d5
mov ecx, dword [esi + 0xcc]
push ebx
push eax
push edi
push dword [ebp - 0x1c]
push ebx
push ecx
mov dword [ebp - 0x20], ecx
call fcn.1004c475
cmp byte [ebp - 0x11], bl
je 0x10050757
lea eax, [esi + 0x34]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jle 0x10050757
push ebx
push ebx
push ecx
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.1000548f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.1004ad5e
add esp, 0x14
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp + 8], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xa
call fcn.1000548f
lea eax, [ebp + 8]
push eax
call fcn.1008cb29
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.1000688b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.10003f60
mov eax, dword [esi + 0x84]
push dword [eax + 0xbc]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov edi, dword [eax - 0xc]
push ebx
lea ecx, [ebp - 0x24]
call fcn.100054ad
lea ecx, [ebp - 0x30]
push ecx
push edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
cmp dword [ebp - 0x20], ebx
je 0x1005071d
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x7c], ebx
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp - 0x20]
call fcn.1004c5d0
cmp byte [ebp - 0x12], bl
je 0x100506c7
cmp dword [esi + 0x10c], ebx
jne 0x100506c7
xor ecx, ecx
inc ecx
jmp 0x100506c9
xor ecx, ecx
cmp byte [ebp + 0xf], bl
je 0x100506f7
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x28]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
sar edi, 1
add edi, ecx
add edi, dword [ebp - 0x5c]
add eax, ecx
mov ecx, dword [ebp - 0x58]
lea esi, [eax + ecx + 2]
jmp 0x10050726
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x5c]
add eax, ecx
lea edi, [eax + edx + 6]
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x58]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ecx
add esi, dword [ebp - 0x58]
jmp 0x10050726
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x5c]
sub esi, dword [ebp - 0x2c]
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffffffffffffffff
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push esi
push edi
call fcn.1004c2d8
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10003f60
cmp byte [ebp - 0x13], bl
je 0x1005088d
push ecx
mov eax, esp
mov esi, 0xda
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], esp
mov dword [eax], esi
call fcn.1004c439
lea eax, [ebp - 0x74]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0xffffff
push 1
push 0xb
push ecx
mov eax, esp
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], esp
mov dword [eax], esi
call fcn.1004c738
mov esi, dword [ebp - 0x54]
sub esi, dword [ebp - 0x70]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x5c]
call fcn.1004c36b
mov ecx, eax
mov eax, dword [ebp - 0x6c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 4]
sar edx, 1
sub eax, edx
cmp byte [ebp - 0x14], bl
je 0x100507ce
sub esi, 3
push ebx
push eax
push esi
push dword [ebp - 0x1c]
push ebx
push dword [ebp + 8]
call fcn.1004c475
lea ecx, [ebp + 8]
call fcn.1000535c
cmp dword [ebp + 0xc], ebx
je 0x10050522
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10050522
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8