Function at 0x4065f0
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4999c0
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x208
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call fcn.00475260
add esp, 0xc
mov byte [ebp - 0x279], 0
lea edx, [ebp - 0x279]
mov cl, 1
call fcn.00438ef0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4066b2
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a66
push str.Error_stopping_monitor
push 0
push str._CI__::_collect::DhcpCollector::Start____
push 0
call fcn.00406440
add esp, 0x10
jmp 0x406a66
push ecx
lea ecx, [ebp - 0x278]
call fcn.004072b0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 2
push eax
mov edx, 0x56f388
lea ecx, [ebp - 0x248]
call fcn.00410af0
add esp, 4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00410be0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x406741
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406718
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00411280
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x40675f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x40679a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403050
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4067d9
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00403050
cmp dword [ebp - 0x220], 0
ja 0x4067fa
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a66
push str.Error_getting_hdcp_data_file_path
jmp 0x40669c
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406860
call ebx
cmp eax, 2
je 0x406a66
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a66
call ebx
push eax
push str.CreateFile_error__0x_08x_
push str._CI__::_collect::DhcpCollector::Start____
push 0
call fcn.00406440
add esp, 0x10
jmp 0x406a66
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
jne 0x40689e
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a5a
call ebx
push eax
push str.GetFileSize_error__0x_08x_
push str._CI__::_collect::DhcpCollector::Start____
push 0
call fcn.00406440
add esp, 0x10
jmp 0x406a5a
cmp eax, 2
jb 0x406a5a
inc eax
push eax
call fcn.0047bf17
mov esi, eax
add esp, 4
test esi, esi
jne 0x4068dd
mov eax, dword [0x56f328]
cmp dword [eax], esi
je 0x406a5a
push str.Memmory_error
push esi
push str._CI__::_collect::DhcpCollector::Start____
push esi
call fcn.00406440
add esp, 0x10
jmp 0x406a5a
push 0
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
lea eax, [esi + 1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406916
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a51
call ebx
push eax
push str.ReadFile_error__0x_08x_
jmp 0x406a42
mov byte [esi], 0x5b
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
mov byte [eax + esi - 2], 0x5d
mov eax, dword [ebp - 0x280]
mov byte [eax + esi - 1], 0
cmp byte [esi], 0
jne 0x406953
xor ecx, ecx
jmp 0x406961
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406958
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.00402c80
sub esp, 0x28
mov byte [ebp - 4], 5
mov eax, esp
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x240]
mov dword [eax + 0x24], 0
call fcn.004109a0
mov edx, dword [ebp - 0x284]
add esp, 0x28
mov al, byte [ebp - 0x240]
mov ebx, dword [ebp - 0x284]
mov cl, byte [edx + 0x20]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x238]
mov byte [ebp - 0x240], cl
mov ecx, dword [edx + 0x28]
mov edx, dword [edx + 0x2c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], ecx
lea ecx, [ebp - 0x240]
mov dword [ebx + 0x2c], eax
mov dword [ebp - 0x234], edx
call fcn.004119c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10
jb 0x406a07
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00402eb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406a51
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406a51
call ebx
push eax
push str.DeleteFile_error__0x_08x_
push str._CI__::_collect::DhcpCollector::Start____
push 0
call fcn.00406440
add esp, 0x10
push esi
call fcn.0047bf22
add esp, 4
cmp edi, 0xffffffff
je 0x406a66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x279], 0
je 0x406ab7
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea ecx, [ebp - 0x218]
call fcn.004393a0
add esp, 4
test al, al
jne 0x406ab7
mov eax, dword [0x56f328]
cmp dword [eax], 0
je 0x406ab7
call ebx
push eax
push str.CreateProcess_error__0x_08x_
push str._CI__::_collect::DhcpCollector::Start____
push 0
call fcn.00406440
add esp, 0x10
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406ad5
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 6
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x406b21
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406b21
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x406b21
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret 0xc