Function at 0x427d99
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1020
push ebp
mov ebp, esp
mov ebx, ebx
call fcn.00432700
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.00427b5d
mov ebx, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [edi + 4], eax
jge 0x427dd1
mov dword [edi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.004281d5
sub esp, 0xfffffff0
test edx, edx
mov esi, eax
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x1010], edx
jg 0x427e00
jl 0x427df6
or esi, esi
jae 0x427e00
or eax, 0xffffffff
or edx, eax
jmp 0x4280d4
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x444b80]
and ebx, 0x1f
mov dword [ebp - 0x101c], eax
mov eax, dword [eax]
shl ebx, 6
add eax, ebx
mov cl, byte [eax + 0x24]
add cl, cl
sar cl, 1
test dword [edi + 0xc], 0x108
mov byte [ebp - 0x1005], cl
jne 0x427e49
mov ebx, dword [ebp - 0x1010]
mov eax, dword [edi + 4]
cdq
sub esi, eax
mov eax, esi
sbb ebx, edx
mov edx, ebx
jmp 0x4280d4
mov ecx, dword [edi]
mov esi, ecx
sub esi, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x100c], esi
test dl, 3
je 0x427fbd
cmp byte [ebp - 0x1005], 1
jne 0x427f89
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x427f89
shr esi, 1
mov dword [ebp - 0x1020], esi
cmp dword [edi + 4], edx
jne 0x427e98
mov edx, dword [ebp - 0x1010]
mov eax, dword [ebp - 0x1014]
jmp 0x4280d4
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.004281d5
sub esp, 0xfffffff0
mov esi, eax
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
mov edi, edx
cmp esi, dword [eax + ebx + 0x28]
jne 0x427df6
cmp edi, dword [eax + ebx + 0x2c]
jne 0x427df6
lea ecx, [ebp - 0x100c]
push 0
push ecx
lea ecx, [ebp - 0x1004]
push 0x1000
push ecx
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x427df6
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004281d5
sub esp, 0xfffffff0
or edx, edx
jg 0x427f21
jl 0x427df6
or eax, eax
jb 0x427df6
mov ecx, dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x100c]
cmp ecx, ebx
ja 0x427df6
or ecx, ecx
lea eax, [ebp - 0x1004]
je 0x427f76
lea edx, [ebp + ebx - 0x1004]
dec ecx
cmp eax, edx
jae 0x427f76
mov bl, byte [eax]
cmp bl, 0xd
jne 0x427f65
lea ebx, [edx - 1]
cmp eax, ebx
jae 0x427f71
lea ebx, [eax + 1]
cmp byte [ebx], 0xa
jne 0x427f71
mov eax, ebx
jmp 0x427f71
movzx ebx, bl
movsx ebx, byte [ebx + 0x441770]
add eax, ebx
inc eax
test ecx, ecx
jne 0x427f46
lea ecx, [ebp - 0x1004]
sub eax, ecx
xor edx, edx
add eax, esi
adc edx, edi
jmp 0x4280d4
test byte [eax + 4], 0x80
je 0x427fa4
mov esi, dword [edi + 8]
jmp 0x427fa0
cmp byte [esi], 0xa
jne 0x427f9f
inc dword [ebp - 0x100c]
inc esi
cmp esi, ecx
jb 0x427f94
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x427fd1
mov eax, dword [ebp - 0x100c]
jmp 0x4280d4
test dl, dl
js 0x427fa4
call fcn.00426e0a
mov dword [eax], 0x16
jmp 0x427df6
test byte [edi + 0xc], 1
je 0x4280b1
mov edx, dword [edi + 4]
or edx, edx
jne 0x427fed
and dword [ebp - 0x100c], edx
jmp 0x4280b1
sub ecx, dword [edi + 8]
lea esi, [edx + ecx]
test byte [eax + 4], 0x80
je 0x428099
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.004281d5
sub esp, 0xfffffff0
cmp eax, dword [ebp - 0x1014]
jne 0x42803d
cmp edx, dword [ebp - 0x1010]
jne 0x42803d
mov eax, dword [edi + 8]
lea ecx, [eax + esi]
jmp 0x428030
cmp byte [eax], 0xa
jne 0x42802f
inc esi
inc eax
cmp eax, ecx
jb 0x428029
test dword [edi + 0xc], 0x2000
jmp 0x428096
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.004281d5
sub esp, 0xfffffff0
or edx, edx
jg 0x42806b
jl 0x427df6
or eax, eax
jb 0x427df6
mov ecx, 0x200
cmp esi, ecx
ja 0x428086
mov edx, dword [edi + 0xc]
test dl, 8
je 0x428086
test edx, 0x400
mov esi, ecx
je 0x428089
mov esi, dword [edi + 0x18]
mov ecx, dword [ebp - 0x101c]
mov ecx, dword [ecx]
test byte [ecx + ebx + 4], 4
je 0x428099
inc esi
cmp byte [ebp - 0x1005], 1
jne 0x4280a4
shr esi, 1
sub dword [ebp - 0x1014], esi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x4280c0
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 ebx
pop edi
pop esi
call fcn.00420bc6
leave
ret