Function at 0x481a10
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x624], ebx
test esi, esi
je 0x481a3e
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x628], 0
test ebx, ebx
je 0x481c95
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x481c95
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x481c95
push 0x410
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00496490
push str.McAfeeWinCore_
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.00451f20
add esp, 0x20
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x481b04
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x481c95
push str.persist.mtk
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.004a29f7
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x62c], eax
cmp eax, 0xffffffff
je 0x481c95
mov eax, dword [esi + 0x1c]
push edi
lea edi, [esi + 0x1c]
test eax, eax
je 0x481b65
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [edi], 0
push 0xf0000000
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x481b9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x481b9a
push 0xf0000008
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebx + 0x18]
mov dword [ebp - 0x620], eax
inc eax
push eax
call fcn.004a3e8e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x634], ebx
test ebx, ebx
je 0x481c26
mov eax, dword [ebp - 0x620]
push str.___McAfee_WinCore_MTK___
inc eax
push eax
push ebx
call fcn.004a9192
mov eax, dword [ebp + 0xc]
inc eax
push eax
push dword [ebp - 0x624]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.004a8cf6
add esp, 0x18
lea eax, [ebp - 0x620]
mov ecx, edi
push eax
push ebx
call fcn.00482240
mov edx, dword [ebp - 0x620]
lea ecx, [ebp - 0x628]
push ecx
mov ecx, eax
mov dword [ebp - 0x630], eax
call fcn.00481700
xor ebx, ebx
add esp, 4
mov edi, eax
test edi, edi
setne bl
test ebx, ebx
je 0x481c53
jmp 0x481c28
xor edi, edi
push 0
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0
push eax
mov eax, dword [ebp - 0x628]
add eax, eax
push eax
push edi
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x481c6c
push edi
call fcn.004a2e5c
add esp, 4
mov eax, dword [ebp - 0x630]
pop edi
test eax, eax
je 0x481c80
push eax
call fcn.004a2e5c
add esp, 4
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x481c97
push eax
call fcn.004a2e5c
add esp, 4
jmp 0x481c97
xor ebx, ebx
test esi, esi
je 0x481ca5
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret 8