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

Disassembly:
push ebp
lea ebp, [esp - 0xffa0]
mov eax, 0x10020
call fcn.0040fec0
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0xff9c], eax
mov eax, dword [ebp + 0xffa8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
mov edi, 0x80000000
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xffac]
push edi
push ecx
mov dword [ebp - 0x7c], eax
mov dword [eax], ebx
call esi
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x403d49
push ebx
push ebx
push 3
push ebx
push 1
push edi
push dword [ebp - 0x74]
call esi
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x403bce
cmp dword [ebp - 0x68], ebx
je 0x403d49
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d49
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 0x68]
call edi
push ebx
push dword [ebp - 0x6c]
mov esi, eax
call edi
cmp esi, 0xffffffff
je 0x403d2f
cmp eax, 0xffffffff
je 0x403d2f
cmp esi, eax
je 0x403c1a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], ebx
je 0x403c08
push dword [ebp - 0x6c]
call esi
cmp dword [ebp - 0x68], ebx
je 0x403c12
push dword [ebp - 0x68]
call esi
xor eax, eax
inc eax
jmp 0x403d4b
mov eax, esi
and esi, 0x7fff
shr eax, 0xf
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ebx
cmp eax, ebx
jbe 0x403ca7
mov edi, 0x8000
push ebx
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
je 0x403d2f
cmp dword [ebp - 0x70], edi
jne 0x403d2f
push ebx
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp + 0x7f9c]
push eax
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x403d2f
cmp dword [ebp - 0x70], edi
jne 0x403d2f
push edi
lea eax, [ebp + 0x7f9c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00405c71
add esp, 0xc
test eax, eax
jne 0x403bf8
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x80]
jb 0x403c3d
cmp dword [ebp - 0x78], ebx
je 0x403d21
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
je 0x403d2f
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x70], eax
jne 0x403d2f
mov edi, dword [ebp - 0x6c]
push ebx
lea ecx, [ebp - 0x70]
push ecx
push eax
lea eax, [ebp + 0x7f9c]
push eax
push edi
call esi
test eax, eax
je 0x403d14
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x70], eax
jne 0x403d14
push eax
lea eax, [ebp + 0x7f9c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00405c71
add esp, 0xc
test eax, eax
je 0x403d24
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x403c08
push edi
jmp 0x403c06
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x403d3f
push edi
jmp 0x403d3d
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x7c]
mov dword [eax], 1
jmp 0x403d00
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], ebx
je 0x403d3f
push dword [ebp - 0x6c]
call esi
cmp dword [ebp - 0x68], ebx
je 0x403d49
push dword [ebp - 0x68]
call esi
xor eax, eax
mov ecx, dword [ebp + 0xff9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
add ebp, 0xffa0
leave
ret