Function at 0x18007cd50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1800ad828]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, qword [rsp + 0x50]
lea r11, [0x18009bccc]
imul r13d, r8d, 0x750
lea r10, [0x18009bcd0]
mov eax, r8d
mov r14, r9
xor r9d, r9d
mov dword [rsp + 0x40], eax
mov r15, rcx
mov ebx, r8d
mov rcx, qword [rbp + 0x430]
mov r12, rdx
cmp r8d, r13d
mov qword [rsp + 0x70], rcx
mov r8, qword [rsp + 0x50]
lea edi, [r9 + 4]
mov qword [rsp + 0x48], r8
ja 0x18007d150
mov rax, qword [rsp + 0x50]
lea r9d, [rdi + 0x68]
movzx ecx, byte [rsp + 0x30]
lea r11d, [rdi + 0x2f]
mov qword [rsp + 0x58], rax
lea r10, str.example
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x60], eax
mov eax, ebx
mov byte [rsp + 0x30], cl
mov edx, 0x73
cmp ebx, 0x34ad
ja 0x18007cec2
je 0x18007d28d
cmp ebx, 0xd98
ja 0x18007ce85
je 0x18007ce6e
cmp ebx, 0x18
je 0x18007ce65
cmp ebx, 0x5d
je 0x18007ce4e
movzx edx, byte [rsp + 0x30]
cmp ebx, 0xe7
jne 0x18007cfe6
xor ecx, ecx
mov dword [rsp + 0x60], ecx
mov r8d, ecx
mov qword [rsp + 0x48], rcx
jmp 0x18007cfe6
mov rax, qword [r14 + 8]
test rax, rax
js 0x18007d080
mov qword [rsp + 0x68], rax
jmp 0x18007cfdd
mov word [rbp - 0x60], dx
jmp 0x18007cfe1
mov word [rbp - 0x5e], dx
mov dword [rbp - 0x5c], 0x65006c
mov dword [rbp - 0x58], 0x790061
jmp 0x18007cfe1
cmp ebx, 0x1b18
je 0x18007ceaa
movzx edx, byte [rsp + 0x30]
cmp ebx, 0x2898
jne 0x18007cfe6
mov dword [rbp - 0x4a], 0x6c
jmp 0x18007cfe6
mov word [rbp - 0x54], r11w
mov dword [rbp - 0x52], 0x2e0032
mov dword [rbp - 0x4e], 0x6c0064
jmp 0x18007cfe1
cmp ebx, 0x104c7
ja 0x18007cf6c
je 0x18007cf4f
cmp ebx, 0x3618
je 0x18007cefc
cmp ebx, 0x82d7
jne 0x18007cfe1
xor eax, eax
mov dl, 9
mov esi, eax
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x40]
mov byte [rsp + 0x30], dl
jmp 0x18007cfe6
lea r8, [rbp - 0x60]
mov rdx, r9
mov ecx, 0x4f
call fcn.18007c630
cmp qword [r15 + 0x18], 0x10
mov rdx, r15
jb 0x18007cf1a
mov rdx, qword [r15]
mov r8d, dword [r15 + 0x10]
mov rcx, r14
call rax
cmp eax, dword [r15 + 0x10]
jne 0x18007d090
mov rax, qword [r12]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov r9, r14
mov ecx, 0x49
mov qword [rsp + 0x50], rax
call fcn.18000a780
jmp 0x18007cfc7
mov qword [0x1800ae9d8], r10
cmp dword [r14], 2
jne 0x18007d09a
mov r8, qword [r12 + 8]
mov qword [rsp + 0x48], r8
jmp 0x18007cfe1
cmp ebx, 0x186b7
je 0x18007cf9c
cmp ebx, 0x208a7
jne 0x18007cfe1
test rsi, rsi
je 0x18007d0cc
xorps xmm0, xmm0
mov qword [rsp + 0x78], r8
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm0
movdqu xmmword [rbp - 0x70], xmm1
jmp 0x18007cfe1
mov edx, 1
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
jne 0x18007d119
mov rcx, qword [rsp + 0x48]
lea rdx, [0x180097fac]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
mov r8, qword [rsp + 0x48]
lea r10, str.example
mov r11d, 0x33
lea r9d, [r11 + 0x39]
mov eax, dword [rsp + 0x40]
movzx edx, byte [rsp + 0x30]
lea ecx, [rax + rax*8]
shl ecx, 4
add ebx, ecx
cmp ebx, r13d
jbe 0x18007cdff
mov r14, qword [rsp + 0x58]
lea r10, [0x18009bcd0]
mov rcx, qword [rsp + 0x70]
lea r11, [0x18009bccc]
xor r9d, r9d
mov r15d, dword [rsp + 0x60]
lea r12, [0x18007d400]
mov ebx, eax
imul eax, eax, 0x5a0
cmp ebx, eax
ja 0x18007d28d
cmp ebx, 0x145bf
ja 0x18007d242
je 0x18007d237
cmp ebx, 0x1698
ja 0x18007d1aa
je 0x18007d28d
cmp ebx, 0x18
je 0x18007d16d
cmp ebx, 0xe7
je 0x18007d163
cmp ebx, 0xb58
jne 0x18007d182
mov byte [rsp + 0x68], 1
jmp 0x18007d182
cmp edi, 0x80
lea eax, [rdi + rdi]
cmovae eax, edi
mov edi, eax
jmp 0x18007d080
mov byte [rsp + 0x68], 0
jmp 0x18007d28d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.example
lea rdx, str.CorDebugManagerClass
call fcn.180092630
mov r14, qword [rsp + 0x58]
lea r12, [0x18007d400]
jmp 0x18007d3c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x48]
lea rdx, str.vcs_suitabilitydp1_src_site_impl.cpp
mov r8, qword [0x1800ae9d8]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.180092630
mov r14, qword [rsp + 0x58]
lea r12, [0x18007d400]
jmp 0x18007d3c3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x48]
lea rdx, str.syscall_is_not_NtDuplicateObject
mov r8, qword [0x1800ae9d8]
mov rcx, rax
call fcn.180092630
mov r14, qword [rsp + 0x58]
lea r12, [0x18007d400]
jmp 0x18007d3c3
movzx edx, byte [rsp + 0x30]
mov r14, qword [rsp + 0x50]
mov byte [rsp + 0x30], dl
jmp 0x18007d012
mov dword [rbp - 0x7c], r9d
mov qword [rbp - 0x78], r9
jmp 0x18007d182
mov rdx, rcx
mov ecx, 0x76
call fcn.180072670
movzx edx, byte [rsp + 0x30]
xor r9d, r9d
imul eax, dword [rsp + 0x40], 0x78
lea r10, [0x18009bcd0]
mov r8, qword [rsp + 0x48]
lea r11, [0x18009bccc]
mov rcx, qword [rsp + 0x70]
add ebx, eax
mov eax, dword [rsp + 0x40]
jmp 0x18007d020
cmp ebx, 0x6d2f
je 0x18007d223
cmp ebx, 0xd977
jne 0x18007d182
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x18007d1c1
cmp rax, rdi
jbe 0x18007d182
lea rdx, [rax + r8]
mov rcx, r9
nop word [rax + rax]
movzx eax, byte [rdx + rcx - 3]
inc rcx
cmp al, byte [r11 + rcx - 1]
jne 0x18007d1fc
cmp rcx, rdi
jne 0x18007d1e0
mov dl, 0x2c
mov byte [rsp + 0x30], dl
jmp 0x18007d182
mov rax, r9
nop
movzx ecx, byte [rdx + rax - 3]
inc rax
cmp cl, byte [r10 + rax - 1]
jne 0x18007d3f3
cmp rax, rdi
jne 0x18007d200
mov dl, 9
mov byte [rsp + 0x30], dl
jmp 0x18007d182
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rbp - 0x68], rax
jmp 0x18007d17a
movsx eax, dl
mov dword [rbp - 0x80], eax
jmp 0x18007d182
cmp ebx, 0x1b207
je 0x18007d35f
cmp ebx, 0x21e4f
je 0x18007d2bc
cmp ebx, 0x28a97
je 0x18007d333
cmp ebx, 0x2f6df
je 0x18007d3ce
cmp ebx, 0x36327
jne 0x18007d182
test rsi, rsi
je 0x18007d288
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov dword [rsp + 0x68], r15d
mov rax, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180092fc0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18007d990]
mov edx, 6
mov rcx, r14
call fcn.180084240
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x18007d17a
mov r9, rsi
lea rcx, [rbp - 0x40]
mov edx, 1
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea r9, [rbp - 0x40]
mov dword [rsp + 0x28], 0x15
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rax
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.18007d9c0
test eax, eax
jne 0x18007d333
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x18007d2e1
jmp 0x18007d17a
mov rcx, rsi
mov ebx, 0x28a97
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp - 0x78]
xor r9d, r9d
mov esi, r9d
test rcx, rcx
je 0x18007d3f3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18007d17a
lea rax, [rsp + 0x58]
mov byte [rsp + 0x38], dl
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x60], r12
mov ecx, 0x9e
call fcn.18004f100
mov r14, rax
test rax, rax
jne 0x18007d17a
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x1800ae9d8]
lea rdx, str.Disable_final_value_insertion
mov rcx, rax
call fcn.180092630
movzx edx, byte [rsp + 0x30]
mov r15d, 1
mov ebx, 0x2f6df
test r14, r14
je 0x18007d17f
xor r9d, r9d
mov r8, r14
xor edx, edx
mov ecx, 0xd3
call fcn.18006f8f0
jmp 0x18007d17a
movzx edx, byte [rsp + 0x30]
jmp 0x18007d182