Function at 0x42c940
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 [0x4a9074]
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 0x42c96e
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 0x42cbc5
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42cbc5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043d1d0
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 0x42cbc5
push 0x410
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0043d1d0
push str.McAfeeWinCore_
lea eax, [ebp - 0x20c]
push eax
push 0x48f1d8
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.004011aa
add esp, 0x20
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42ca34
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x42cbc5
push 0x4992a0
lea eax, [ebp - 0x61c]
push 0x208
push eax
call fcn.0044a3cd
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 0x42cbc5
mov eax, dword [esi + 0x1c]
push edi
lea edi, [esi + 0x1c]
test eax, eax
je 0x42ca95
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 0x42caca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x42caca
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.0044a832
mov ebx, eax
add esp, 4
mov dword [ebp - 0x634], ebx
test ebx, ebx
je 0x42cb56
mov eax, dword [ebp - 0x620]
push str.___McAfee_WinCore_MTK___
inc eax
push eax
push ebx
call fcn.0044d6b2
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.0044cf1c
add esp, 0x18
lea eax, [ebp - 0x620]
mov ecx, edi
push eax
push ebx
call fcn.0042d460
mov edx, dword [ebp - 0x620]
lea ecx, [ebp - 0x628]
push ecx
mov ecx, eax
mov dword [ebp - 0x630], eax
call fcn.0042c630
xor ebx, ebx
add esp, 4
mov edi, eax
test edi, edi
setne bl
test ebx, ebx
je 0x42cb83
jmp 0x42cb58
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 0x42cb9c
push edi
call fcn.00448c6c
add esp, 4
mov eax, dword [ebp - 0x630]
pop edi
test eax, eax
je 0x42cbb0
push eax
call fcn.00448c6c
add esp, 4
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x42cbc7
push eax
call fcn.00448c6c
add esp, 4
jmp 0x42cbc7
xor ebx, ebx
test esi, esi
je 0x42cbd5
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.00437519
mov esp, ebp
pop ebp
ret 8