Function at 0x40195f
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4123d0
call fcn.0040a258
sub esp, 0x3a0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push 0x4a5
mov dword [ebp - 0x28], esi
push dword [0x418f44]
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push 1
push 0x419058
push esi
call fcn.0040210f
add esp, 0x10
mov edi, 0x402
mov ebx, 0x4b0
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 7
push edi
push ebx
push dword [0x418f44]
call esi
push 0
push 0xf
push edi
push ebx
push dword [0x418f44]
mov dword [ebp - 0x14], 2
call esi
push str.CCTV_Box
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x401a52
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x2c]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0x103
jne 0x401a52
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x64
jle 0x401b8a
mov dword [ebp - 0x28], 1
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
and byte [ebp - 0x2a8], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea eax, [ebp - 0x2a8]
push edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00409b80
test eax, eax
pop ecx
je 0x401ad2
lea eax, [ebp - 0x2a8]
push eax
call fcn.00409b80
cmp byte [ebp + eax - 0x2a9], 0x5c
pop ecx
je 0x401ad2
lea eax, [ebp - 0x2a8]
push 0x41565c
push eax
call fcn.00409920
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
push str.cctv_box.lnk
push eax
call fcn.00409920
pop ecx
lea eax, [ebp - 0x2a8]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push 0x402
push ebx
push dword [0x418f44]
call esi
push str.CCTV_Live
push edi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x401bab
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x2c]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push edi
push 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x20], 0x103
jne 0x401b11
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x64
jle 0x401b9c
mov dword [ebp - 0x28], 1
jmp 0x401b11
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x401a2d
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x401b67
inc dword [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push 0x402
push ebx
push dword [0x418f44]
call esi
and byte [ebp - 0x130], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push eax
call fcn.00403ceb
mov eax, dword [eax + 4]
pop ecx
test eax, eax
jne 0x401bfa
mov eax, 0x413210
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x140]
call fcn.00403c3c
lea eax, [ebp - 0x130]
push eax
call fcn.00409b80
test eax, eax
pop ecx
jbe 0x401c54
lea eax, [ebp - 0x130]
push eax
call fcn.00409b80
cmp byte [ebp + eax - 0x131], 0x5c
pop ecx
je 0x401c54
push 1
lea eax, [ebp - 0x130]
push 0x41565c
push eax
call fcn.00409d60
add esp, 0xc
lea eax, [ebp - 0x130]
push str.CCTV
push eax
call fcn.00409920
lea eax, [ebp - 0x130]
push eax
call fcn.00401927
add esp, 0xc
mov dword [ebp - 0x20], eax
xor edi, edi
cmp dword [ebp - 0x20], 0
jne 0x401c9f
cmp edi, 0x32
jg 0x401c9f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x130]
inc edi
push eax
call fcn.00401927
pop ecx
mov dword [ebp - 0x20], eax
jmp 0x401c79
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
mov edi, 0x402
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00409cf4
and byte [eax + 1], 0
lea eax, [ebp - 0x130]
push str.safenetdrm
push eax
call fcn.00409920
add esp, 0x10
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x64
push 0
push 0xd
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x130]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00409cf4
and byte [eax], 0
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.00409cf4
and byte [ebp - 0x1a4], 0
push 0x18
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [edx + 1]
lea eax, [ebp - 0x1a4]
push edi
push eax
call fcn.00409910
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409c82
lea eax, [ebp - 0x1a4]
push 0x415628
push eax
call fcn.00409bfb
add esp, 0x24
test eax, eax
jne 0x401d8f
lea eax, [ebp - 0x130]
push eax
call fcn.00401927
pop ecx
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push 0x402
push ebx
push dword [0x418f44]
call esi
and byte [edi], 0
and byte [ebp - 0x3ac], 0
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x3ab]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.00409910
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.default.kss
push eax
call fcn.00409920
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
mov edi, 0x402
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.FlashPlayer.exe
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.dxva_sig.txt
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x14]
push 0
mov eax, dword [ebp - 0x14]
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.update
push eax
call fcn.00409920
lea eax, [ebp - 0x130]
push eax
call fcn.00401927
add esp, 0x14
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x64
push 0
push 0xd
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.data
push eax
call fcn.00409920
lea eax, [ebp - 0x130]
push eax
call fcn.00401927
add esp, 0x14
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x64
push 0
push 0xd
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
xor eax, eax
cmp dword [ebp - 0x20], eax
je 0x402006
cmp dword [ebp - 0x28], eax
jne 0x402006
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00409910
lea eax, [ebp - 0x130]
push str.cctvbox.exe
push eax
call fcn.00409920
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14]
push 0
inc eax
push 0xd
imul eax, eax, 0x64
cdq
pop ecx
idiv ecx
push eax
push edi
push ebx
push dword [0x418f44]
call esi
push 0
push 0x4155d4
mov dword [0x419468], 1
push 0x4155c0
push dword [0x418f44]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 4
push eax
push 0x4155b4
push 0x41558c
jmp 0x401fe7