Function at 0x4074a0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebp, ebp
cmp esi, ebp
jne 0x40758e
mov eax, dword [0x95478c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x3200000
push ebp
push 0x406
push eax
mov dword [0x82d7ec], ebp
call esi
mov ecx, dword [0x95478c]
push ebp
push 1
push 0x405
push ecx
call esi
mov edx, dword [0x95478c]
push 0xa
push ebp
push 0x415
push edx
call esi
mov eax, dword [0x95478c]
push 1
push 0x320
push 0x414
push eax
call esi
mov ecx, dword [0x95444c]
push 0x82d6c0
push 1
push 0x401
push ecx
call esi
mov edx, dword [0x95444c]
push 0x82d6c0
push 3
push 0x401
push edx
call esi
mov eax, dword [0x95444c]
push 0x82d6c0
push 5
push 0x401
push eax
call esi
call fcn.004060d0
mov ecx, dword [0x82f360]
mov edx, dword [0x82f304]
push ecx
push 0xfffffffffffffff2
push edx
call dword [sym.imp.USER32.dll_SetClassLongA]
call fcn.00407af0
call fcn.00407ee0
push ebp
push ebp
call fcn.00407380
push ebp
call fcn.00407120
mov eax, dword [0x95478c]
add esp, 0xc
push ebp
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebp
add esp, 0x20
ret
cmp dword [0x82d7d4], ebp
je 0x40759d
call fcn.00407230
jmp 0x4075ae
cmp dword [0x82d7d8], ebp
je 0x4075ae
push ebp
call fcn.00407120
add esp, 4
mov ecx, dword [0x82d7d4]
push edi
mov edi, esi
cmp esi, 0x320
mov dword [0x82d7d8], ecx
mov dword [0x82d7f0], edi
jle 0x4075ed
mov eax, 0x51eb851f
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
mov ecx, edx
cdq
idiv ecx
mov dword [0x82d7f4], ecx
mov esi, eax
jmp 0x4075f7
mov dword [0x82d7f4], 1
cmp edi, 0x7fffffff
mov dword [0x4266ec], esi
jne 0x407673
mov ecx, dword [0x95478c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x3200000
push ebp
push 0x406
push ecx
mov dword [0x82d7ec], ebp
call esi
mov edx, dword [0x95478c]
push ebp
push 1
push 0x405
push edx
call esi
mov eax, dword [0x95478c]
push 0xa
push ebp
push 0x415
push eax
call esi
mov ecx, dword [0x95478c]
push 1
push 0x320
push 0x414
push ecx
call esi
mov edx, dword [0x95478c]
push ebp
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.004060d0
jmp 0x40776c
mov eax, dword [0x95478c]
push ebx
push 1
push eax
mov dword [0x82d7ec], 1
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x95478c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x407
push ecx
call ebx
mov edx, dword [0x95478c]
push esi
push ebp
push 0x408
push edx
call ebx
mov ecx, dword [0x95478c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x419
push ecx
call ebx
mov eax, dword [0x95478c]
lea edx, [esp + 0x20]
push edx
push ebp
push 0x41a
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub ecx, edi
sub ecx, esi
add ecx, edx
mov eax, ecx
mov dword [0x4266e8], ecx
cdq
idiv dword [0x4266e0]
xor edx, edx
mov edi, eax
mov eax, dword [0x4266ec]
div edi
xor edx, edx
mov dword [0x4266dc], edi
mov ebp, eax
mov esi, ebp
mov dword [0x4266d8], ebp
imul esi, ecx
mov eax, esi
div dword [0x4266ec]
test edi, edi
mov dword [0x4266d4], eax
jl 0x407755
mov ebp, 0x82d800
mov ecx, 0x190
inc edi
mov eax, ecx
xor edx, edx
div dword [0x4266ec]
add ecx, esi
add ebp, 4
dec edi
mov dword [ebp - 4], eax
jne 0x40773a
mov ebp, dword [0x4266d8]
mov ecx, dword [0x95478c]
push 1
push ebp
push 0x414
push ecx
call ebx
call fcn.004061a0
pop ebx
call fcn.00407af0
call fcn.00407ee0
push 2
call fcn.00404210
mov ecx, dword [0x82d7f0]
add esp, 4
cmp ecx, 0x7fffffff
pop edi
push eax
jne 0x40779a
call fcn.004072b0
add esp, 4
jmp 0x4077a4
push 1
call fcn.00407380
add esp, 8
push 1
push 0
call fcn.004020f0
mov esi, eax
push esi
call fcn.00407820
push esi
call fcn.004077f0
add esp, 0x10
pop esi
pop ebp
add esp, 0x20
ret