Function at 0x407797
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x224
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x7d1
push ecx
call dword [sym.imp.user32.dll_GetDlgItem]
cmp eax, edi
je 0x407d29
mov dword [ebp - 0x10], esi
movzx esi, bx
cmp esi, 0x63f
jg 0x4073ab
lea ecx, [esi - 0x3e8]
cmp ecx, 0x1f7
ja case.0x40730b.1009
jmp dword [ecx*4 + 0x40c990]
add ebx, 0xfffffade
mov dword [ebp - 0x230], 0xbc
mov dword [ebp - 0x22c], 0x20
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x43d
mov edi, eax
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x22c], 0x8000e024
movzx ecx, word [ebp - 0x228]
test cx, cx
je 0x4074f0
cmp esi, 0x522
je 0x407370
xor eax, eax
cmp cx, bx
jne 0x4074f5
mov word [ebp - 0x228], 0
mov dword [ebp - 0x180], 0
mov word [ebp - 0x17c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0xfffffe98
lea eax, [ebp - 0x230]
jmp 0x40758d
lea ecx, [esi - 0x640]
cmp ecx, 4
ja case.default.0x4073ba
jmp dword [ecx*4 + 0x40d170]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0
push dbg._datetime_proc@16
push dword [ebp - 0x10]
push 0x834
jmp 0x407d12
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_GetMenu]
mov dword [ebp - 0x230], 0x30
mov dword [ebp - 0x22c], 0x20
lea ecx, [ebp - 0x230]
push ecx
push 0
push esi
push eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x407d29
mov ecx, dword [ebp - 0x210]
call dbg.DoOpenFile
jmp 0x407d29
mov dword [ebp - 0x230], 0xbc
mov dword [ebp - 0x22c], 8
lea ecx, [ebx - 0x44c]
cmp cx, 2
ja 0x407455
movzx ecx, cx
movzx ecx, word [ecx + ecx + 0x40d4fc]
mov word [ebp - 0x218], cx
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x447
jmp 0x407d22
xorps xmm0, xmm0
movups xmmword [ebp - 0x1cc], xmm0
movups xmmword [ebp - 0x1dc], xmm0
movups xmmword [ebp - 0x1ec], xmm0
movups xmmword [ebp - 0x1fc], xmm0
movups xmmword [ebp - 0x20c], xmm0
movups xmmword [ebp - 0x21c], xmm0
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x230], 0x74
lea edi, [ebp - 0x230]
push edi
push 1
push 0x43a
mov ebx, eax
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x22c], 1
cmp esi, 0x579
je 0x407a22
mov ecx, 1
cmp esi, 0x57a
mov eax, ebx
jne 0x407a2f
mov ecx, 4
jmp 0x407a29
mov eax, 0x168
mov dword [ebp - 0x224], eax
cmp esi, 0x522
jne 0x40755b
movzx ebx, word [0x41925c]
jmp 0x407563
cmp esi, 0x7dd
je 0x407ca8
cmp esi, 0x7de
jne case.0x40730b.1009
and ebx, 0xffff0000
cmp ebx, 0x90000
jne 0x407d29
lea esi, [ebp - 0x230]
mov ecx, edi
mov edx, esi
push 0x100
call dbg.get_comboexlist_selection
add esp, 4
mov ecx, edi
mov edx, esi
call dbg.on_sizelist_modified
jmp 0x407d29
movzx eax, bx
mov dword [0x41925c], eax
lea eax, [ebp - 0x230]
mov word [ebp - 0x228], bx
mov dword [ebp - 0x180], 0x2000001
mov word [ebp - 0x17c], 0x168
mov dword [ebp - 0x21c], 0x168
push eax
push 0
push 0x447
push edi
jmp 0x407d23
xorps xmm0, xmm0
movups xmmword [ebp - 0x1cc], xmm0
movups xmmword [ebp - 0x1d8], xmm0
movups xmmword [ebp - 0x1e8], xmm0
movups xmmword [ebp - 0x1f8], xmm0
movups xmmword [ebp - 0x208], xmm0
movups xmmword [ebp - 0x218], xmm0
movups xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x230], 0x74
mov dword [ebp - 0x22c], 0
xor ecx, ecx
cmp esi, 0x518
sete cl
lea edx, [ebp - 0x230]
push edx
push ecx
push 0x43a
jmp 0x407d22
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
xor ecx, ecx
test byte [eax*4 + 0x419f70], 2
sete cl
call sym._set_statusbar_state
jmp 0x407c66
push 0
push 0
push 0x301
jmp 0x407c7e
push 0
push 0
push 0xc7
jmp 0x407d22
push 0
push 1
jmp 0x407a88
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edx, dword [eax*4 + 0x419f70]
not edx
and edx, 1
xor ecx, ecx
jmp 0x407c61
push 0
push 0
push 0x302
jmp 0x407c7e
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
mov edi, eax
mov esi, dword [eax*4 + 0x419f70]
mov dword [eax*4 + 0x419f70], 2
call dbg.set_bar_states
mov dword [edi*4 + 0x419f70], esi
push 0
push dword [0x419f78]
call dword [sym.imp.user32.dll_ShowWindow]
push 0x41b3c0
mov esi, dword [ebp - 0x10]
push esi
call dbg.init_preview
add esp, 8
push 0
push esi
call dword [sym.imp.user32.dll_SetMenu]
push 1
push 0
push 0
call dword [sym.imp.user32.dll_InvalidateRect]
jmp 0x407d29
push 0x41b3c0
push dword [ebp - 0x10]
call dbg.dialog_print
jmp 0x407a52
push eax
mov ebx, eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov esi, eax
inc eax
mov dword [ebp - 0x30], eax
lea eax, [esi*2 + 2]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
push dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
push 0
push 0x40d2c2
push edi
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
push edi
call ebx
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0x44b
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0x40d2c2
push edi
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
push edi
call ebx
add esp, 4
jmp 0x407d29
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x7d4
mov ebx, dword [ebp - 0x10]
push ebx
call esi
push 0x7d3
push eax
call esi
mov edi, eax
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 0x57b
push 0x419
push eax
call esi
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 0x41d
push edi
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.user32.dll_ClientToScreen]
push 0
push dword [0x419f5c]
call dword [sym.imp.user32.dll_GetSubMenu]
push 0
push ebx
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x180
push eax
call dword [sym.imp.user32.dll_TrackPopupMenu]
mov esi, eax
add eax, 0xfffff8f8
cmp eax, 0x10
ja 0x407d29
xorps xmm0, xmm0
movups xmmword [ebp - 0x1cc], xmm0
movups xmmword [ebp - 0x1dc], xmm0
movups xmmword [ebp - 0x1ec], xmm0
movups xmmword [ebp - 0x1fc], xmm0
movups xmmword [ebp - 0x20c], xmm0
movups xmmword [ebp - 0x21c], xmm0
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x230], 0x74
lea edi, [ebp - 0x230]
push edi
push 1
push 0x43a
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x22c], 0x40000000
cmp esi, 0x717
ja 0x407d4b
mov eax, dword [esi*4 + 0x40b840]
mov dword [ebp - 0x21c], eax
and byte [ebp - 0x225], 0xbf
jmp 0x407d52
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0
push dbg._newfile_proc@16
push dword [ebp - 0x10]
push 0x835
push eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
cmp eax, 0x64
je 0x407d29
mov esi, eax
call dbg.prompt_save_changes
test eax, eax
je 0x407d29
xor ecx, ecx
call sym._set_caption
mov word [0x41b3c0], 0
call sym._clear_formatting
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0x4b0
lea eax, [ebp - 0x230]
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push eax
push 0x461
push dword [0x419f78]
call edi
push 0
push 0
push 0xb9
push dword [0x419f78]
call edi
mov ecx, esi
call sym._set_fileformat
call dbg.update_font_list
jmp 0x407d29
push 0
push 0
push 0x10
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_PostMessageW]
jmp 0x407d29
cmp word [0x41b3c0], 0
je case.0x40730b.1004
mov edx, dword [0x419258]
mov ecx, 0x41b3c0
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.DoSaveFile
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.DialogSaveFile
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.DialogOpenFile
push dword [ebp - 0x10]
call dbg.dialog_printsetup
add esp, 4
jmp 0x407a55
xorps xmm0, xmm0
movsd qword [ebp - 0x17c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x18c], xmm0
movups xmmword [ebp - 0x19c], xmm0
movups xmmword [ebp - 0x1ac], xmm0
movups xmmword [ebp - 0x1bc], xmm0
movups xmmword [ebp - 0x1cc], xmm0
movups xmmword [ebp - 0x1dc], xmm0
movups xmmword [ebp - 0x1ec], xmm0
movups xmmword [ebp - 0x1fc], xmm0
movups xmmword [ebp - 0x20c], xmm0
movups xmmword [ebp - 0x21c], xmm0
movups xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x230], 0xbc
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x43d
jmp 0x407d22
mov ecx, 2
mov eax, ebx
mov dword [ebp - 0x22c], ecx
xor dword [ebp - 0x228], ecx
push edi
push 1
push 0x444
jmp 0x407d22
push 0x41b3c0
push dword [0x419f58]
call dbg.print_quick
add esp, 8
mov esi, dword [0x419f58]
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
push dword [eax*4 + 0x419f60]
push esi
call dbg.target_device
add esp, 0x22c
jmp 0x407d2f
push 0xc0ffff
push 0
push 0x443
jmp 0x407d22
push 0
push 0
push 0xb8
mov esi, eax
push eax
call dword [sym.imp.user32.dll_SendMessageW]
test eax, eax
je 0x407d3f
push 0
push 0
jmp 0x407d43
xor ecx, ecx
jmp 0x407b26
push 0
push 0
push 0x454
jmp 0x407d22
mov ecx, global_findreplace
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.handle_findmsg
push 0xfffffffffffffff0
mov esi, eax
push eax
call dword [sym.imp.user32.dll_GetWindowLongW]
test eax, 0x800
jne 0x407d34
push 0
push 1
jmp 0x407d38
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xffffffff
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x437
jmp 0x407d22
mov ecx, 1
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.dialog_find
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0x2c]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push ecx
push 0
push 0x434
push eax
mov ebx, eax
call esi
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov edi, eax
push eax
push 0
push 0x43e
push ebx
call esi
lea esi, [ebp - 0x230]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.Start___ld__End___ld
push esi
call sym._sprintf
add esp, 0x10
push 0
push str.Editor
push esi
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
push 0x40d2c2
push edi
push esi
call dword [sym.imp.user32.dll_MessageBoxW]
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
jmp 0x407d29
push 0
push 0
push 0x303
jmp 0x407c7e
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
xor edx, edx
test byte [eax*4 + 0x419f70], 8
sete dl
mov ecx, 4
call sym._set_toolbar_state
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
xor edx, edx
test byte [eax*4 + 0x419f70], 8
sete dl
mov ecx, 5
call sym._set_toolbar_state
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
xor edx, edx
test byte [eax*4 + 0x419f70], 8
sete dl
mov ecx, 3
jmp 0x407c61
push dword [0x419258]
call dbg.reg_formatindex
add esp, 4
xor edx, edx
test byte [eax*4 + 0x419f70], 4
sete dl
mov ecx, 2
call sym._set_toolbar_state
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp sym._update_window
push 0
push 0
push 0x300
push eax
call dword [sym.imp.user32.dll_PostMessageW]
jmp 0x407d29
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.dialog_choose_font
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.dialog_viewproperties
and ebx, 0xffff0000
cmp ebx, 0x90000
jne 0x407d29
lea esi, [ebp - 0x230]
mov ecx, edi
mov edx, esi
push 0x20
call dbg.get_comboexlist_selection
add esp, 4
mov ecx, esi
call sym._on_fontlist_modified
jmp 0x407d29
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0
push dbg._tabstops_proc@16
push dword [ebp - 0x10]
push 0x837
jmp 0x407d12
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
jmp dbg.dialog_about
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0
push dbg._paraformat_proc@16
push dword [ebp - 0x10]
push 0x836
push eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
jmp 0x407d29
push edi
push ebx
push 0x111
push eax
call dword [sym.imp.user32.dll_SendMessageW]
add esp, 0x224
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 0
push 0xcf
jmp 0x407d48
push 0
push 1
push 0xb9
push esi
jmp 0x407d23
or byte [ebp - 0x225], 0x40
push edi
push 1
push 0x444
push dword [ebp - 0x14]
jmp 0x407d23