Function at 0x407970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6106d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x6e0ea0]
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 8], eax
mov ecx, dword [0x6fea94]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x3c], 1
mov dword [esp + 0x10], eax
jle 0x407ca2
push ebp
push edi
lea ebp, [ebx + 0x1b1]
mov cl, byte [ebx + eax + 0x3b80]
test cl, cl
je 0x407c87
inc eax
push eax
lea eax, [esp + 0x18]
push str.Camera_d
push eax
call fcn.004ec2c0
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cl, byte [ebp - 1]
push ecx
push 0x6c2acc
push edx
call fcn.004ec2c0
mov eax, dword [0x65329c]
add esp, 0x18
lea ecx, [esp + 0x1c]
push eax
push 0
push str.Invoke_Alarm
call fcn.004e9b90
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
lea edi, [ebx + 0x190]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x50], 2
call fcn.0044da50
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x44], 1
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x407a5e
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407a5e
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
jmp 0x407a64
mov esi, dword [sym.imp.MSVCRT.dll_free]
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [ebp]
push edx
push 0x6c2acc
push eax
call fcn.004ec2c0
mov ecx, dword [0x65329c]
add esp, 0xc
push ecx
push 0
push str.Send_Mail
lea ecx, [esp + 0x2c]
call fcn.004e9b90
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x50], 3
call fcn.0044da50
mov edx, dword [esp + 0x20]
mov byte [esp + 0x44], 1
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x407acf
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407acf
push eax
call esi
add esp, 4
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [ebp + 1]
push eax
push 0x6c2acc
push ecx
call fcn.004ec2c0
mov edx, dword [0x65329c]
add esp, 0xc
lea ecx, [esp + 0x24]
push edx
push 0
push str.PlaySound
call fcn.004e9b90
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x50], 4
call fcn.0044da50
mov eax, dword [esp + 0x24]
mov byte [esp + 0x44], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407b39
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407b39
push eax
call esi
add esp, 4
mov ecx, dword [ebp + 3]
lea edx, [esp + 0x10]
push ecx
push 0x6c2acc
push edx
call fcn.004ec2c0
mov eax, dword [0x65329c]
add esp, 0xc
lea ecx, [esp + 0x28]
push eax
push 0
push str.Sensitivity
call fcn.004e9b90
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x50], 5
call fcn.0044da50
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x44], 1
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x407ba1
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407ba1
push eax
call esi
add esp, 4
lea edx, [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.DvrCore.dll__AmxGetVideoSize_8]
mov eax, dword [esp + 0x2c]
xor esi, esi
cdq
and edx, 0xf
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x30]
cdq
and edx, 0xf
add eax, edx
sar ecx, 4
sar eax, 4
imul ecx, eax
test ecx, ecx
jle 0x407c1f
add ebx, 0x18c
mov ecx, ebx
call fcn.004e9cc0
mov cl, byte [esi + ebp + 7]
mov eax, dword [ebx]
xor edx, edx
test cl, cl
setne dl
add edx, 0x30
mov word [eax + esi*2], dx
mov eax, dword [esp + 0x2c]
cdq
and edx, 0xf
inc esi
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x30]
cdq
and edx, 0xf
add eax, edx
sar ecx, 4
sar eax, 4
imul ecx, eax
cmp esi, ecx
jl 0x407bdc
mov ebx, dword [esp + 0x38]
mov edx, dword [0x65329c]
lea ecx, [esp + 0x34]
push edx
push 0
push str.MaskBits
call fcn.004e9b90
lea eax, [ebx + 0x18c]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x50], 6
call fcn.0044da50
mov eax, dword [esp + 0x34]
mov byte [esp + 0x44], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407c77
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407c77
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00407850
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6fea94]
inc eax
add ebp, 0x198
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4079c6
pop edi
pop ebp
mov al, byte [ebx + 0x3ba4]
test al, al
je 0x407d5f
lea edx, [esp + 0xc]
push str.Global
push edx
call fcn.004ec2c0
mov eax, dword [ebx + 0x178]
lea esi, [ebx + 0x178]
add esp, 8
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
and eax, 0xff
push eax
mov ecx, esi
call dword [edx + 0x2c]
and eax, 0xff
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x28]
and eax, 0xff
lea ecx, [esp + 0x10]
push eax
push str._d__d__d
push ecx
call fcn.004ec2c0
mov edx, dword [0x65329c]
add esp, 0x14
lea ecx, [esp + 0x2c]
push edx
push 0
push str.Mask_Color
call fcn.004e9b90
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [ebx + 0x190]
mov byte [esp + 0x48], 7
call fcn.0044da50
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3c], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407d5f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407d5f
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [ebx + 0x190]
call fcn.0044d8a0
mov ecx, dword [esp + 8]
pop esi
pop ebx
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x407d8c
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407d8c
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esp + 4]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x407dac
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x407dac
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret