Function at 0x46ea66
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b26f8
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x46eaac
mov eax, 1
jmp 0x46ec79
push 0
push 0
push 3
push 0
push 3
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x46ead8
mov eax, 1
jmp 0x46ec79
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x19000
jbe 0x46eafc
mov eax, 1
jmp 0x46ec79
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x46eb2d
mov eax, 1
jmp 0x46ec79
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
jne 0x46eb5c
mov eax, 1
jmp 0x46ec79
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x24], 0xe0000060
je 0x46ebac
push 8
push 0x51c320
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x46ebcc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
jmp 0x46ec79
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0046ec8c
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xc], 0
je 0x46ec54
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0046ec8c
add esp, 8
mov dword [ebp - 0x44], eax
push 0x51c328
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x46ec49
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
jmp 0x46ec79
mov edx, dword [ebp - 0x30]
add edx, 0x14
mov dword [ebp - 0x30], edx
jmp 0x46ebf4
mov dword [ebp - 4], 0xffffffff
jmp 0x46ec6d
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4