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

Disassembly:
push 0x38
mov eax, 0x54253e
call fcn.0052c05f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x44], esi
cmp esi, 0xffffffff
jne 0x4fbabf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fba7f
mov eax, 0x36fd
jmp 0x4fba8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fbb46
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], 0x438bd8
mov dword [ebp - 0x34], 0xb5
mov dword [ebp - 0x30], 0x418e60
call fcn.00451e97
or dword [ebp - 4], 0xffffffff
jmp 0x4fbcaa
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4fbb37
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbae5
mov eax, 0x36fd
jmp 0x4fbaef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fbb46
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], 0x438bd8
mov dword [ebp - 0x34], 0xbb
mov dword [ebp - 0x30], 0x438ba0
call fcn.00451e97
mov edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x4fbb2c
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x4fbcaa
cmp dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x1c]
jl 0x4fbb51
jg 0x4fbb46
cmp ebx, 0xffffffff
jbe 0x4fbb51
push 0xc00000e5
call dword [fcn.00440b24]
test ebx, ebx
je 0x4fbc92
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea edx, [ebp - 0x28]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f9083
mov edi, eax
test edi, edi
jns 0x4fbb89
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00443839
mov dword [ebp - 4], 3
jmp 0x4fbb21
xor eax, eax
cmp dword [ebp - 0x18], eax
jg 0x4fbb46
jl 0x4fbb98
cmp dword [ebp - 0x1c], 0xffffffff
ja 0x4fbb46
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fbc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbbc0
mov eax, 0x36fd
jmp 0x4fbbce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fbb46
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], 0x438bd8
mov dword [ebp - 0x34], 0xcf
mov dword [ebp - 0x30], 0x438be8
call fcn.00451e97
mov edi, eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00443839
mov dword [ebp - 4], 5
jmp 0x4fbb21
cmp dword [ebp - 0x2c], ebx
je 0x4fbc5e
mov edi, 0xc0000001
mov dword [ebp - 0x3c], 0x438b70
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x438bd8
mov dword [ebp - 0x34], 0xd0
mov dword [ebp - 0x30], 0x438c4c
call fcn.004f7c89
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00443839
mov dword [ebp - 4], 7
jmp 0x4fbb21
mov esi, dword [ebp - 0x40]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x40]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.00443839
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x44]
mov dword [ebp - 4], 9
test esi, esi
je 0x4fbca4
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0052bffc
ret 8