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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.10004a00
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], ebx
test ebx, ebx
jne 0x10055c82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.1004d518
jmp 0x10055ecf
xor eax, eax
push ebp
push 0x10055ec8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2038], eax
mov dword [ecx + 0x203c], edx
push 0
push 0x2000
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x203c]
mov eax, dword [eax + 0x2038]
call fcn.100055c4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2028], eax
mov dword [ecx + 0x202c], edx
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2048]
push eax
push 0xe1
push 1
push 9
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.10052db8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x203c], 0
jne 0x10055d1a
cmp dword [eax + 0x2038], 0x2000
jbe 0x10055e42
jmp 0x10055d87
jle 0x10055e42
jmp 0x10055d87
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp - 4]
add eax, 0x2030
push eax
push 0x2000
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
lea edx, [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, 0x2000
call fcn.1004d600
mov eax, dword [ebp - 4]
add dword [eax + 0x20], 0x2000
adc dword [eax + 0x24], 0
push 1
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x203c]
mov eax, dword [eax + 0x2038]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x2028]
sbb edx, dword [ecx + 0x202c]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x24]
jne 0x10055db4
cmp eax, dword [ecx + 0x20]
jbe 0x10055dc6
jmp 0x10055db6
jle 0x10055dc6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2054], 0
je 0x10055d22
mov eax, dword [ebp - 4]
cmp dword [eax + 0x202c], 0
jne 0x10055de1
cmp dword [eax + 0x2028], 0
jbe 0x10055eae
jmp 0x10055de7
jle 0x10055eae
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp - 4]
add eax, 0x2030
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2028]
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2028]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.1004d600
jmp 0x10055eae
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2038]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x28
xor ecx, ecx
call fcn.10003054
push 0
mov eax, dword [ebp - 4]
add eax, 0x2030
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2038]
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2038]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.1004d600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10055ecf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop esi
pop ebx
pop ecx
pop ebp
ret