Function at 0x10017b60
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov r13, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xb0]
call fcn.100144e0
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
cmp r15, rsi
je 0x10018143
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rax
cmp rax, 3
jbe 0x10017bfb
movabs rcx, 0x5c003f003f005c
lea rdx, [rcx + 0x1d0000]
cmp rdx, qword [rdi]
je 0x10017fed
cmp rcx, qword [rdi]
je 0x10017fed
cmp rax, 0xf8
jae 0x10017c6b
cmp word [rdi + 2], 0x3a
jne 0x10017c44
movzx eax, word [rdi + 4]
jmp 0x10017c22
je 0x10017c0e
cmp rax, 1
jne 0x10017c42
cmp word [rdi], 0
jne 0x10017c6b
jmp 0x10017fed
cmp word [rdi + 2], 0x3a
jne 0x10017c44
movzx eax, word [rdi + 4]
test ax, ax
je 0x1001824b
cmp ax, 0x2f
je 0x10017c30
movzx eax, ax
cmp eax, 0x5c
jne 0x10017c44
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x10017c47
cmp eax, 0x5c
je 0x10017c47
jmp 0x10017fed
jbe 0x10017c6b
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x10017c55
movzx eax, ax
cmp eax, 0x2f
jne 0x10017c6b
movzx eax, word [rdi + 2]
cmp eax, 0x2f
je 0x10017fed
cmp eax, 0x5c
je 0x10017fed
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x60], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x10017cf0
jmp 0x10017ccf
jae 0x10017da3
cmp r8, 0x201
jae 0x10017cf0
mov r13d, 0x200
lea rbx, [rsp + 0xb0]
mov rbp, r8
jmp 0x10017d37
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x10017d17
lea rcx, [rsp + 0x50]
mov rdx, r12
call fcn.100148f0
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
cmp r15, r14
mov r12d, 0xffffffff
cmovb r12, r15
mov qword [rsp + 0x60], r12
mov rdi, r15
mov r13, r12
mov rbx, qword [rsp + 0x70]
mov rbp, r12
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x78]
mov edx, ebp
mov r8, rbx
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov esi, eax
test eax, eax
jne 0x10017d5f
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10017ddd
mov r8d, esi
cmp rbp, r8
jne 0x10017cc0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10018275
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov r14d, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x10017ccf
jmp 0x10017cf0
cmp r13, r8
jb 0x1001828f
cmp esi, 2
mov rdi, qword [rsp + 0x78]
jbe 0x10017e28
movzx eax, word [rbx + 2]
cmp eax, 0x3a
mov r13, qword [rsp + 0x68]
jne 0x10017e34
cmp word [rbx + 4], 0x5c
jne 0x10017e34
lea r15, [0x104a4c80]
mov r14d, 4
jmp 0x10017e6d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
cmp qword [rsp + 0x50], 0
je 0x10017dff
mov rcx, qword [rsp + 0x58]
mov edx, 2
call fcn.100043b0
or rdi, 2
cmp qword [rsp + 0x38], 0
mov r13, qword [rsp + 0x68]
je 0x10018143
mov rcx, qword [rsp + 0x40]
mov edx, 2
call fcn.100043b0
jmp 0x10018143
mov r13, qword [rsp + 0x68]
jne 0x10017e63
movzx ecx, word [rbx]
jmp 0x10017e3c
movzx ecx, word [rbx]
cmp esi, 3
jne 0x10017eaf
cmp cx, 0x5c
jne 0x10017e63
movzx eax, word [rbx + 2]
cmp ax, 0x5c
jne 0x10017e63
add r8, 0xfffffffffffffffe
add rbx, 4
lea r15, [0x104a4c88]
mov r14d, 8
jmp 0x10017e6d
lea r15, [0x104a50f0]
xor r14d, r14d
lea r12, [r8 + r14]
inc r12
mov rcx, qword [rsp + 0x38]
cmp rcx, r12
jae 0x10017ea4
lea rax, [r12 + r12]
mov rsi, r8
test rcx, rcx
je 0x10017ef4
add rcx, rcx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x90], rcx
mov ecx, 2
jmp 0x10017ef6
mov rsi, r8
mov r12, rcx
jmp 0x10017f3c
lea r15, [0x104a50f0]
cmp cx, 0x5c
jne 0x10017e6a
cmp eax, 0x3f
je 0x10017e6a
cmp eax, 0x5c
jne 0x10017e46
movzx eax, word [rbx + 4]
cmp eax, 0x3f
je 0x10018265
cmp eax, 0x2e
jne 0x10017e4c
cmp word [rbx + 6], 0x5c
jne 0x10017e4c
add r8, 0xfffffffffffffffc
add rbx, 8
jmp 0x10017dcb
xor ecx, ecx
mov qword [rsp + 0x88], rcx
lea rcx, [rsp + 0x98]
lea r9, [rsp + 0x80]
mov edx, 2
mov r8, rax
call fcn.10014860
cmp qword [rsp + 0x98], 0
jne 0x100182a6
mov rdi, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
lea r8d, [r14 + r14]
mov rcx, rdi
mov rdx, r15
call fcn.100360a0
mov qword [rsp + 0x48], r14
mov rax, r12
sub rax, r14
cmp rax, rsi
jae 0x10017f83
lea rcx, [rsp + 0x38]
mov rdx, r14
mov rdi, rsi
mov r8, rsi
call fcn.100148f0
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rsi, rdi
mov rdi, rax
lea r8, [rsi + rsi]
lea rcx, [rdi + r14*2]
mov rdx, rbx
call fcn.100360a0
add r14, rsi
mov qword [rsp + 0x48], r14
cmp r14, r12
jne 0x10017fb7
lea rcx, [rsp + 0x38]
mov rdx, r12
call fcn.100147b0
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov word [rdi + r14*2], 0
cmp qword [rsp + 0x50], 0
je 0x10017fd5
mov rcx, qword [rsp + 0x58]
mov edx, 2
call fcn.100043b0
mov r15, qword [rsp + 0x38]
movabs rax, 0x8000000000000000
cmp r15, rax
je 0x10018143
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x1001811f
mov rbx, rax
test r15, r15
je 0x1001803b
mov edx, 2
mov rcx, rdi
call fcn.100043b0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xe0], 0
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x10018167
test byte [rsp + 0xb1], 4
je 0x100180b2
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rbx
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x10018167
mov r15d, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xd4]
test rbx, rbx
je 0x1001819f
mov qword [rsp + 0xb0], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x10018224
mov rdi, qword [rsp + 0xb0]
jmp 0x100181a1
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r15, r15
je 0x10018140
mov edx, 2
mov rcx, rdi
call fcn.100043b0
mov rdi, rsi
mov rcx, rdi
call fcn.100136d0
mov qword [r13], 0
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.100136d0
mov qword [r13], 0
mov rcx, rbx
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor edi, edi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x10018212
mov rsi, rax
shl r15, 0x20
or r15, r14
mov qword [rsp + 0x20], r15
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r14, rax
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
test r14, r14
je 0x10018212
mov qword [r13 + 8], rdi
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], r15
mov qword [r13], 1
jmp 0x1001823e
mov qword [r13], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001823e
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.100136d0
mov qword [r13], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x10018153
movzx eax, word [rdi]
cmp eax, 0x2f
je 0x10017c44
cmp eax, 0x5c
je 0x10017c44
jmp 0x10017fed
cmp word [rbx + 6], 0x5c
jne 0x10017e4c
jmp 0x10017e6a
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.10005ac0
jmp 0x100182c7
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.10005750
jmp 0x100182c7
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
jne 0x100182ba
call fcn.10004590
jmp 0x100182c7
mov rdx, qword [rsp + 0xa8]
call fcn.100045d0
ud2