Function at 0x425b00
Capabilities:
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1028
call fcn.00431b90
mov eax, dword [0x4bfd50]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1014], edi
test edi, edi
jne 0x425b3d
call fcn.00428d68
mov dword [eax], 0x16
call fcn.00428ff6
or eax, 0xffffffff
jmp 0x425e81
push ebx
push esi
push edi
call fcn.00424916
sub ebx, ebx
push eax
pop esi
pop ecx
mov dword [ebp - 0x1018], esi
cmp dword [edi + 4], ebx
jge 0x425b58
mov dword [edi + 4], ebx
push 1
push ebx
push esi
call fcn.0043187f
add esp, 0xc
mov dword [ebp - 0x100c], eax
or eax, eax
js 0x425e1e
push esi
pop eax
push esi
pop ecx
sar eax, 5
and ecx, 0x1f
shl ecx, 6
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1020], ecx
mov edx, dword [eax*4 + 0x4c49e0]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1024], eax
mov dl, byte [ecx + edx + 0x24]
add dl, dl
sar dl, 1
test eax, 0x108
mov eax, dword [ebp - 0x100c]
mov byte [ebp - 0x1005], dl
jne 0x425bbe
sub eax, dword [edi + 4]
jmp 0x425e7f
mov esi, dword [edi]
mov edi, dword [edi + 8]
mov dword [ebp - 0x101c], edi
mov edi, esi
sub edi, dword [ebp - 0x101c]
test byte [ebp - 0x1024], 3
mov dword [ebp - 0x1028], edi
je 0x425d51
cmp dl, 1
jne 0x425d0d
mov edi, dword [ebp - 0x1010]
mov eax, dword [edi*4 + 0x4c49e0]
mov edi, dword [ebp - 0x1028]
cmp dword [ecx + eax + 0x30], ebx
je 0x425d0d
mov eax, dword [ebp - 0x1014]
shr edi, 1
cmp dword [eax + 4], ebx
jne 0x425c22
mov eax, dword [ebp - 0x100c]
jmp 0x425e7f
mov edx, dword [ebp - 0x1010]
push ebx
mov eax, dword [edx*4 + 0x4c49e0]
push dword [ecx + eax + 0x2c]
push dword [ecx + eax + 0x28]
push dword [ebp - 0x1018]
call fcn.00431a15
mov ecx, dword [ebp - 0x1020]
mov esi, eax
mov eax, dword [ebp - 0x1010]
add esp, 0x10
mov eax, dword [eax*4 + 0x4c49e0]
cmp esi, dword [ecx + eax + 0x28]
jne 0x425e1e
cmp edx, dword [ecx + eax + 0x2c]
jne 0x425e1e
push ebx
lea edx, [ebp - 0x101c]
push edx
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push dword [ecx + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x425e1e
mov ecx, dword [ebp - 0x100c]
push ebx
push ecx
push dword [ebp - 0x1018]
call fcn.0043187f
add esp, 0xc
test eax, eax
js 0x425e1e
mov eax, dword [ebp - 0x101c]
cmp edi, eax
ja 0x425e1e
lea ecx, [ebp - 0x1004]
or edi, edi
je 0x425cfd
mov edx, ecx
add edx, eax
dec edi
cmp ecx, edx
jae 0x425cfd
mov al, byte [ecx]
cmp al, 0xd
jne 0x425cec
lea eax, [edx - 1]
cmp ecx, eax
jae 0x425cf8
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x425cf8
mov ecx, eax
jmp 0x425cf8
movzx eax, al
movsx eax, byte [eax + 0x4bfee0]
add ecx, eax
inc ecx
test edi, edi
jne 0x425cce
lea eax, [ebp - 0x1004]
sub esi, eax
lea eax, [ecx + esi]
jmp 0x425e7f
mov edi, dword [ebp - 0x1010]
mov eax, dword [edi*4 + 0x4c49e0]
mov edi, dword [ebp - 0x1028]
test byte [ecx + eax + 4], 0x80
mov eax, dword [ebp - 0x100c]
je 0x425d46
mov edx, dword [ebp - 0x101c]
jmp 0x425d3c
cmp byte [edx], 0xa
jne 0x425d3b
inc edi
inc edx
cmp edx, esi
jb 0x425d35
mov dl, byte [ebp - 0x1005]
test eax, eax
jne 0x425d6a
push edi
pop eax
jmp 0x425e7f
test byte [ebp - 0x1024], 0x80
jne 0x425d46
call fcn.00428d68
mov dword [eax], 0x16
jmp 0x425e1e
test byte [ebp - 0x1024], 1
je 0x425e76
mov eax, dword [ebp - 0x1014]
cmp dword [eax + 4], ebx
jne 0x425d8f
mov eax, dword [ebp - 0x100c]
push ebx
pop edi
jmp 0x425e76
mov ebx, dword [ebp - 0x1010]
sub esi, dword [eax + 8]
add esi, dword [eax + 4]
push 0
mov eax, dword [ebx*4 + 0x4c49e0]
pop ebx
test byte [ecx + eax + 4], 0x80
je 0x425e6e
push 2
push ebx
push dword [ebp - 0x1018]
call fcn.0043187f
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
cmp eax, ecx
jne 0x425e0a
mov edx, dword [ebp - 0x1014]
mov eax, dword [edx + 8]
add eax, esi
push eax
pop ecx
sub ecx, dword [edx + 8]
cmp eax, dword [edx + 8]
sbb eax, eax
not eax
and eax, ecx
mov dword [ebp - 0x1020], eax
jbe 0x425e01
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1020]
cmp byte [eax], 0xa
jne 0x425dfb
inc esi
inc eax
inc ebx
cmp ebx, ecx
jb 0x425df5
test dword [edx + 0xc], 0x2000
jmp 0x425e5e
push ebx
push ecx
push dword [ebp - 0x1018]
call fcn.0043187f
add esp, 0xc
or eax, eax
jns 0x425e23
or eax, 0xffffffff
jmp 0x425e7f
mov eax, dword [ebp - 0x1014]
mov ecx, 0x200
cmp esi, ecx
ja 0x425e43
test byte [eax + 0xc], 8
je 0x425e43
test dword [eax + 0xc], 0x400
mov esi, ecx
je 0x425e46
mov esi, dword [eax + 0x18]
mov eax, dword [ebp - 0x1010]
mov ecx, dword [ebp - 0x1020]
mov eax, dword [eax*4 + 0x4c49e0]
test byte [ecx + eax + 4], 4
je 0x425e61
inc esi
mov dl, byte [ebp - 0x1005]
cmp dl, 1
jne 0x425e6e
shr esi, 1
mov eax, dword [ebp - 0x100c]
sub eax, esi
cmp dl, 1
jne 0x425e7d
shr edi, 1
add eax, edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042c836
push ebp
pop esp
pop ebp
ret