Function at 0x14018ba40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x11d8
call fcn.1402512d0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1178], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rbp
mov qword [rbp + 0x1198], rax
mov rax, qword [rbp + 0x11c0]
mov rax, qword [rax]
mov eax, dword [rax - 0x10]
mov dword [rbp + 0x10b4], eax
mov eax, dword [rbp + 0x10b4]
inc eax
cdqe
mov qword [rbp + 0x1050], rax
mov qword [rbp], 0
mov rcx, qword [rbp + 0x1050]
call fcn.140218cbc
mov qword [rbp + 0x1080], rax
mov rax, qword [rbp + 0x1080]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x11c0]
mov rax, qword [rax]
mov qword [rbp + 0x10b8], rax
mov rax, qword [rbp + 0x11c0]
mov rax, qword [rax]
mov eax, dword [rax - 0x10]
mov dword [rbp + 0x10c0], eax
mov eax, dword [rbp + 0x10c0]
inc eax
cdqe
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, qword [rbp + 0x10b8]
mov r8, rax
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp]
call fcn.140257260
call fcn.14018bee0
test eax, eax
jne 0x14018bb3c
mov dword [rbp + 0x1088], 0
mov rcx, qword [rbp + 0x11c0]
call fcn.140203610
mov eax, dword [rbp + 0x1088]
jmp 0x14018bebb
lea r8, [0x14033c980]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x1060]
call fcn.140256d8c
cmp qword [rbp + 0x1060], 0
jne 0x14018bb83
call fcn.14018bf60
mov dword [rbp + 0x108c], 0
mov rcx, qword [rbp + 0x11c0]
call fcn.140203610
mov eax, dword [rbp + 0x108c]
jmp 0x14018bebb
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rbp + 0x30]
call fcn.14018bf90
mov rcx, qword [rbp + 0x1060]
call fcn.140256c8c
test eax, eax
jne 0x14018bbe3
mov r9, qword [rbp + 0x1060]
mov r8d, 0x1000
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.140256c6c
mov dword [rbp + 0x107c], eax
mov r8d, dword [rbp + 0x107c]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.14018bfd0
jmp 0x14018bb9c
lea rcx, [rbp + 0x30]
call fcn.14018c010
mov rcx, qword [rbp + 0x1060]
call fcn.140253af0
mov ecx, 0x400
call fcn.140218cbc
mov qword [rbp + 0x1090], rax
mov rax, qword [rbp + 0x1090]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x105c], 0
mov dword [rbp + 0x18], 0
jmp 0x14018bc2f
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0x10
jge 0x14018bce2
movsxd rax, dword [rbp + 0x18]
movzx eax, byte [rbp + rax + 0x30]
mov byte [rbp + 0x1058], al
mov dword [rbp + 0x1078], 4
jmp 0x14018bc63
mov eax, dword [rbp + 0x1078]
sub eax, 4
mov dword [rbp + 0x1078], eax
cmp dword [rbp + 0x1078], 0
jl 0x14018bcdd
movzx eax, byte [rbp + 0x1058]
mov ecx, dword [rbp + 0x1078]
sar eax, cl
movsx eax, al
and eax, 0xf
mov byte [rbp + 0x106c], al
movsx eax, byte [rbp + 0x106c]
cmp eax, 0xa
jge 0x14018bca5
movsx eax, byte [rbp + 0x106c]
add eax, 0x30
mov byte [rbp + 0x106c], al
jmp 0x14018bcb5
movsx eax, byte [rbp + 0x106c]
add eax, 0x57
mov byte [rbp + 0x106c], al
movsxd rax, dword [rbp + 0x105c]
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp + 0x106c]
mov byte [rcx + rax], dl
mov eax, dword [rbp + 0x105c]
inc eax
mov dword [rbp + 0x105c], eax
jmp 0x14018bc54
jmp 0x14018bc27
movsxd rax, dword [rbp + 0x105c]
mov rcx, qword [rbp + 0x10]
mov byte [rcx + rax], 0
call fcn.14018bf60
mov dword [rbp + 0x1068], 3
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x1070], rax
cmp qword [rbp + 0x1070], 0
jne 0x14018bd25
mov qword [rbp + 0x1180], 0
jmp 0x14018be29
mov rcx, qword [rbp + 0x1070]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rbp + 8], eax
cmp dword [rbp + 8], 0x3fffffff
jle 0x14018bd50
mov qword [rbp + 0x1188], 0
jmp 0x14018be1b
movsxd rax, dword [rbp + 8]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14018bd6d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402512d0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x10e0], rax
mov rax, qword [rbp + 0x10e8]
mov qword [rbp + 0x1188], rax
cmp qword [rbp + 0x10e0], 0
je 0x14018bdaa
cmp qword [rbp + 0x1070], 0
jne 0x14018bdb7
mov qword [rbp + 0x1188], 0
jmp 0x14018be1b
xor eax, eax
mov rcx, qword [rbp + 0x10e0]
mov word [rcx], ax
mov eax, dword [rbp + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x10e0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x1070]
xor edx, edx
mov ecx, dword [rbp + 0x1068]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp + 0x10d8], eax
cmp dword [rbp + 0x10d8], 0
jne 0x14018be0d
mov qword [rbp + 0x1188], 0
jmp 0x14018be1b
mov rax, qword [rbp + 0x10e0]
mov qword [rbp + 0x1188], rax
mov rax, qword [rbp + 0x1188]
mov qword [rbp + 0x1180], rax
mov rdx, qword [rbp + 0x1180]
lea rcx, [rbp + 0x1098]
call fcn.140001eb0
mov qword [rbp + 0x1190], rax
mov rax, qword [rbp + 0x1190]
mov qword [rbp + 0x1160], rax
mov rdx, qword [rbp + 0x1160]
mov rcx, qword [rbp + 0x11c8]
call fcn.140002260
nop
lea rcx, [rbp + 0x1098]
call fcn.140203610
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x10a0], rax
mov rcx, qword [rbp + 0x10a0]
call fcn.1402512b0
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x10a8], rax
mov rcx, qword [rbp + 0x10a8]
call fcn.1402512b0
mov dword [rbp + 0x10b0], 1
mov rcx, qword [rbp + 0x11c0]
call fcn.140203610
mov eax, dword [rbp + 0x10b0]
mov rcx, qword [rbp + 0x1198]
xor rcx, rbp
call fcn.140250fd0
lea rsp, [rbp + 0x11a8]
pop rdi
pop rbp
ret