Function at 0x4e04d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x100c
call fcn.0051e030
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebp
mov ebp, dword [esp + 0x1014]
mov eax, dword [ebp]
push 4
push esi
push eax
call fcn.0051ef73
add esp, 0xc
cmp eax, 4
je 0x4e051e
xor al, al
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0051a8be
add esp, 0x100c
ret 4
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x1d0
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
xor edi, edi
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4e054a
xor al, al
jmp 0x4e0c87
mov ecx, dword [esi]
imul ecx, ecx, 0x1d0
push ecx
push edi
push eax
call fcn.0051d6f0
add esp, 0xc
cmp dword [esi], edi
mov dword [esp + 0xc], edi
jle 0x4e0c85
push ebx
lea ebx, [ebx]
mov edx, dword [esi + 4]
mov byte [edx + edi + 0x1cc], 1
mov eax, dword [esi + 4]
mov ecx, dword [ebp]
push 2
add eax, edi
push eax
push ecx
call fcn.0051ef73
mov eax, dword [ebp]
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [ebp]
lea eax, [edx + edi + 2]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esi + 4]
mov byte [edx + edi + 0x20], 0
mov eax, dword [esi + 4]
add esp, 0x24
mov byte [eax + edi + 0x1f], 0x20
xor eax, eax
jmp 0x4e05d0
mov ecx, dword [esi + 4]
add ecx, edi
cmp byte [ecx + eax + 2], 0x27
lea ecx, [ecx + eax + 2]
jne 0x4e05e3
mov byte [ecx], 0x5f
inc eax
cmp eax, 0x1d
jl 0x4e05d0
mov eax, dword [ebp]
push 4
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [esi + 4]
mov eax, dword [ebp]
push 2
lea edx, [ecx + edi + 0x102]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [esi + 4]
mov eax, dword [ebp]
push 2
lea edx, [ecx + edi + 0x104]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [esi + 4]
lea eax, [ecx + edi + 0x104]
add esp, 0x30
cmp word [eax], 0x3c
jne 0x4e0653
mov edx, 0x46
mov word [eax], dx
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x106]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x107]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x108]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x109]
push ecx
push edx
call fcn.0051ef73
add esp, 0x30
xor ebx, ebx
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x10a]
push ecx
push edx
call fcn.0051ef73
inc ebx
add esp, 0xc
cmp ebx, 6
jl 0x4e06b0
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x110]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x112]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x114]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x115]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x116]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x118]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x11a]
push ecx
push edx
call fcn.0051ef73
add esp, 0xc
xor ebx, ebx
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x11b]
push ecx
push edx
call fcn.0051ef73
inc ebx
add esp, 0xc
cmp ebx, 6
jl 0x4e0773
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 4
lea ecx, [eax + edi + 0x124]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 4
lea ecx, [eax + edi + 0x128]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 4
lea ecx, [eax + edi + 0x12c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 4
lea ecx, [eax + edi + 0x130]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 4
lea ecx, [eax + edi + 0x134]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x138]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x139]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x13a]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x13c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x13d]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x13e]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
push 1
lea ecx, [eax + edi + 0x13f]
mov edx, dword [ebp]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x140]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x141]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x142]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x143]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x144]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x145]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x146]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x147]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x148]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x14a]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x14c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x14d]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x14e]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x14f]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x150]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x151]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x152]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x153]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x154]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x155]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x156]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x15a]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 2
lea ecx, [eax + edi + 0x158]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x15b]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
push 1
lea ecx, [eax + edi + 0x15c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
push 1
lea ecx, [eax + edi + 0x15d]
push ecx
push edx
call fcn.0051ef73
add esp, 0x18
xor ebx, ebx
nop
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 2
lea ecx, [eax + ebx + 0x160]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x162]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x163]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x164]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 4
lea ecx, [eax + ebx + 0x168]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 2
lea ecx, [eax + ebx + 0x16c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
add eax, edi
push 2
lea ecx, [eax + ebx + 0x16e]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x170]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 4
lea ecx, [eax + ebx + 0x174]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 4
lea ecx, [eax + ebx + 0x178]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x17c]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add eax, edi
push 1
lea ecx, [eax + ebx + 0x17d]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esi + 4]
mov edx, dword [ebp]
add esp, 0x48
add eax, edi
push 2
lea ecx, [eax + ebx + 0x17e]
push ecx
push edx
call fcn.0051ef73
add ebx, 0x20
add esp, 0xc
cmp ebx, 0x60
jl 0x4e0af0
mov ebx, 7
mov ecx, dword [ebp]
push 4
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0051ef73
add esp, 0x18
sub ebx, 1
jne 0x4e0c42
mov eax, dword [esp + 0x10]
inc eax
add edi, 0x1d0
cmp eax, dword [esi]
mov dword [esp + 0x10], eax
jl 0x4e0570
pop ebx
mov al, 1
mov ecx, dword [esp + 0x1010]
pop edi
pop ebp
xor ecx, esp
call fcn.0051a8be
add esp, 0x100c
ret 4