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

Disassembly:
push 0x3d0
mov eax, 0x477a8e
call fcn.0045af9c
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call fcn.00417a9e
push eax
lea ecx, [ebp - 0x94]
call fcn.0040e107
mov dword [ebp - 4], ebx
call fcn.00417aaa
mov ecx, eax
call fcn.0040e92d
test al, al
je 0x424b1b
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call fcn.0040e399
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0040e338
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x424ac5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040e22e
jmp 0x424cac
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x424ab1
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.0045acd3
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x424c99
push esi
call fcn.0045a7ee
pop ecx
mov esi, ebx
jmp 0x424ab1
call fcn.00417aaa
push eax
lea ecx, [ebp - 0x94]
call fcn.0040e37c
call fcn.00417dc8
test al, al
je 0x424b42
call fcn.00417ab0
mov dword [ebp - 0x3d0], eax
jmp 0x424bae
call fcn.00417ab6
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040e107
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.0040e338
push eax
call fcn.0041c4f4
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call fcn.0040e338
push eax
call fcn.0043262c
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x424b9a
push eax
call fcn.0045a7ee
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0040e22e
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x424ab1
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.0040e12c
push 0x47e8f4
push 0x47af08
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0040eafa
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0040e338
push eax
push dword [ebp - 0x3d0]
call fcn.00432003
add esp, 0x14
test eax, eax
je 0x424c26
lea ecx, [ebp - 0x118]
call fcn.0040e22e
jmp 0x424ab1
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x424c16
push edi
call fcn.0045acd3
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.00432a66
add esp, 0x14
test eax, eax
je 0x424c79
cmp eax, 0x600
je 0x424c79
push esi
call fcn.0045a7ee
pop ecx
mov esi, ebx
call fcn.00417dc8
test al, al
jne 0x424c16
push dword [ebp - 0x3d0]
call fcn.00431de2
pop ecx
jmp 0x424c16
call fcn.00417dc8
test al, al
jne 0x424c8e
push dword [ebp - 0x3d0]
call fcn.00431de2
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0040e22e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0040e22e
test esi, esi
jne 0x424d27
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x424d23
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x424d23
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.0045acd3
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x424d23
push esi
call fcn.0045a7ee
pop ecx
mov esi, ebx
test esi, esi
je 0x424d3b
push edi
push esi
call fcn.004249c2
push 1
push esi
mov ebx, eax
call fcn.0045a7e0
add esp, 0x10
mov eax, ebx
call fcn.0045af57
ret