Function at 0x4817a0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4817c5
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4819eb
push 0x410
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.00496490
push str.persist.mtk
push str.McAfeeWinCore_
lea eax, [ebp - 0x210]
push eax
push 0x50d8a4
lea eax, [ebp - 0x620]
push 0x208
push eax
call fcn.00451f20
add esp, 0x24
lea eax, [ebp - 0x620]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x634], eax
cmp eax, 0xffffffff
je 0x4819eb
push ebx
push 0
push eax
mov dword [ebp - 0x630], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4819dc
lea eax, [ebx + 1]
push eax
call fcn.004a3e8e
add esp, 4
mov dword [ebp - 0x62c], eax
test eax, eax
je 0x4819dc
lea ecx, [ebx + 1]
push ecx
push esi
push eax
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x630]
push esi
push eax
push ebx
push dword [ebp - 0x62c]
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4819ce
mov eax, dword [edi + 0x1c]
lea ebx, [edi + 0x1c]
test eax, eax
je 0x4818e1
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx], esi
push 0xf0000000
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x481916
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x481916
push 0xf0000008
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0x624]
mov ecx, dword [ebp - 0x62c]
push eax
shr edx, 1
mov dword [ebp - 0x624], esi
call fcn.00481650
add esp, 4
mov dword [ebp - 0x628], eax
test eax, eax
je 0x4819ce
sub esp, 8
lea ecx, [ebp - 0x624]
push ecx
push eax
mov ecx, ebx
call fcn.00482360
mov ebx, dword [ebp - 0x628]
test eax, eax
je 0x4819c5
push 0x18
push str.___McAfee_WinCore_MTK___
push ebx
call fcn.004a5b10
add esp, 0xc
test eax, eax
jne 0x4819c5
mov eax, dword [ebp - 0x624]
sub eax, 0x18
mov dword [ebp - 0x624], eax
lea eax, [eax*2 + 2]
push eax
call fcn.004a3e8e
mov esi, eax
add esp, 4
test esi, esi
je 0x4819c5
mov ecx, dword [ebp - 0x624]
lea eax, [ebx + 0x18]
push ecx
push eax
mov dword [ebp - 0x628], 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.004a9448
add esp, 0x14
push ebx
call fcn.004a2e5c
add esp, 4
push dword [ebp - 0x62c]
call fcn.004a2e5c
add esp, 4
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x4819ed
xor esi, esi
test edi, edi
je 0x4819fb
lea ecx, [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004908ad
mov esp, ebp
pop ebp
ret