Function at 0x448957
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
sar edx, 6
push edi
imul edi, eax, 0x30
mov dword [ebp - 8], edx
mov eax, dword [edx*4 + 0x45d300]
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x448998
cmp byte [ecx], 0xa
jne 0x448998
or byte [eax + edi + 0x28], 4
jmp 0x44899d
and byte [eax + edi + 0x28], 0xfb
lea eax, [ecx + esi]
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov esi, ecx
cmp ecx, eax
jae 0x448ac1
lea eax, [ecx + 1]
mov dl, byte [ebx]
mov byte [ebp - 2], dl
cmp dl, 0x1a
mov edx, dword [ebp - 8]
je 0x448a9e
cmp byte [ebp - 2], 0xd
mov ecx, dword [ebp + 0xc]
je 0x4489d9
mov dl, byte [ebp - 2]
mov byte [esi], dl
inc esi
inc ebx
inc eax
jmp 0x448a90
cmp eax, dword [ebp - 0x10]
jae 0x4489fd
cmp byte [eax], 0xa
jne 0x4489f2
add ebx, 2
mov byte [esi], 0xa
add eax, 2
inc esi
jmp 0x448a93
mov byte [esi], 0xd
inc esi
inc ebx
inc eax
jmp 0x448a93
inc ebx
inc eax
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448a86
cmp dword [ebp - 0x18], 0
je 0x448a86
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45d300]
test byte [eax + edi + 0x28], 0x48
je 0x448a51
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x448a3e
mov byte [esi], cl
jmp 0x448a4c
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x45d300]
mov byte [eax + edi + 0x2a], cl
mov ecx, dword [ebp + 0xc]
jmp 0x448a62
cmp byte [ebp - 1], 0xa
jne 0x448a67
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jne 0x448a67
mov byte [esi], 0xa
inc esi
mov eax, dword [ebp - 0xc]
jmp 0x448a93
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004423e7
mov ecx, dword [ebp + 0xc]
add esp, 0x10
cmp byte [ebp - 1], 0xa
mov eax, dword [ebp - 0xc]
je 0x448a90
jmp 0x448a8c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp - 8]
cmp ebx, dword [ebp - 0x10]
jb 0x4489b2
jmp 0x448ac1
mov eax, dword [edx*4 + 0x45d300]
mov al, byte [eax + edi + 0x28]
test al, 0x40
jne 0x448abc
mov ebx, dword [edx*4 + 0x45d300]
or al, 2
mov byte [ebx + edi + 0x28], al
jmp 0x448ac1
mov al, byte [ebx]
mov byte [esi], al
inc esi
mov eax, esi
sub eax, ecx
je 0x448bd5
mov ebx, dword [edx*4 + 0x45d300]
cmp byte [ebx + edi + 0x29], 0
je 0x448bd5
dec esi
mov al, byte [esi]
test al, al
js 0x448aea
inc esi
jmp 0x448b88
xor edx, edx
movzx eax, al
inc edx
jmp 0x448b00
cmp edx, 4
ja 0x448b09
cmp esi, ecx
jb 0x448b09
dec esi
inc edx
movzx eax, byte [esi]
cmp byte [eax + 0x45ac10], 0
je 0x448af2
movzx ecx, byte [esi]
movsx eax, byte [ecx + 0x45ac10]
test eax, eax
jne 0x448b2a
call fcn.004390d6
mov dword [eax], 0x2a
or eax, 0xffffffff
jmp 0x448bd5
inc eax
cmp eax, edx
jne 0x448b33
add esi, edx
jmp 0x448b85
test byte [ebx + edi + 0x28], 0x48
je 0x448b71
mov al, byte [esi]
inc esi
mov byte [ebx + edi + 0x2a], al
mov ebx, dword [ebp - 8]
cmp edx, 2
jb 0x448b57
mov ecx, dword [ebx*4 + 0x45d300]
mov al, byte [esi]
inc esi
mov byte [ecx + edi + 0x2b], al
cmp edx, 3
jne 0x448b6a
mov ecx, dword [ebx*4 + 0x45d300]
mov al, byte [esi]
inc esi
mov byte [ecx + edi + 0x2c], al
mov ecx, dword [ebp + 0xc]
sub esi, edx
jmp 0x448b8b
neg edx
mov eax, edx
push 1
cdq
push edx
push eax
push dword [ebp + 8]
call fcn.004423e7
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x18]
sub esi, ecx
push dword [ebp + 0x14]
push esi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
test edx, edx
jne 0x448bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004390a0
pop ecx
jmp 0x448b22
mov ecx, dword [ebx*4 + 0x45d300]
cmp edx, esi
setne al
add al, al
xor al, byte [ecx + edi + 0x2d]
and al, 2
xor byte [ecx + edi + 0x2d], al
lea eax, [edx + edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret