Function at 0x483f70
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 + 0x4b2958]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], 0
je 0x483fe0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
cmp eax, 0xa
jne 0x483fe0
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 + 0x4b2958]
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 + 0x4b2958]
mov byte [eax + ecx + 0x28], dl
jmp 0x484018
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 + 0x4b2958]
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 + 0x4b2958]
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 0x48426a
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x1a
jne 0x4840d0
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 + 0x4b2958]
movzx ecx, byte [eax + edx + 0x28]
and ecx, 0x40
jne 0x4840a5
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 + 0x4b2958]
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 + 0x4b2958]
mov byte [ecx + edx + 0x28], al
jmp 0x4840cb
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 0x48426a
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0xd
je 0x484106
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 0x484030
mov ecx, dword [ebp - 0x14]
add ecx, 2
cmp ecx, dword [ebp - 0x18]
jae 0x484167
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 2]
cmp eax, 0xa
jne 0x48413c
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 0x484162
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 0x484030
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 0x484190
cmp dword [ebp - 0x20], 0
jne 0x4841a9
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 0x484030
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 + 0x4b2958]
movzx ecx, byte [eax + edx + 0x28]
and ecx, 0x48
je 0x48420f
movzx edx, word [ebp - 4]
cmp edx, 0xa
jne 0x4841e8
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 0x48420d
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.004842b0
add esp, 8
jmp 0x484265
movzx edx, word [ebp - 4]
cmp edx, 0xa
jne 0x484236
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jne 0x484236
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 0x484265
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, dword [ebp + 8]
push ecx
call fcn.004839c0
add esp, 0x10
movzx edx, word [ebp - 4]
cmp edx, 0xa
je 0x484265
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 0x484030
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 1
shl eax, 1
mov esp, ebp
pop ebp
ret