Function at 0x4e8d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0x14], 0x135
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
jne 0x4e8d5f
mov edx, dword [esp + 0x1c]
push 0x135
push ebp
push edx
call fcn.004eba70
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov edi, dword [esp + 0x1c]
push eax
push edi
mov eax, ebp
mov esi, ecx
call fcn.004efb00
test eax, eax
jne 0x4e8fa1
mov eax, dword [ebp + 4]
sub eax, 1
mov dword [esp + 0x20], 0
je 0x4e8d95
push 0
add eax, 1
push eax
lea ebx, [esp + 0x28]
call fcn.004592b0
cmp dword [ebp + 4], 1
jbe 0x4e8e41
lea eax, [esp + 0x20]
call fcn.00459380
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e8db5
add eax, 4
jmp 0x4e8db7
xor eax, eax
mov ecx, dword [ebp + 4]
mov byte [ecx + eax - 1], 0
lea eax, [esp + 0x20]
call fcn.00459380
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e8dd5
lea ebx, [eax + 4]
jmp 0x4e8dd7
xor ebx, ebx
mov esi, dword [ebp + 4]
mov edi, dword [edi + 0x10]
sub esi, 1
cmp dword [edi + 0x14], 0
je 0x4e8e0b
mov eax, esi
call fcn.00410220
cmp eax, esi
je 0x4e8e41
lea edi, [esp + 0x20]
mov esi, 2
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x4e8e27
push eax
push 1
push esi
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e8e27
xor edi, edi
jmp 0x4e8e37
cmp dword [edi + 4], 0
je 0x4e8e34
mov edi, 2
jmp 0x4e8e37
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4e8f81
cmp dword [ebp + 4], 0
jbe 0x4e8ef7
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e8eab
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4e8e6f
mov ecx, dword [esi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
jbe 0x4e8e78
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4e8e91
push edi
add ecx, edx
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
je 0x4e8ee4
lea edi, [esp + 0x20]
mov esi, 2
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x4e8ecc
push eax
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e8ecc
xor esi, esi
jmp 0x4e8edc
cmp dword [esi + 4], 0
je 0x4e8ed9
mov esi, 2
jmp 0x4e8edc
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e8f81
mov eax, dword [esp + 0x14]
test al, al
je 0x4e8ef7
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00459520
lea eax, [esp + 0x20]
call fcn.00459380
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4e8f0d
lea edx, [ebx + 4]
jmp 0x4e8f0f
xor edx, edx
xor ecx, ecx
test ebx, ebx
je 0x4e8f96
mov eax, dword [ebx]
shr eax, 8
je 0x4e8f96
add eax, 0xffffffff
cmp ecx, eax
jae 0x4e8f96
mov al, byte [ecx + edx]
cmp al, 0x20
je 0x4e8f32
test al, al
jne 0x4e8f37
add ecx, 1
jmp 0x4e8f11
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov esi, dword [eax]
mov edi, dword [esp + 0x24]
call fcn.004dabf0
test al, al
jne 0x4e8f7f
test dword [ebx], 0xffffff00
je 0x4e8f7f
cmp byte [ebx + 4], al
je 0x4e8f7f
lea ecx, [esp + 0x20]
push ecx
mov edx, edi
push edx
push esi
call fcn.00406b00
lea edi, [esp + 0x20]
mov esi, eax
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
xor esi, esi
lea edi, [esp + 0x20]
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
lea edi, [esp + 0x20]
call fcn.00401700
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc