Function at 0x407b7e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
jne 0x407bb0
or esi, eax
jmp 0x407d0e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x40
jae 0x407bc7
push 0xfffffffffffffffe
jmp 0x407d0d
lea eax, [ebx + 0x400]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x407bea
push 0xfffffffffffffffd
jmp 0x407d0d
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407c07
push 0xfffffffffffffffc
jmp 0x407d0d
cmp dword [ebp - 0xc], ebx
je 0x407c13
push 0xfffffffffffffffb
jmp 0x407d0d
cmp dword [edi], 0x5243374b
je 0x407c22
push 0xfffffffffffffffa
jmp 0x407d0d
push dword [edi + 0xc]
lea edx, [ebx - 0x40]
push dword [edi + 8]
lea ecx, [edi + 0x40]
call fcn.0040780e
pop ecx
pop ecx
cmp eax, dword [edi + 0x10]
jne 0x407d0b
cmp edx, dword [edi + 0x14]
jne 0x407d0b
xor eax, eax
mov dword [ebp - 0x1c], 0xc
push eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 0x18], eax
inc esi
lea eax, [ebp - 4]
push eax
push esi
push dword [0x51aeb0]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
jne 0x407c76
push 0xffffffffffffff98
jmp 0x407d0d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
jmp 0x407cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407cd5
cmp dword [ebp - 8], 3
ja 0x407cd1
push dword [0x52a8c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x52a8c4], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
push str.GlobalK7CarnivoreExclV2
push ebx
push 0
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x52a8c4], eax
test eax, eax
jne 0x407c81
push 0xffffffffffffff97
jmp 0x407d0d
xor eax, eax
push eax
push eax
push eax
push 0xf001f
push dword [0x52a8c4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
jne 0x407cf6
push 0xffffffffffffff96
jmp 0x407d0d
push ebx
push edi
push eax
call fcn.0049f810
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [0x52a8c8], eax
jmp 0x407d3c
push 0xfffffffffffffff9
pop esi
mov eax, dword [0x52a8c8]
test eax, eax
je 0x407d25
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [0x52a8c8], 0
mov eax, dword [0x52a8c4]
test eax, eax
je 0x407d3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x52a8c4], 0
cmp dword [ebp - 4], 0
je 0x407d4b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x407d5f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x407d6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret