Function at 0x4accfd
Capabilities:
Read file on windows

Disassembly:
mov esi, esi
mov eax, 0x1020
push ebp
mov ebp, esp
call fcn.004b13b0
mov eax, dword [0x4ef1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004ac9b0
mov esi, eax
xor eax, eax
cmp dword [ebx + 4], eax
pop ecx
mov dword [ebp - 0x1018], esi
jge 0x4acd35
mov dword [ebx + 4], eax
push 1
push eax
push eax
push esi
call fcn.004ada3b
add esp, 0x10
or edx, edx
mov edi, eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], edx
jg 0x4acd64
jl 0x4acd5a
or edi, edi
jae 0x4acd64
or eax, 0xffffffff
or edx, eax
jmp 0x4ad03a
mov eax, esi
sar eax, 5
lea eax, [eax*4 + 0x5001c0]
mov dword [ebp - 0x101c], eax
and esi, 0x1f
shl esi, 6
mov eax, dword [eax]
add eax, esi
mov cl, byte [eax + 0x24]
add cl, cl
sar cl, 1
test dword [ebx + 0xc], 0x108
mov byte [ebp - 0x1005], cl
jne 0x4acdad
mov ecx, dword [ebp - 0x1010]
mov eax, dword [ebx + 4]
cdq
sub edi, eax
sbb ecx, edx
mov eax, edi
mov edx, ecx
jmp 0x4ad03a
mov edx, dword [ebx + 8]
mov ecx, dword [ebx]
mov edi, ecx
sub edi, edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x100c], edi
test dl, 3
je 0x4acf22
cmp byte [ebp - 0x1005], 1
jne 0x4aceee
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x4aceee
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [ebx + 4], edx
jne 0x4acdfe
mov edx, dword [ebp - 0x1010]
mov eax, dword [ebp - 0x1014]
jmp 0x4ad03a
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.004ada3b
mov edi, eax
mov ebx, edx
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
add eax, esi
sub esp, 0xfffffff0
cmp edi, dword [eax + 0x28]
jne 0x4acd5a
cmp ebx, dword [eax + 0x2c]
jne 0x4acd5a
lea ecx, [ebp - 0x100c]
push 0
push ecx
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x4acd5a
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004ada3b
add esp, 0x10
or edx, edx
jg 0x4ace86
jl 0x4acd5a
or eax, eax
jb 0x4acd5a
mov ecx, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1020]
cmp esi, ecx
ja 0x4acd5a
lea eax, [ebp - 0x1004]
test esi, esi
je 0x4acedb
lea edx, [ebp + ecx - 0x1004]
dec esi
cmp eax, edx
jae 0x4acedb
mov cl, byte [eax]
cmp cl, 0xd
jne 0x4aceca
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x4aced6
lea ecx, [eax + 1]
cmp byte [ecx], 0xa
jne 0x4aced6
mov eax, ecx
jmp 0x4aced6
movzx ecx, cl
movsx ecx, byte [ecx + 0x4eedd8]
add eax, ecx
inc eax
test esi, esi
jne 0x4aceab
lea ecx, [ebp - 0x1004]
sub eax, ecx
xor edx, edx
add eax, edi
adc edx, ebx
jmp 0x4ad03a
test byte [eax + 4], 0x80
je 0x4acf09
mov edx, dword [ebx + 8]
jmp 0x4acf05
cmp byte [edx], 0xa
jne 0x4acf04
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x4acef9
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x4acf36
mov eax, dword [ebp - 0x100c]
jmp 0x4ad03a
test dl, dl
js 0x4acf09
call fcn.004a6a4b
mov dword [eax], 0x16
jmp 0x4acd5a
test byte [ebx + 0xc], 1
je 0x4ad017
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4acf52
and dword [ebp - 0x100c], edx
jmp 0x4ad017
sub ecx, dword [ebx + 8]
add ecx, edx
test byte [eax + 4], 0x80
mov edi, ecx
je 0x4acfff
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.004ada3b
sub esp, 0xfffffff0
cmp eax, dword [ebp - 0x1014]
jne 0x4acfa3
cmp edx, dword [ebp - 0x1010]
jne 0x4acfa3
mov ecx, dword [ebx + 8]
lea edx, [ecx + edi]
jmp 0x4acf96
cmp byte [ecx], 0xa
jne 0x4acf95
inc edi
inc ecx
cmp ecx, edx
jb 0x4acf8f
test dword [ebx + 0xc], 0x2000
jmp 0x4acffc
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004ada3b
add esp, 0x10
or edx, edx
jg 0x4acfd1
jl 0x4acd5a
test eax, eax
jb 0x4acd5a
mov edx, 0x200
cmp edi, edx
ja 0x4acfec
mov ecx, dword [ebx + 0xc]
test cl, 8
je 0x4acfec
test ecx, 0x400
mov edi, edx
je 0x4acfef
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x101c]
mov ecx, dword [ecx]
test byte [ecx + esi + 4], 4
je 0x4acfff
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x4ad00a
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x4ad026
shr dword [ebp - 0x100c], 1
mov eax, dword [ebp - 0x100c]
xor edx, edx
add eax, dword [ebp - 0x1014]
adc edx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004b7a8b
leave
ret