Function at 0x101e3f20
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
sar eax, 6
mov ecx, dword [ebp + 8]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10260b98]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], 0
je 0x101e3f90
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
cmp eax, 0xa
jne 0x101e3f90
mov ecx, dword [ebp + 8]
sar ecx, 6
mov edx, dword [ebp + 8]
and edx, 0x3f
imul eax, edx, 0x38
mov ecx, dword [ecx*4 + 0x10260b98]
movzx edx, byte [ecx + eax + 0x28]
or edx, 4
mov eax, dword [ebp + 8]
sar eax, 6
mov ecx, dword [ebp + 8]
and ecx, 0x3f
imul ecx, ecx, 0x38
mov eax, dword [eax*4 + 0x10260b98]
mov byte [eax + ecx + 0x28], dl
jmp 0x101e3fc8
mov ecx, dword [ebp + 8]
sar ecx, 6
mov edx, dword [ebp + 8]
and edx, 0x3f
imul eax, edx, 0x38
mov ecx, dword [ecx*4 + 0x10260b98]
movzx edx, byte [ecx + eax + 0x28]
and edx, 0xfffffffb
mov eax, dword [ebp + 8]
sar eax, 6
mov ecx, dword [ebp + 8]
and ecx, 0x3f
imul ecx, ecx, 0x38
mov eax, dword [eax*4 + 0x10260b98]
mov byte [eax + ecx + 0x28], dl
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jae 0x101e421a
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x1a
jne 0x101e4080
mov eax, dword [ebp + 8]
sar eax, 6
mov ecx, dword [ebp + 8]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10260b98]
movzx ecx, byte [eax + edx + 0x28]
and ecx, 0x40
jne 0x101e4055
mov edx, dword [ebp + 8]
sar edx, 6
mov eax, dword [ebp + 8]
and eax, 0x3f
imul ecx, eax, 0x38
mov edx, dword [edx*4 + 0x10260b98]
movzx eax, byte [edx + ecx + 0x28]
or eax, 2
mov ecx, dword [ebp + 8]
sar ecx, 6
mov edx, dword [ebp + 8]
and edx, 0x3f
imul edx, edx, 0x38
mov ecx, dword [ecx*4 + 0x10260b98]
mov byte [ecx + edx + 0x28], al
jmp 0x101e407b
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 6], ax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 6]
mov word [edx], ax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x101e421a
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0xd
je 0x101e40b6
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 8], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp - 8]
mov word [ecx], dx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x101e3fe0
mov ecx, dword [ebp - 0x14]
add ecx, 2
cmp ecx, dword [ebp - 0x18]
jae 0x101e4117
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 2]
cmp eax, 0xa
jne 0x101e40ec
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, 0xa
mov eax, dword [ebp - 0x10]
mov word [eax], dx
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x101e4112
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 0xa], ax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov ax, word [ebp - 0xa]
mov word [edx], ax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x101e3fe0
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x20]
push eax
push 2
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101e4140
cmp dword [ebp - 0x20], 0
jne 0x101e4159
mov eax, 0xd
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x101e3fe0
mov eax, dword [ebp + 8]
sar eax, 6
mov ecx, dword [ebp + 8]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10260b98]
movzx ecx, byte [eax + edx + 0x28]
and ecx, 0x48
je 0x101e41bf
movzx edx, word [ebp - 4]
cmp edx, 0xa
jne 0x101e4198
mov eax, 0xa
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x101e41bd
mov eax, 0xd
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.101e4330
add esp, 8
jmp 0x101e4215
movzx edx, word [ebp - 4]
cmp edx, 0xa
jne 0x101e41e6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jne 0x101e41e6
mov ecx, 0xa
mov edx, dword [ebp - 0x10]
mov word [edx], cx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x101e4215
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, dword [ebp + 8]
push ecx
call fcn.100adbb3
add esp, 0x10
movzx edx, word [ebp - 4]
cmp edx, 0xa
je 0x101e4215
mov eax, 0xd
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x101e3fe0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
mov esp, ebp
pop ebp
ret