Function at 0x412099
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
lea edi, [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.00401b21
push dword [edi]
call fcn.0041c62c
pop ecx
lea ecx, [ebp - 0x38]
call fcn.004016e9
push dword [0x428be0]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x422414
push 0x52
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 2
mov dword [ebp - 4], eax
push dword [edi]
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x55
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
push 1
push dword [edi]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x6d
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
push 0x40b
push dword [edi]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x76
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
push 0x405
push dword [edi]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x6e
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
push 0x41d
push dword [edi]
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x6f
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
push 0x41e
push dword [edi]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x408
push dword [edi]
call ebx
mov dword [esi + 0x50], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x1e
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x409
push dword [edi]
call ebx
mov dword [esi + 0x54], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x56
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x417
push dword [edi]
call ebx
mov dword [esi + 0x58], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x25
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x418
push dword [edi]
call ebx
mov dword [esi + 0x5c], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x23
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x419
push dword [edi]
call ebx
mov dword [esi + 0x60], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x24
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x41a
push dword [edi]
call ebx
mov dword [esi + 0x6c], eax
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x70
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x71
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x72
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x73
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3fc
push dword [edi]
call ebx
lea ecx, [esi + 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x41b
push dword [edi]
call ebx
and word [ebp - 0x14], 0
mov dword [esi + 0x70], eax
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x10]
mov dword [ebp - 4], 7
sub word [ebp - 0xe], ax
mov edi, 0x12c
lea eax, [ebp - 0x38]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.0040cd38
push edi
lea ecx, [ebp - 0x24]
call fcn.004016d3
push eax
lea eax, [ebp - 0x14]
push str.dddd
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea ecx, [ebp - 0x24]
call fcn.0040665c
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SendMessageA]
inc word [ebp - 0xe]
dec dword [ebp - 4]
jne 0x4123ed
push 0x41c
push dword [esi + 4]
call ebx
mov dword [esi + 0x74], eax
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 0xa], ax
mov word [ebp - 6], ax
mov dword [ebp - 4], eax
jmp 0x412468
xor eax, eax
mov cx, word [ebp - 4]
and byte [ebp - 0x20], 0
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], eax
call fcn.004016d3
push eax
lea eax, [ebp - 0x14]
push str.h:mm_tt
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea ecx, [ebp - 0x24]
call fcn.0040665c
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push 0
push 0x143
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 4]
inc word [ebp - 0xc]
cmp dword [ebp - 4], 0x18
jl 0x412466
push 0x41d
push dword [esi + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esi + 0x90]
push ecx
push eax
call edi
push 0x41e
push dword [esi + 4]
call ebx
lea ecx, [esi + 0xc0]
push ecx
push eax
call edi
lea eax, [esi + 0xa0]
push eax
push dword [esi + 0x6c]
call edi
lea eax, [esi + 0xb0]
push eax
push dword [esi + 0x70]
call edi
lea eax, [esi + 0xd0]
push eax
push dword [esi + 0x74]
call edi
mov ecx, esi
call fcn.00412e7d
and byte [esi + 0x7c], 0
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x77
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
lea edi, [esi + 4]
push 0x420
mov dword [ebp - 4], eax
push dword [edi]
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x76
call fcn.00401d27
lea ecx, [ebp - 0x38]
call fcn.00401876
mov eax, dword [ebp - 0x34]
push 0x76
push dword [edi]
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x428be0]
lea ecx, [ebp - 0x38]
push 0x19
call fcn.00401d27
cmp byte [esi + 0x7d], 0
je 0x412647
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
call fcn.004058fe
push dword [0x428be0]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x422414
push 0x62
call fcn.00401d27
push 0x425358
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x422420
mov dword [ebp - 4], eax
call ebx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x24]
call fcn.004016fd
mov eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 4], eax
call ebx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp - 4]
call fcn.00405cf3
xor ebx, ebx
push ebx
push ebx
push pe_nt_image_headers32
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x412637
mov byte [esi + 0x7c], al
push ebx
mov ecx, esi
call fcn.004130e6
lea ecx, [ebp - 0x4c]
call fcn.004016fd
lea ecx, [ebp - 0x38]
call fcn.00401876
push dword [ebp - 0x34]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x38]
call fcn.004016fd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10