Function at 0x4e7050
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 0x4e708a
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 0x4e73bf
mov eax, dword [edi + 4]
add eax, ecx
mov ecx, dword [esi + 0x10]
cmp dword [ecx + 0x14], 0
je 0x4e711a
mov edx, dword [ecx + 0x1c]
cmp edx, eax
ja 0x4e70ad
mov eax, edx
mov dword [ecx + 0x18], eax
mov ecx, dword [edi + 0xc]
add ecx, 2
cmp ecx, dword [edi + 8]
ja 0x4e73bf
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e7145
mov eax, dword [esi + 0x1c]
mov ebx, 2
cmp eax, ebx
jb 0x4e70df
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4e70ec
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e73bf
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 0x4e7170
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 0x4e70b0
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 0x4e7170
cmp dword [esi + 4], eax
jne 0x4e73bf
cmp dword [esi + 0xc], eax
jne 0x4e73bf
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 0x4e73bf
mov esi, dword [edi + 8]
cmp ebx, esi
ja 0x4e73bf
mov eax, dword [edi + 0xc]
lea ecx, [eax + ebx]
cmp ecx, esi
ja 0x4e73bf
test edx, edx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 4]
lea ebp, [eax + ecx + 2]
mov dword [esp + 0x20], 0
jbe 0x4e72ba
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e7232
mov eax, dword [esi + 0x1c]
mov ebx, 0xc
cmp eax, ebx
jb 0x4e71f8
mov ecx, dword [esi + 0x18]
lea edi, [ecx + 0xc]
cmp edi, eax
mov edi, dword [esp + 0x18]
jbe 0x4e7201
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e721a
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 0x4e726d
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 0x4e7253
push eax
push 1
lea ecx, [esp + 0x48]
push 0xc
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e7253
xor esi, esi
jmp 0x4e7263
cmp dword [esi + 4], 0
je 0x4e7260
mov esi, 2
jmp 0x4e7263
mov esi, dword [esi + 0xc]
test esi, esi
mov eax, esi
jne 0x4e73c1
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.004eb140
add ebp, 0xc
mov ecx, ebp
mov eax, esi
call fcn.004e39f0
test eax, eax
jne 0x4e73c1
mov eax, dword [esp + 0x20]
movzx edx, word [esp + 0x14]
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x4e71d0
mov ebx, dword [esp + 0x24]
jmp 0x4e72be
mov esi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x4e73bf
mov eax, dword [esi + 0xc]
shr eax, 9
test al, 1
je 0x4e73bf
mov eax, dword [edi + 8]
lea ecx, [ebx + 4]
cmp ecx, eax
ja 0x4e73bf
mov edx, dword [edi + 0xc]
lea ecx, [edx + ebx + 4]
cmp ecx, eax
ja 0x4e73bf
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e734d
mov eax, dword [esi + 0x1c]
mov ebx, 4
cmp eax, ebx
jb 0x4e7312
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 4]
cmp ebp, eax
jbe 0x4e731f
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4e73bf
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 0x4e7370
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 0x4e7370
cmp dword [esi + 4], eax
jne 0x4e73bf
cmp dword [esi + 0xc], eax
jne 0x4e73bf
cmp dword [esp + 0x18], 0
je 0x4e73bf
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 0x4e7072
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