Function at 0x4df420
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1014
call fcn.0051e030
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x1010], eax
mov eax, dword [edi]
push ebp
mov ebp, dword [esp + 0x101c]
push 4
push ebp
push eax
call fcn.0051ef73
add esp, 0xc
cmp eax, 4
je 0x4df46d
xor al, al
pop ebp
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0051a8be
add esp, 0x1014
ret 4
push esi
mov esi, dword [ebp]
push ebp
call fcn.004e0240
test al, al
je 0x4dfdb1
xor esi, esi
cmp dword [ebp], esi
push ebx
mov dword [esp + 0xc], esi
jle 0x4df7b2
nop
mov ecx, dword [ebp + 4]
mov edx, dword [edi]
push 1
add ecx, esi
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 2
lea ecx, [esi + eax + 2]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 1
lea ecx, [esi + eax + 0x124]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 4
lea ecx, [esi + eax + 4]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 4
lea ecx, [esi + eax + 8]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 4
lea ecx, [esi + eax + 0xc]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov edx, dword [edi]
add esp, 0x48
push 4
lea ecx, [esi + eax + 0x10]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov ecx, dword [esi + eax + 0x10]
lea eax, [esi + eax + 0x10]
add esp, 0xc
sub ecx, 1
je 0x4df53a
sub ecx, 1
je 0x4df532
mov dword [eax], 2
jmp 0x4df540
mov dword [eax], 1
jmp 0x4df540
mov dword [eax], 0
mov edx, dword [edi]
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
push eax
mov eax, dword [edi]
lea edx, [esi + ecx + 0x14]
push edx
push eax
call fcn.0051ef73
mov ecx, dword [ebp + 4]
mov byte [esi + ecx + 0x32], 0
mov edx, dword [ebp + 4]
add esp, 0x18
mov byte [esi + edx + 0x31], 0x20
xor eax, eax
lea esp, [esp]
mov edx, dword [ebp + 4]
lea ecx, [esi + eax]
cmp byte [ecx + edx + 0x14], 0x27
lea ecx, [ecx + edx + 0x14]
jne 0x4df594
mov byte [ecx], 0x5f
inc eax
cmp eax, 0x1d
jl 0x4df580
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [esi + edx + 0x128]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov eax, dword [esi + edx + 0x128]
lea ebx, [esi + edx]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
add esp, 0x28
mov dword [ebx + 0x12c], eax
test eax, eax
je 0x4dfdca
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x128], eax
mov ecx, dword [ebp + 4]
xor ebx, ebx
lea eax, [esi + ecx]
add esp, 0xc
cmp dword [eax + 0x128], ebx
jle 0x4df676
mov edx, dword [eax + 0x12c]
mov eax, dword [edi]
lea ecx, [ebx + ebx]
push 1
add edx, ecx
push edx
push eax
call fcn.0051ef73
mov ecx, dword [ebp + 4]
mov edx, dword [esi + ecx + 0x12c]
mov ecx, dword [edi]
push 1
lea eax, [edx + ebx*2 + 1]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
inc ebx
lea eax, [esi + edx]
add esp, 0x18
cmp ebx, dword [eax + 0x128]
jl 0x4df635
mov eax, dword [ebp + 4]
mov edx, dword [edi]
push 4
lea ecx, [esi + eax + 0x114]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov ebx, dword [esi + eax + 0x114]
lea eax, [esi + eax + 0x114]
add esp, 0xc
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x4df6e6
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 4], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [esi + ecx + 0x114]
lea eax, [esi + ecx]
mov eax, dword [eax + 0x118]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [esi + edx + 0x11c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ebx, dword [esi + edx + 0x11c]
lea eax, [esi + edx]
add esp, 0x18
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x4df778
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x120], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x11c], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [esi + ecx + 0x11c]
lea eax, [esi + ecx]
mov eax, dword [eax + 0x120]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov eax, dword [esp + 0x18]
inc eax
add esp, 0xc
add esi, 0x130
cmp eax, dword [ebp]
mov dword [esp + 0xc], eax
jl 0x4df490
mov edx, dword [edi]
push 4
lea ebx, [ebp + 8]
push ebx
push edx
call fcn.0051ef73
add esp, 0xc
cmp eax, 4
jne 0x4dfdca
mov esi, dword [ebx]
push ebx
call fcn.004e0310
test al, al
je 0x4dfdca
xor esi, esi
cmp dword [ebx], esi
mov dword [esp + 0x10], esi
jle 0x4dfb0b
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
push 1
add eax, esi
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 2
lea eax, [edx + esi + 2]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 4]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 8]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0xc]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0x10]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + esi + 0x10]
lea eax, [edx + esi + 0x10]
add esp, 0x48
sub ecx, 1
je 0x4df882
sub ecx, 1
je 0x4df87a
mov dword [eax], 2
jmp 0x4df888
mov dword [eax], 1
jmp 0x4df888
mov dword [eax], 0
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [edi]
lea ecx, [eax + esi + 0x14]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 0xc]
mov byte [eax + esi + 0x32], 0
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov byte [ecx + esi + 0x31], 0x20
xor eax, eax
mov edx, dword [ebp + 0xc]
add edx, esi
cmp byte [edx + eax + 0x14], 0x27
lea ecx, [edx + eax + 0x14]
jne 0x4df8d4
mov byte [ecx], 0x5f
inc eax
cmp eax, 0x1d
jl 0x4df8c1
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0051ef73
add esp, 0x18
xor ebx, ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
add edx, esi
push 2
lea eax, [edx + ebx + 0x124]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
add edx, esi
push 4
lea eax, [edx + ebx + 0x128]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
add edx, esi
push 4
lea eax, [edx + ebx + 0x12c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
add edx, esi
push 4
lea eax, [edx + ebx + 0x130]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
add edx, esi
fld dword [edx + ebx + 0x12c]
lea eax, [edx + ebx + 0x12c]
fadd qword [0x574118]
push 4
fstp dword [eax]
mov ecx, dword [edi]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.0051ef73
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [edi]
add eax, esi
lea ecx, [eax + ebx + 0x134]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 0xc]
mov edx, dword [edi]
add esp, 0x48
add eax, esi
push 4
lea ecx, [eax + ebx + 0x234]
push ecx
push edx
call fcn.0051ef73
add ebx, 0x114
add esp, 0xc
cmp ebx, 0x33c
jl 0x4df900
mov eax, dword [ebp + 0xc]
mov edx, dword [edi]
push 4
lea ecx, [eax + esi + 0x114]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + esi + 0x114]
lea eax, [eax + esi + 0x114]
add esp, 0xc
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x4dfa3f
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 4], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + esi + 0x114]
lea eax, [ecx + esi]
mov eax, dword [eax + 0x118]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0x11c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + esi + 0x11c]
lea eax, [edx + esi]
add esp, 0x18
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x4dfad1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 0x120], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax + 0x11c], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + esi + 0x11c]
lea eax, [ecx + esi]
mov eax, dword [eax + 0x120]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
add esi, 0x460
cmp eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
jl 0x4df7f0
mov dword [esp + 0x18], 0
add ebp, 0x10
mov edx, dword [edi]
push 4
push ebp
push edx
call fcn.0051ef73
add esp, 0xc
cmp eax, 4
jne 0x4dfdca
mov esi, dword [ebp]
push ebp
call fcn.004e03e0
test al, al
je 0x4dfdca
cmp dword [ebp], 0
mov dword [esp + 0x10], 0
jle 0x4dfd99
xor esi, esi
mov eax, dword [ebp + 4]
mov ecx, dword [edi]
push 1
add eax, esi
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 2
lea eax, [edx + esi + 2]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 4]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 8]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0xc]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0x10]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edx + esi + 0x10]
lea eax, [edx + esi + 0x10]
add esp, 0x48
sub ecx, 1
je 0x4dfbe4
sub ecx, 1
je 0x4dfbdc
mov dword [eax], 2
jmp 0x4dfbea
mov dword [eax], 1
jmp 0x4dfbea
mov dword [eax], 0
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 4]
push edx
mov edx, dword [edi]
lea ecx, [eax + esi + 0x14]
push ecx
push edx
call fcn.0051ef73
mov eax, dword [ebp + 4]
mov byte [eax + esi + 0x32], 0
mov ecx, dword [ebp + 4]
add esp, 0x18
mov byte [ecx + esi + 0x31], 0x20
xor eax, eax
mov edx, dword [ebp + 4]
add edx, esi
cmp byte [edx + eax + 0x14], 0x27
lea ecx, [edx + eax + 0x14]
jne 0x4dfc36
mov byte [ecx], 0x5f
inc eax
cmp eax, 0x1d
jl 0x4dfc23
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0x114]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ebx, dword [edx + esi + 0x114]
lea eax, [edx + esi + 0x114]
add esp, 0x24
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x4dfccd
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 4], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + esi + 0x114]
lea eax, [ecx + esi]
mov eax, dword [eax + 0x118]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ecx, dword [edi]
push 4
lea eax, [edx + esi + 0x11c]
push eax
push ecx
call fcn.0051ef73
mov edx, dword [ebp + 4]
mov ebx, dword [edx + esi + 0x11c]
lea eax, [edx + esi]
add esp, 0x18
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x4dfd5f
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051a8b3
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx + 0x120], eax
test eax, eax
je 0x4dfdca
lea edx, [ebx + ebx]
push edx
push 0
push eax
call fcn.0051d6f0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax + 0x11c], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + esi + 0x11c]
lea eax, [ecx + esi]
mov eax, dword [eax + 0x120]
mov ecx, dword [edi]
add edx, edx
push edx
push eax
push ecx
call fcn.0051ef73
mov eax, dword [esp + 0x1c]
inc eax
add esp, 0xc
add esi, 0x124
cmp eax, dword [ebp]
mov dword [esp + 0x10], eax
jl 0x4dfb52
mov eax, dword [esp + 0x18]
inc eax
add ebp, 8
cmp eax, 0xb
mov dword [esp + 0x18], eax
jl 0x4dfb16
mov al, 1
pop ebx
mov ecx, dword [esp + 0x1018]
pop esi
pop ebp
xor ecx, esp
call fcn.0051a8be
add esp, 0x1014
ret 4
xor al, al
jmp 0x4dfdb0