Function at 0x140090f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x4250
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x4240], rax
mov rdi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_578]
xor edx, edx
mov r8d, 0x3ffe
mov word [rsp + reloc.MFC80U.DLL_Ordinal_576], 0
call sub.ntdll.dll_memset
mov rbp, qword [rdi]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_576]
xor edx, edx
mov r8d, 0x2000
call sub.ntdll.dll_memset
xor ebx, ebx
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_576]
mov esi, ebx
nop
nop
nop
lea r9, [rsp + 0x30]
mov r8d, 2
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400910cf
cmp dword [rsp + 0x30], ebx
je 0x1400910cf
movzx eax, word [rdi]
add esi, 1
add rdi, 2
cmp ax, 0xa
je 0x14009102a
cmp esi, 0x1000
jb 0x140090fe0
mov word [rdi], bx
cmp byte [rsp + reloc.MFC80U.DLL_Ordinal_576], 0xff
jne 0x140091083
cmp byte [rsp + reloc.MFC80U.DLL_Ordinal_577], 0xfe
jne 0x140091083
movzx eax, word [rsp + reloc.MFC80U.DLL_Ordinal_578]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_578]
test ax, ax
je 0x140091076
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_576]
nop
add rcx, 2
mov word [rdx], ax
add ebx, 1
mov ax, word [rcx]
add rdx, 2
test ax, ax
jne 0x140091060
movsxd rax, ebx
mov word [rsp + rax*2 + reloc.MFC80U.DLL_Ordinal_576], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + reloc.MFC80U.DLL_Ordinal_576]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, 2
jl 0x1400910d7
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x23c], 0xd
jne 0x1400910d7
cmp word [rsp + rax*2 + reloc.MFC80U.DLL_Ordinal_574], 0xa
jne 0x1400910d7
mov word [rsp + rax*2 + 0x23c], 0
mov word [rsp + rax*2 + reloc.MFC80U.DLL_Ordinal_574], 0
jmp 0x1400910d7
mov eax, esi
mov ecx, esi
mov word [rdi + rax*2], bx
test ecx, ecx
je 0x140091159
lea rdx, [0x1402e82dc]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_576]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
je 0x140091159
mov word [rax], 0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, Ordinal_512
mov word [rsp + 0x40], 0
call sub.ntdll.dll_memset
lea rdx, [0x1402e0f14]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_576]
call qword [sym.imp.ntdll.dll_wcsstr]
test rax, rax
jne 0x14009115d
call fcn.140049470
lea rcx, str...configmgr.cpp
mov edx, 0x1f6
mov rbx, qword [rax]
mov rdi, rax
call fcn.140090880
lea rdx, str._s:_Failed_to__tcsstr_.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x1400911a3
lea rdx, [rax + 2]
lea rcx, [rsp + 0x40]
sub rcx, rdx
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x140091170
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1400911a3
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll__wtoi]
mov rcx, qword [rsp + 0x4240]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x4250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret