Function at 0x1400039e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x28]
mov r14, rcx
mov rsi, r9
mov qword [rsp + 0x58], r8
mov r9, r8
mov byte [rsp + 0x40], dl
movzx r15d, dl
lea r8, [rsp + 0x48]
mov rcx, qword [rax + 8]
mov rdx, r9
mov r12, qword [rcx + 8]
mov rcx, rsi
mov qword [rsp + 0x50], r12
call fcn.140003850
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140003b3e
lea edx, [rbp + 0x2e]
lea rcx, str..txt
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
xor esi, esi
mov rbp, rax
test rax, rax
je 0x140003ab6
lea r13, [0x1400105c0]
mov ebx, esi
mov rdi, r13
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003aa0
inc rbx
add rdi, 0x10
cmp rbx, 8
jb 0x140003a80
jmp 0x140003ab6
add rbx, rbx
mov rcx, qword [r13 + rbx*8 + 8]
test rcx, rcx
je 0x140003ab6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
lea rdx, [0x140011d09]
test r15b, r15b
mov rax, rdx
lea r8, str._r_nContent_Type:
lea rcx, str.Invalid_path
mov r9d, recv
cmovne rcx, rdx
test rsi, rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
cmovne rdx, r8
cmovne rax, rsi
mov qword [rsp + 0x28], rax
lea r8, str.403_Forbidden
mov qword [rsp + 0x20], rdx
lea rdx, str.HTTP_1.1__s_r_nContent_length:__zd_r_nConnection:_close_s_s_r_n_r_n_s
call fcn.140002190
test eax, eax
js 0x140003f13
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140003b30
jmp 0x140003f49
xor edx, edx
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open
mov r15d, eax
test eax, eax
jns 0x140003c80
mov rdi, 0xffffffffffffffff
xor r13b, r13b
mov rax, rdi
inc rax
cmp byte [rax + rbp], r13b
jne 0x140003b60
cmp rax, 3
jbe 0x140003c4d
mov rax, rdi
inc rax
cmp byte [rax + rbp], r13b
jne 0x140003b76
lea rcx, [rbp - 3]
add rcx, rax
lea rdx, [0x140011f10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140003c4d
mov rax, rdi
nop
cmp byte [rax + rbp + 1], r13b
lea rax, [rax + 1]
jne 0x140003ba0
lea r8d, [rax - 2]
mov r9, rbp
lea rdx, str._.sqrc
lea rcx, [rsp + 0x48]
call fcn.140002190
test eax, eax
jns 0x140003bdb
lea rdx, str.asprintf_failed
mov rcx, r12
call qword [r12 + WSACleanup]
jmp 0x140003f66
mov rcx, qword [rsp + 0x48]
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open
mov rcx, qword [rsp + 0x48]
mov r15d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15d, r15d
js 0x140003c4d
mov ecx, r15d
mov r13b, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov edx, 0x2f
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x140003c1d
sub rax, rsi
jmp 0x140003c29
mov rax, rdi
inc rax
cmp byte [rsi + rax], 0
jne 0x140003c20
mov qword [rsp + 0x30], rsi
lea rdx, str.Missing_code_generated_WebKit_file:_n___s_nA_matching__.qrc__exists__so_try_generating_the__.js_:_n__cd__.s_.._n__mkdir__p_tmp_n__._CodeGeneratorInspector.py_Inspector.json___output_h_dir_tmp___output_cpp_dir_tmp_n__mv_tmp_.js__.s_n
mov qword [rsp + 0x28], rax
mov r9, rax
mov r8, rbp
mov qword [rsp + 0x20], rsi
mov rcx, r12
call qword [r12 + WSACleanup]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rsp + 0x58]
lea rax, str.Missing_code_generated_WebKit_file
movzx edx, byte [rsp + 0x40]
xor esi, esi
test r13b, r13b
mov rcx, r14
cmovne rsi, rax
mov r9, rsi
call fcn.140003570
jmp 0x140003f66
mov edx, 0x2e
mov rcx, rbp
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
xor esi, esi
lea r13, [0x1400105c0]
mov r12, rax
test rax, rax
je 0x140003cd3
mov ebx, esi
mov rdi, r13
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003d62
inc rbx
add rdi, 0x10
cmp rbx, 8
jb 0x140003cb0
mov rbx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rsp + 0x60]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
test eax, eax
jne 0x140003e4b
mov eax, 0x8000
test word [rsp + 0x66], ax
je 0x140003e4b
movsxd r12, dword [rsp + 0x74]
lea rdx, [0x140011d09]
mov rax, rdx
mov qword [rsp + 0x48], rsi
test rbx, rbx
lea r8, str._r_nContent_Type:
lea rcx, [rsp + 0x48]
cmovne rdx, r8
cmovne rax, rbx
mov r9, rdx
mov qword [rsp + 0x20], rax
lea rdx, str.HTTP_1.1_200_OK_r_nContent_length:__zd_r_nConnection:_close_s_s_r_n_r_n
mov r8, r12
call fcn.140002190
test eax, eax
jns 0x140003d81
mov rax, qword [rsp + 0x50]
lea rdx, str.asprintf_failed
mov rcx, rax
call qword [rax + 0x70]
jmp 0x140003f66
add rbx, rbx
mov rcx, qword [r13 + rbx*8 + 8]
test rcx, rcx
je 0x140003cd3
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
jmp 0x140003cd6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140003d96
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call qword [r14 + Ordinal_58]
mov rcx, rbx
movzx edi, al
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
jne 0x140003e3e
cmp byte [rsp + 0x40], sil
jne 0x140003e3e
test r12, r12
je 0x140003e3e
mov eax, 0x1000
mov rbp, r12
cmp r12, rax
mov edx, 1
cmova rbp, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8, rbp
mov ecx, r15d
mov rdx, rax
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbx, eax
test eax, eax
jle 0x140003e2b
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call qword [r14 + Ordinal_58]
test al, al
jne 0x140003e2b
mov r8, rbp
mov rdx, rdi
mov ecx, r15d
add rsi, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbx, eax
test eax, eax
jg 0x140003e02
mov ecx, r15d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
cmp rsi, r12
setne al
jmp 0x140003f66
mov ecx, r15d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
jmp 0x140003f62
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, r15d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
mov edx, 0x2e
lea rcx, str..txt
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rbp, rax
test rax, rax
je 0x140003eb6
mov rbx, rsi
mov rdi, r13
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003ea0
inc rbx
add rdi, 0x10
cmp rbx, 8
jb 0x140003e80
jmp 0x140003eb6
add rbx, rbx
mov rcx, qword [r13 + rbx*8 + 8]
test rcx, rcx
je 0x140003eb6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
cmp byte [rsp + 0x40], 0
lea rdx, [0x140011d09]
mov rax, rdx
lea r8, str._r_nContent_Type:
lea rcx, str.Not_a_file
mov r9d, 0xa
cmovne rcx, rdx
test rsi, rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
cmovne rdx, r8
cmovne rax, rsi
mov qword [rsp + 0x28], rax
lea r8, str.403_Forbidden
mov qword [rsp + 0x20], rdx
lea rdx, str.HTTP_1.1__s_r_nContent_length:__zd_r_nConnection:_close_s_s_r_n_r_n_s
call fcn.140002190
test eax, eax
jns 0x140003f26
lea rdx, str.asprintf_failed
mov rcx, r14
call qword [r14 + 0x58]
movzx edi, al
jmp 0x140003f62
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x50]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140003f40
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call qword [r14 + Ordinal_58]
mov rcx, rbx
movzx edi, al
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, dil
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000ed60
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret