Function at 0x4e5f10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
test edi, edi
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
jne 0x4e5f4a
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov ecx, dword [edi + 0xc]
cmp ecx, dword [edi + 8]
ja 0x4e627f
mov eax, dword [edi + 4]
add eax, ecx
mov ecx, dword [esi + 0x10]
cmp dword [ecx + 0x14], 0
je 0x4e5fda
mov edx, dword [ecx + 0x1c]
cmp edx, eax
ja 0x4e5f6d
mov eax, edx
mov dword [ecx + 0x18], eax
mov ecx, dword [edi + 0xc]
add ecx, 2
cmp ecx, dword [edi + 8]
ja 0x4e627f
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e6005
mov eax, dword [esi + 0x1c]
mov ebx, 2
cmp eax, ebx
jb 0x4e5f9f
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4e5fac
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e627f
add ecx, edx
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 2
je 0x4e6030
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call fcn.006081d8
add esp, 0xc
test eax, eax
je 0x4e5f70
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1c]
push 2
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4e6030
cmp dword [esi + 4], eax
jne 0x4e627f
cmp dword [esi + 0xc], eax
jne 0x4e627f
lea eax, [esp + 0x14]
call fcn.004dc400
mov ax, word [esp + 0x14]
cmp ax, 0x3e8
movzx edx, ax
lea ebx, [edx + edx*2]
lea ebx, [ebx*4 + 2]
mov dword [esp + 0x24], ebx
ja 0x4e627f
mov esi, dword [edi + 8]
cmp ebx, esi
ja 0x4e627f
mov eax, dword [edi + 0xc]
lea ecx, [eax + ebx]
cmp ecx, esi
ja 0x4e627f
test edx, edx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 4]
lea ebp, [eax + ecx + 2]
mov dword [esp + 0x20], 0
jbe 0x4e617a
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e60f2
mov eax, dword [esi + 0x1c]
mov ebx, 0xc
cmp eax, ebx
jb 0x4e60b8
mov ecx, dword [esi + 0x18]
lea edi, [ecx + 0xc]
cmp edi, eax
mov edi, dword [esp + 0x18]
jbe 0x4e60c1
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e60da
push ebx
add ecx, edx
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 0xc
je 0x4e612d
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x4e6113
push eax
push 1
lea ecx, [esp + 0x48]
push 0xc
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e6113
xor esi, esi
jmp 0x4e6123
cmp dword [esi + 4], 0
je 0x4e6120
mov esi, 2
jmp 0x4e6123
mov esi, dword [esi + 0xc]
test esi, esi
mov eax, esi
jne 0x4e6281
lea edx, [esp + 0x40]
call fcn.004dc4b0
mov esi, dword [esp + 0x1c]
push ebp
lea ebx, [esp + 0x44]
mov eax, edi
mov ecx, esi
call fcn.004ea8e0
add ebp, 0xc
mov ecx, ebp
mov eax, esi
call fcn.004e39f0
test eax, eax
jne 0x4e6281
mov eax, dword [esp + 0x20]
movzx edx, word [esp + 0x14]
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x4e6090
mov ebx, dword [esp + 0x24]
jmp 0x4e617e
mov esi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x4e627f
mov eax, dword [esi + 0xc]
shr eax, 9
test al, 1
je 0x4e627f
mov eax, dword [edi + 8]
lea ecx, [ebx + 4]
cmp ecx, eax
ja 0x4e627f
mov edx, dword [edi + 0xc]
lea ecx, [edx + ebx + 4]
cmp ecx, eax
ja 0x4e627f
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e620d
mov eax, dword [esi + 0x1c]
mov ebx, 4
cmp eax, ebx
jb 0x4e61d2
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 4]
cmp ebp, eax
jbe 0x4e61df
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e627f
add ecx, edx
push ebx
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 4
je 0x4e6230
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4e6230
cmp dword [esi + 4], eax
jne 0x4e627f
cmp dword [esi + 0xc], eax
jne 0x4e627f
cmp dword [esp + 0x18], 0
je 0x4e627f
lea ecx, [esp + 0x18]
call fcn.004dc410
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
add eax, 2
lea esi, [esp + 0x28]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 1
call fcn.004eb400
test eax, eax
je 0x4e5f32
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret