Function at 0x60103d90
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x601484a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0xc]
push eax
lea ecx, [esp + 0x18]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 4
mov dword [esi + 0x10], ebx
mov dword [ebp], 4
mov dword [esi + 0x102014], ebx
mov dword [esp + 0x14], ebx
call fcn.601045b0
mov edx, dword [esp + 0x34]
cmp edx, ebx
mov dword [esp + 0x28], ebx
jne 0x60103df9
xor eax, eax
jmp 0x60103e09
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x60103e00
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.601044e0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x60103f93
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
push ecx
push ebp
push ebx
push ebx
push str.FlushOption
push eax
mov dword [esp + 0x48], 4
call edi
test byte [ebp], 0x1c
je 0x60103f88
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
lea ebp, [esi + 4]
push ebp
push ebx
push ebx
push str.CatID
push eax
mov dword [esp + 0x48], 4
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
lea eax, [esi + 8]
push eax
push ebx
push ebx
push str.ErrorLevel
push edx
mov dword [esp + 0x48], 4
call edi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x14]
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push ecx
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x30], 0xffffffff
mov dword [esi], eax
push ebx
mov dword [esp + 0x34], ebx
jne 0x60103eee
lea edx, [esp + 0x34]
push edx
push 4
push str.lo_r_n
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x60103f3f
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x2c], bl
mov dword [esp + 0x2d], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.lo_r_n
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x60103f32
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
jmp 0x60103f88
mov edx, dword [esi]
push 2
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi], 0xffffffff
je 0x60103f88
cmp dword [ebp], ebx
jne 0x60103f50
mov dword [ebp], 0xffffffff
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x60103f60
imul eax, eax, 0x408
mov dword [eax + esi + 0x14], ebx
mov eax, dword [esp + 0x30]
imul eax, eax, 0x408
mov dword [eax + esi + 0x18], ebx
mov eax, dword [esp + 0x30]
inc eax
cmp eax, 0x400
mov dword [esp + 0x30], eax
jb 0x60103f60
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [sym.scnkrnl.dll_class_CAVLog__g_pLog], esi
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x60103fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10