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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x5489a4
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 0x548dc5
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 0x5489f9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x548d77
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 [0x548968]
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 0x548a48
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x548d77
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
cmp word [eax], 0xfeff
je 0x548a62
mov ebx, 0xd
jmp 0x548d77
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 + 0x30c]
call fcn.004a8894
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, 0x548ddc
mov eax, dword [ebx + 0x30c]
call fcn.004a88d0
mov eax, dword [ebx + 0x30c]
call fcn.004a8894
mov edx, 0x548ddc
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x328]
call fcn.004bb078
call fcn.004932f0
mov eax, dword [ebx + 0x328]
call fcn.004bb078
call fcn.004932d0
mov eax, dword [ebx + 0x324]
call fcn.004bb078
call fcn.004932f0
mov eax, dword [ebx + 0x324]
mov edx, dword [eax]
call dword [edx + 0xd4]
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jbe 0x548d2e
mov dword [ebp - 0x1c], eax
mov esi, 1
xor edx, edx
mov eax, dword [ebx + 0x320]
call fcn.004910ec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x320]
call fcn.00491108
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x320]
call fcn.004910f8
mov dl, 1
mov eax, dword [ebx + 0x320]
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 0x548b68
cmp edi, 4
jae 0x548b68
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 0x548d24
mov eax, dword [ebp - 8]
cmp word [eax + esi*2 + 2], 0xa
jne 0x548d24
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 0x548bae
xor edi, edi
jmp 0x548d24
xor edi, edi
mov eax, dword [ebx + 0x328]
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 + 0x324]
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 + 0x30c]
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 0x548d24
mov eax, dword [ebx + 0x30c]
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 0x548afa
xor edx, edx
mov eax, dword [ebx + 0x320]
call fcn.0044d420
xor edx, edx
mov eax, dword [ebx + 0x320]
call fcn.0044d420
xor edx, edx
mov eax, dword [ebx + 0x320]
call fcn.0044d420
mov eax, dword [ebx + 0x324]
call fcn.004bb078
call fcn.004934cc
mov eax, dword [ebx + 0x328]
call fcn.004bb078
call fcn.004934cc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548dcc
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 [0x548968]
call fcn.00406180
lea eax, [ebp - 4]
call fcn.00404e5c
ret