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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0040a3bc
xor eax, eax
push ebp
push 0x9d5ec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00427dcc
test al, al
je 0x9d5e97
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040b3a0
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x9d5e97
xor edx, edx
push ebp
push 0x9d5e84
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x10f8], edx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x38]
mov byte [ebp - 0xd], al
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.009d61ec
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0x400
ja 0x9d5c31
call fcn.00409a4c
jmp 0x9d5e97
push 0
lea eax, [ebp - 0x18]
push eax
push 0x400
mov eax, dword [ebp - 0xc]
add eax, 0xc84
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, 0x9d5edc
cmp word [eax + 0x4c], 0x30
je 0x9d5c6e
mov ecx, 0x113
mov edx, 0x9d5fe0
mov eax, 0x9d609c
call fcn.0040a124
mov eax, 0x9d60cc
cmp word [eax + 0x4c], 0x31
je 0x9d5c8e
mov ecx, 0x114
mov edx, 0x9d5fe0
mov eax, 0x9d609c
call fcn.0040a124
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
add edx, 0xc84
call fcn.0040b3d8
lea eax, [ebp - 0x220]
push eax
mov ecx, 0x8f
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040b7dc
mov eax, dword [ebp - 0x220]
mov edx, 0x9d60cc
call fcn.0040b7a4
je 0x9d5cff
lea eax, [ebp - 0x224]
push eax
mov ecx, 0x7b
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040b7dc
mov eax, dword [ebp - 0x224]
mov edx, 0x9d5edc
call fcn.0040b7a4
je 0x9d5cff
call fcn.00409a4c
jmp 0x9d5e97
lea eax, [ebp - 0x228]
mov edx, dword [ebp - 8]
movzx edx, word [edx + 0x4c]
call fcn.0040b3c8
mov eax, dword [ebp - 0x228]
call fcn.0042755c
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], ebx
dec ebx
jl 0x9d5d33
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 0xfde9
jmp 0x9d5d3b
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x2c], edx
mov byte [ebp - 0x19], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x18]
push eax
push 4
mov eax, dword [ebp - 0xc]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x18]
push eax
push 4
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x18]
push eax
push 4
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
push 0
lea eax, [ebp - 0x18]
push eax
push 0x24
mov eax, dword [ebp - 0xc]
add eax, 0x1084
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0xc]
add eax, 0x3c
lea edx, [ebp - 0x21c]
mov ecx, 0x101
call fcn.0040b45c
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10a8], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x10d0], edx
mov eax, 1
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + eax*4 + 0x10a4]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + eax*4 + 0x1080]
mov ebx, eax
dec ebx
add ebx, 4
imul ecx, ebx
add edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x10a8], edx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + eax*4 + 0x10cc]
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4 + 0x1080]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x10d0], edx
inc eax
cmp eax, 0xa
jne 0x9d5e12
mov eax, dword [ebp - 0xc]
add eax, 0x34
mov edx, dword [ebp - 4]
call fcn.0040a6b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9d5e8b
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9d5ec9
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.0040a338
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a338
ret