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

Disassembly:
push 0x2c8
mov eax, 0x4a3f64
call fcn.0044d815
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
call fcn.00451319
push eax
lea ecx, [ebp - 0x94]
call fcn.0045453e
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045131f
mov ecx, eax
call fcn.00454c6f
test al, al
je 0x47dc27
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x94]
call fcn.00454759
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x47dbd3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00454665
jmp 0x47dd19
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47dbbf
push ebx
mov dword [ebp - 0x2d0], edi
call fcn.00425f0a
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2d0]
push eax
push ebx
push esi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], ebx
je 0x47dd06
push esi
call fcn.00425f05
pop ecx
jmp 0x47dbbf
call fcn.0045131f
push eax
lea ecx, [ebp - 0x94]
call fcn.0045473c
call fcn.004513e2
test al, al
je 0x47dc48
call fcn.00451325
jmp 0x47dc5f
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00403620
push eax
call fcn.0045f15a
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x47dbbf
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push 1
push dword [ebp - 0x2cc]
push eax
call fcn.0045eb9b
add esp, 0x14
test eax, eax
jne 0x47dbbf
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x47dbbf
push ebx
call fcn.00425f0a
push 3
push ebx
mov esi, eax
push esi
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.0045f51a
add esp, 0x18
test eax, eax
je 0x47dcf1
cmp eax, 0x600
je 0x47dcf1
push esi
call fcn.00425f05
pop ecx
call fcn.004513e2
test al, al
jne 0x47dbbf
push dword [ebp - 0x2c8]
call fcn.0045e9f5
jmp 0x47dc24
call fcn.004513e2
test al, al
jne 0x47dd06
push dword [ebp - 0x2c8]
call fcn.0045e9f5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00454665
test esi, esi
jne 0x47dd98
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x47dd94
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47dd94
push ebx
mov dword [ebp - 0x2c8], edi
call fcn.00425f0a
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
push ebx
push esi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], ebx
je 0x47dd90
push esi
call fcn.00425f05
pop ecx
mov esi, edi
test esi, esi
jne 0x47dd98
xor eax, eax
jmp 0x47ddd3
push 0x10
call fcn.00425ece
pop ecx
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x47ddba
mov ecx, eax
call fcn.0040f490
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push esi
call fcn.0040f540
push 1
push esi
call fcn.0044d796
pop ecx
pop ecx
mov eax, edi
call fcn.0044d7bf
ret 4