Function at 0x4e7590
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 0x4e75bf
mov edx, dword [esp + 0x1c]
push 0x135
push ebp
push edx
call fcn.004ebe40
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, ebp
mov edi, ecx
call fcn.004ef410
test eax, eax
jne 0x4e7801
mov eax, dword [ebp + 4]
sub eax, 1
mov dword [esp + 0x20], 0
je 0x4e75f5
push 0
add eax, 1
push eax
lea ebx, [esp + 0x28]
call fcn.004592b0
cmp dword [ebp + 4], 1
jbe 0x4e76a5
lea eax, [esp + 0x20]
call fcn.00459380
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e7615
add eax, 4
jmp 0x4e7617
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 0x4e7635
lea ebx, [eax + 4]
jmp 0x4e7637
xor ebx, ebx
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 4]
mov edi, dword [edx + 0x10]
sub esi, 1
cmp dword [edi + 0x14], 0
je 0x4e766f
mov eax, esi
call fcn.00410220
cmp eax, esi
je 0x4e76a5
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 0x4e768b
push eax
push 1
push esi
push ebx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e768b
xor edi, edi
jmp 0x4e769b
cmp dword [edi + 4], 0
je 0x4e7698
mov edi, 2
jmp 0x4e769b
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4e77e1
cmp dword [ebp + 4], 0
jbe 0x4e775b
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4e770f
mov eax, dword [esi + 0x1c]
mov edi, 1
cmp eax, edi
jb 0x4e76d3
mov ecx, dword [esi + 0x18]
lea ebx, [ecx + 1]
cmp ebx, eax
jbe 0x4e76dc
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov edi, eax
je 0x4e76f5
add ecx, edx
push edi
push ecx
lea ecx, [esp + 0x1c]
push ecx
call fcn.0060d1b0
add dword [esi + 0x18], edi
add esp, 0xc
cmp edi, 1
je 0x4e7748
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 0x4e7730
push eax
push 1
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e7730
xor esi, esi
jmp 0x4e7740
cmp dword [esi + 4], 0
je 0x4e773d
mov esi, 2
jmp 0x4e7740
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e77e1
mov eax, dword [esp + 0x14]
test al, al
je 0x4e775b
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00459520
lea eax, [esp + 0x20]
call fcn.00459380
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4e7771
lea edx, [ebx + 4]
jmp 0x4e7773
xor edx, edx
xor ecx, ecx
test ebx, ebx
je 0x4e77f6
mov eax, dword [ebx]
shr eax, 8
je 0x4e77f6
add eax, 0xffffffff
cmp ecx, eax
jae 0x4e77f6
mov al, byte [ecx + edx]
cmp al, 0x20
je 0x4e7792
test al, al
jne 0x4e7797
add ecx, 1
jmp 0x4e7775
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
mov edi, dword [esp + 0x24]
call fcn.004dabf0
test al, al
jne 0x4e77df
test dword [ebx], 0xffffff00
je 0x4e77df
cmp byte [ebx + 4], al
je 0x4e77df
lea edx, [esp + 0x20]
push edx
mov eax, edi
push eax
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