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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x547794
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00405474
xor eax, eax
push ebp
push 0x547bb5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004050bc
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x5477e9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x547b67
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x54775c]
call fcn.00406060
add esp, 4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x547838
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x547b67
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
cmp word [eax], 0xfeff
je 0x547852
mov ebx, 0xd
jmp 0x547b67
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp - 0xc], eax
xor edi, edi
mov dword [ebp - 0x10], 1
mov eax, dword [ebx + 0x2f4]
call fcn.004a8894
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, 0x547bcc
mov eax, dword [ebx + 0x2f4]
call fcn.004a88d0
mov eax, dword [ebx + 0x2f4]
call fcn.004a8894
mov edx, 0x547bcc
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x308]
call fcn.004bb078
call fcn.004932f0
mov eax, dword [ebx + 0x308]
call fcn.004bb078
call fcn.004932d0
mov eax, dword [ebx + 0x300]
call fcn.004bb078
call fcn.004932f0
mov eax, dword [ebx + 0x300]
mov edx, dword [eax]
call dword [edx + 0xd4]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jbe 0x547b1e
mov dword [ebp - 0x1c], eax
mov esi, 1
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.004910ec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x30c]
call fcn.00491108
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x30c]
call fcn.004910f8
mov dl, 1
mov eax, dword [ebx + 0x30c]
call fcn.0044d420
mov eax, dword [0x56a274]
mov eax, dword [eax]
call fcn.0046ec34
mov eax, dword [ebp - 8]
cmp word [eax + esi*2], 9
jne 0x547958
cmp edi, 4
jae 0x547958
mov eax, dword [ebp - 8]
mov word [eax + esi*2], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*2]
mov dword [ebp + edi*4 - 0x38], eax
lea eax, [esi + 1]
mov dword [ebp - 0x10], eax
inc edi
mov eax, dword [ebp - 8]
cmp word [eax + esi*2], 0xd
jne 0x547b14
mov eax, dword [ebp - 8]
cmp word [eax + esi*2 + 2], 0xa
jne 0x547b14
mov eax, dword [ebp - 8]
mov word [eax + esi*2], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*2]
mov dword [ebp + edi*4 - 0x38], eax
lea eax, [esi + 2]
mov dword [ebp - 0x10], eax
inc edi
cmp edi, 5
je 0x54799e
xor edi, edi
jmp 0x547b14
xor edi, edi
mov eax, dword [ebx + 0x308]
call fcn.004bb078
call fcn.004baa84
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.00404960
mov eax, dword [ebp - 0x3c]
call fcn.00409960
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00492dcc
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x34]
call fcn.00404fc4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.004ba91c
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x30]
call fcn.00404fc4
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
call fcn.00404fc4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
call fcn.00404fc4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x300]
call fcn.004bb078
call fcn.004baa84
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x38]
call fcn.00404960
mov eax, dword [ebp - 0x50]
call fcn.00409960
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00492dcc
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x34]
call fcn.00404fc4
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.004ba91c
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x30]
call fcn.00404fc4
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
call fcn.00404fc4
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x28]
call fcn.00404fc4
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00492cc4
mov eax, dword [ebx + 0x2f4]
call fcn.004a8894
push eax
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
call fcn.00404fc4
mov edx, dword [ebp - 0x64]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jne 0x547b14
mov eax, dword [ebx + 0x2f4]
call fcn.004a8894
push eax
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
call fcn.00404fc4
mov edx, dword [ebp - 0x68]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 0x1c]
jne 0x5478ea
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.0044d420
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.0044d420
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.0044d420
mov eax, dword [ebx + 0x300]
call fcn.004bb078
call fcn.004934cc
mov eax, dword [ebx + 0x308]
call fcn.004bb078
call fcn.004934cc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547bbc
lea eax, [ebp - 0x68]
mov edx, 6
call fcn.00404e74
lea eax, [ebp - 0x50]
call fcn.00404730
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00404e74
lea eax, [ebp - 0x3c]
call fcn.00404730
lea eax, [ebp - 8]
mov edx, dword [0x54775c]
call fcn.00406180
lea eax, [ebp - 4]
call fcn.00404e5c
ret