Function at 0x424770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
push 0
push 0x2000
mov eax, dword [0x5200fc]
push eax
mov ecx, dword [0x5200f8]
push ecx
call fcn.00414310
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x14]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jl 0x4248bb
jg 0x4247c0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x4248bb
push 0
mov ecx, dword [0x5200f8]
sub ecx, dword [ebp - 0x18]
mov edx, dword [0x5200fc]
sbb edx, dword [ebp - 0x14]
push edx
push ecx
mov eax, dword [0x5200f0]
push eax
call fcn.0040a3b6
add esp, 0x10
mov dword [0x520100], eax
mov dword [0x520104], edx
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x5200cc]
push edx
mov eax, dword [0x5200f0]
push eax
call fcn.0041925a
add esp, 0xc
mov dword [0x5200d4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [0x5200d4], ecx
je 0x424822
mov eax, 2
jmp 0x424a35
mov edx, dword [ebp - 0x18]
add edx, dword [0x5200cc]
mov eax, dword [ebp + 0x14]
add eax, 4
sub edx, eax
mov dword [0x5200d0], edx
jmp 0x42484a
mov ecx, dword [0x5200d0]
sub ecx, 1
mov dword [0x5200d0], ecx
mov edx, dword [0x5200d0]
cmp edx, dword [0x5200cc]
jb 0x4248a2
mov eax, dword [0x5200d0]
movzx ecx, byte [eax]
cmp ecx, 0x50
jne 0x4248a0
push 4
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x5200d0]
push eax
call fcn.00406b9a
add esp, 0xc
test eax, eax
jne 0x4248a0
mov ecx, dword [0x5200d0]
sub ecx, dword [0x5200cc]
mov edx, dword [0x5200d4]
sub edx, ecx
mov dword [0x5200d4], edx
mov dword [ebp - 4], 1
jmp 0x4248a2
jmp 0x42483b
push 3
mov eax, dword [0x5200cc]
push eax
mov ecx, dword [0x520114]
push ecx
call fcn.004043d0
add esp, 0xc
jmp 0x4248d7
mov edx, dword [0x5200f8]
sub edx, dword [ebp - 0x18]
mov eax, dword [0x5200fc]
sbb eax, dword [ebp - 0x14]
mov dword [0x520100], edx
mov dword [0x520104], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
sbb edx, dword [ebp - 0x14]
add ecx, 0x1fff
adc edx, 0
push 0
push 0x2000
push edx
push ecx
call fcn.00413870
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
jmp 0x42490f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x424a2c
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jg 0x424a2c
mov edx, dword [0x520100]
sub edx, 0x2000
mov eax, dword [0x520104]
sbb eax, 0
mov dword [0x520100], edx
mov dword [0x520104], eax
push 0
mov ecx, dword [0x520104]
push ecx
mov edx, dword [0x520100]
push edx
mov eax, dword [0x5200f0]
push eax
call fcn.0040a3b6
add esp, 0x10
push 0x2000
mov ecx, dword [0x5200cc]
push ecx
mov edx, dword [0x5200f0]
push edx
call fcn.0041925a
add esp, 0xc
mov dword [0x5200d4], eax
cmp dword [0x5200d4], 0x2000
je 0x424998
mov eax, 2
jmp 0x424a35
mov eax, dword [0x5200cc]
add eax, 0x1fff
mov dword [0x5200d0], eax
jmp 0x4249b8
mov ecx, dword [0x5200d0]
sub ecx, 1
mov dword [0x5200d0], ecx
mov edx, dword [0x5200d0]
cmp edx, dword [0x5200cc]
jb 0x424a10
mov eax, dword [0x5200d0]
movzx ecx, byte [eax]
cmp ecx, 0x50
jne 0x424a0e
push 4
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x5200d0]
push eax
call fcn.00406b9a
add esp, 0xc
test eax, eax
jne 0x424a0e
mov ecx, dword [0x5200d0]
sub ecx, dword [0x5200cc]
mov edx, dword [0x5200d4]
sub edx, ecx
mov dword [0x5200d4], edx
mov dword [ebp - 4], 1
jmp 0x424a10
jmp 0x4249a9
push 3
mov eax, dword [0x5200cc]
push eax
mov ecx, dword [0x520114]
push ecx
call fcn.004043d0
add esp, 0xc
jmp 0x424906
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret