Function at 0x14002aae0
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov rax, qword [rcx + 0x88]
mov rdi, qword [rcx + 0x80]
mov qword [rsp + 0x170], rcx
mov rbp, rdx
mov qword [rsp + 0x180], r8
mov dword [rsp + 0x5c], r9d
mov qword [rsp + 0x30], rax
cmp rax, rdi
je 0x14002ae46
nop word [rax + rax]
mov rsi, qword [rdi + 8]
mov r12, qword [rbp + 0x28]
mov r13, qword [rbp + 0x20]
mov rdx, qword [rdi]
cmp rsi, r12
mov rbx, r12
cmovbe rbx, rsi
test rbx, rbx
je 0x14002ab61
mov r8, rbx
mov rcx, r13
call sym.memcmp
test eax, eax
jne 0x14002ae37
sub rbx, rsi
mov eax, 0x80000000
cmp rbx, rax
jge 0x14002ae37
movabs rax, 0xffffffff7fffffff
cmp rbx, rax
jle 0x14002ae37
test ebx, ebx
jne 0x14002ae37
cmp r12, rsi
jb 0x14002b50e
lea rax, [rsp + 0x100]
lea rdx, [r13 + rsi]
lea r8, [r13 + r12]
mov rcx, rax
mov rsi, rax
mov qword [rsp + 0x48], rax
lea r15, [rsp + 0x110]
mov qword [rsp + 0x100], r15
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag___clone_.isra.0_
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], 1
lea r9, [0x140060111]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
lea r12, [rsp + 0x70]
lea r8, [rax + 0x10]
mov rdx, qword [rax + 8]
mov qword [rsp + 0x60], r12
mov rcx, qword [rax]
cmp rcx, r8
je 0x14002aed0
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
mov qword [rax], r8
mov byte [rax + 0x10], 0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x68], rdx
mov qword [rax + 8], 0
cmp rcx, r15
je 0x14002ac43
mov rax, qword [rsp + 0x110]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
xor eax, eax
test rbx, rbx
jne 0x14002ac6d
jmp 0x14002ad30
add rax, 1
cmp rbx, rax
je 0x14002ad30
cmp byte [rsi + rax], 0x2f
je 0x14002ac60
cmp rax, rbx
jae 0x14002ad30
mov r13d, 0
jae 0x14002ad30
mov r14, rax
jmp 0x14002acaa
cmp dl, 0x5c
je 0x14002ae21
test dl, dl
je 0x14002ae21
add r14, 1
cmp rbx, r14
je 0x14002acb4
movzx edx, byte [rsi + r14]
cmp dl, 0x2f
jne 0x14002ac90
mov r8, r14
mov rdx, rbx
sub r8, rax
sub rdx, rax
cmp r8, rdx
cmova r8, rdx
cmp r8, 1
ja 0x14002ae60
test r8, r8
je 0x14002acfd
lea rcx, [rsi + rax]
cmp byte [rcx], 0x2e
je 0x14002ad08
lea rdx, [0x140061b90]
mov qword [rsp + 0x40], r8
call sym.memcmp
mov r8, qword [rsp + 0x40]
test eax, eax
je 0x14002af56
add r13, 1
nop dword [rax]
cmp r14, rbx
jae 0x14002ad30
mov rax, r14
jmp 0x14002ad21
add rax, 1
cmp rbx, rax
je 0x14002ad30
cmp byte [rsi + rax], 0x2f
je 0x14002ad18
cmp rax, rbx
jb 0x14002ac88
mov rax, qword [rdi + 0x20]
mov r13, qword [rdi + 0x28]
lea r14, [rsp + 0x90]
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
lea rdx, [r13 + rbx]
mov rcx, rax
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x90], 0
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::reserve_unsigned_long_long_
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, r13
jb 0x14002b533
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r8, r13
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x88]
cmp rax, rbx
jb 0x14002b527
mov rcx, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
cmp byte [rcx + rax - 1], 0x2f
je 0x14002aefe
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access_s]
test eax, eax
je 0x14002afb6
mov rcx, qword [rsp + 0x80]
cmp rcx, r14
je 0x14002ae1c
mov rax, qword [rsp + 0x90]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov rsi, qword [rsp + 0x60]
cmp rsi, r12
je 0x14002ae37
mov rax, qword [rsp + 0x70]
mov rcx, rsi
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
add rdi, 0x70
cmp qword [rsp + 0x30], rdi
jne 0x14002ab30
xor eax, eax
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsi + rax]
cmp byte [rcx], 0x2e
je 0x14002aea8
cmp r8, 2
je 0x14002acdf
cmp word [rcx], 0x2e2e
jne 0x14002acfd
sub r8, 2
cmp r8, 0x7fffffff
jg 0x14002acfd
cmp r8, 0xffffffff80000000
jge 0x14002af5a
jmp 0x14002acfd
lea rax, [r8 - 1]
mov edx, 0x80000000
cmp rax, rdx
jl 0x14002af75
cmp word [rcx], 0x2e2e
je 0x14002ae7e
jmp 0x14002acfd
add rdx, 1
mov r10, r12
mov rcx, r8
cmp edx, 8
jae 0x14002af8e
xor r9d, r9d
test dl, 4
jne 0x14002af43
test dl, 2
jne 0x14002af2e
and edx, 1
jne 0x14002af1c
mov rdx, qword [rax + 8]
jmp 0x14002ac11
mov rcx, qword [rsp + 0x40]
lea rdx, str.index.html
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::append_char_const_
mov rcx, qword [rsp + 0x80]
jmp 0x14002adee
movzx edx, byte [rcx + r9]
mov byte [r10 + r9], dl
mov rdx, qword [rax + 8]
jmp 0x14002ac11
movzx r11d, word [rcx + r9]
mov word [r10 + r9], r11w
add r9, 2
and edx, 1
jne 0x14002af1c
jmp 0x14002aef5
mov r9d, dword [rcx]
mov dword [r10], r9d
mov r9d, 4
test dl, 2
je 0x14002aef0
jmp 0x14002af2e
sub r8, 2
test r8d, r8d
jne 0x14002acfd
test r13, r13
je 0x14002ae21
sub r13, 1
jmp 0x14002ad08
cmp rax, 0xffffffff80000000
jl 0x14002aeba
test eax, eax
je 0x14002ad08
jmp 0x14002ae69
mov r11d, edx
xor ecx, ecx
and r11d, 0xfffffff8
mov r9d, ecx
add ecx, 8
mov r10, qword [r8 + r9]
mov qword [r12 + r9], r10
cmp ecx, r11d
jb 0x14002af97
lea r10, [r12 + rcx]
add rcx, r8
jmp 0x14002aee3
mov rbx, qword [rdi + 0x58]
add rdi, 0x48
cmp rdi, rbx
je 0x14002afed
nop dword [rax + rax]
mov rcx, qword [rsp + 0x180]
lea rdx, [rbx + 0x20]
lea r8, [rbx + 0x40]
call method.httplib::Response.set_header_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rbx
call sym.std::_Rb_tree_increment_std::_Rb_tree_node_base_const_
mov rbx, rax
cmp rdi, rax
jne 0x14002afc8
mov rax, qword [rsp + 0x80]
mov ecx, 0x30
mov qword [rsp + 0x30], rax
call sym.operator_new_unsigned_long_long_
mov rdi, rax
mov rax, qword [0x140062050]
pxor xmm0, xmm0
xor ecx, ecx
mov qword [rdi + 0x20], 0
mov qword [rdi + 8], rax
lea rax, fcn.140045660
mov qword [rdi], rax
lea rax, [rdi + 0x10]
mov qword [rsp + 0x50], rax
mov qword [rdi + 0x28], 0
movups xmmword [rdi + 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x100], r15
xor edx, edx
xor esi, esi
xor r13d, r13d
lea r15, [rsp + 0x110]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov qword [rdi + 0x20], 0
mov r12, r15
mov qword [rsp + 0x108], 0
mov word [rsp + 0x110], dx
jmp 0x14002b0a3
xor eax, eax
mov word [r12 + rsi], r14w
mov r13, rbx
add rsi, 2
mov qword [rsp + 0x108], rbx
mov word [r12 + rbx*2], ax
mov rcx, qword [rsp + 0x30]
call sym.strlen
cmp r13, rax
jae 0x14002b100
mov rax, qword [rsp + 0x30]
lea rbx, [r13 + 1]
movsx r14w, byte [rax + r13]
cmp r12, r15
je 0x14002b0f9
mov rax, qword [rsp + 0x110]
cmp rax, rbx
jae 0x14002b088
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x20], 1
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::_M_mutate_unsigned_long_long__unsigned_long_long__wchar_t_const__unsigned_long_long_
mov r12, qword [rsp + 0x100]
jmp 0x14002b088
mov eax, 7
jmp 0x14002b0ce
mov r9d, 3
mov r8d, 1
mov edx, 0x80000000
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateFile2]
mov qword [rdi + 0x10], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x14002b152
mov qword [rsp + 0xe0], 0
lea rdx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14002b3e9
mov rcx, qword [rsp + 0x100]
cmp rcx, r15
je 0x14002b171
mov rax, qword [rsp + 0x110]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
cmp qword [rdi + 0x28], 0
je 0x14002b507
mov qword [rsp + 0xf0], 0
pxor xmm0, xmm0
mov qword [rsp + 0xf8], 0
movaps xmmword [rsp + 0xe0], xmm0
lock add dword [rdi + 8], 1
mov ecx, 0x10
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
movaps xmmword [rsp + 0xc0], xmm0
call sym.operator_new_unsigned_long_long_
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rdi
lea rbx, [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0x40]
mov qword [rax], rcx
lea rax, [sym._ZNSt17_Function_handlerIFbyyRN7httplib8DataSinkEEZNS0_6Server19handle_file_requestERKNS0_7RequestERNS0_8ResponseEbEUlyyS2_E_E]
mov rcx, rbx
movq xmm0, rax
lea rax, [fcn.140043f10]
movq xmm1, rax
mov rax, qword [rsp + 0x170]
punpcklqdq xmm0, xmm1
lea r9, [rax + 0xc8]
lea r8, [rax + 0x98]
movaps xmmword [rsp + 0xd0], xmm0
call sym._ZN7httplib6detail17find_content_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapIS6_S6_St4lessIS6_ESaISt4p
mov r15, qword [rsp + 0x48]
lea rdx, str.Content_Type
mov rsi, qword [rdi + 0x20]
mov rcx, r15
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const___clone_.isra.0_
mov rcx, qword [rsp + 0x180]
mov r8, rbx
mov rdx, r15
call method.httplib::Response.set_header_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, r15
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rax, qword [rsp + 0x180]
mov qword [rax + 0xb8], rsi
test rsi, rsi
jne 0x14002b449
mov rax, qword [rsp + 0xf0]
pxor xmm0, xmm0
movq xmm1, qword [rsp + 0xf8]
movaps xmmword [rsp + 0x100], xmm0
test rax, rax
je 0x14002b2bc
movdqa xmm3, xmmword [rsp + 0xe0]
pxor xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm3
mov rcx, qword [rsp + 0x180]
mov r9, qword [rsp + 0x108]
movq xmm0, rax
mov r8, qword [rsp + 0x100]
punpcklqdq xmm0, xmm1
movdqu xmm2, xmmword [rcx + 0xf0]
movdqu xmm4, xmmword [rcx + 0xe0]
mov qword [rcx + 0xe8], r9
mov qword [rcx + 0xe0], r8
movq r9, xmm2
movaps xmmword [rsp + 0x100], xmm4
movaps xmmword [rsp + 0x30], xmm2
movaps xmmword [rsp + 0x110], xmm2
movups xmmword [rcx + 0xf0], xmm0
test r9, r9
je 0x14002b332
mov rcx, qword [rsp + 0x48]
mov r8d, 3
mov rdx, rcx
call r9
mov rax, qword [rsp + 0x180]
mov rcx, rbx
mov byte [rax + 0x100], 0
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14002b369
lea rcx, [rsp + 0xc0]
mov r8d, 3
mov rdx, rcx
call rax
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x14002b389
lea rcx, [rsp + 0xe0]
mov r8d, 3
mov rdx, rcx
call rax
cmp byte [rsp + 0x5c], 0
jne 0x14002b3ba
mov rax, qword [rsp + 0x170]
cmp qword [rax + 0xf8], 0
je 0x14002b3ba
mov r8, qword [rsp + 0x180]
lea rcx, [rax + 0xe8]
mov rdx, rbp
call qword [rax + 0x100]
mov eax, 1
mov rcx, rdi
mov byte [rsp + 0x30], al
call method.std._Sp_counted_base____gnu_cxx::_Lock_policy_2_::_M_release__
mov rcx, qword [rsp + 0x40]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
lea rcx, [rsp + 0x60]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
movzx eax, byte [rsp + 0x30]
jmp 0x14002ae48
mov r9, qword [rsp + 0xe0]
mov rcx, qword [rdi + 0x10]
mov r8d, 2
xor edx, edx
mov qword [rdi + 0x20], r9
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingFromApp]
mov qword [rdi + 0x18], rax
mov rcx, rax
test rax, rax
je 0x14002b43a
xor r9d, r9d
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFileFromApp]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x14002b152
mov rcx, qword [rsp + 0x50]
call method.httplib::detail::mmap.close__
jmp 0x14002b152
mov rax, qword [rsp + 0xd0]
pxor xmm0, xmm0
movq xmm1, qword [rsp + 0xd8]
movaps xmmword [rsp + 0x100], xmm0
test rax, rax
je 0x14002b488
movdqa xmm2, xmmword [rsp + 0xc0]
pxor xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0x100], xmm2
mov rcx, qword [rsp + 0x180]
mov r9, qword [rsp + 0x108]
movq xmm0, rax
mov r8, qword [rsp + 0x100]
punpcklqdq xmm0, xmm1
movdqu xmm5, xmmword [rcx + 0xd0]
movdqu xmm3, xmmword [rcx + 0xc0]
mov qword [rcx + 0xc8], r9
mov qword [rcx + 0xc0], r8
movq r9, xmm5
movaps xmmword [rsp + 0x100], xmm3
movaps xmmword [rsp + 0x30], xmm5
movaps xmmword [rsp + 0x110], xmm5
movups xmmword [rcx + 0xd0], xmm0
test r9, r9
je 0x14002b27d
mov rcx, qword [rsp + 0x48]
mov r8d, 3
mov rdx, rcx
call r9
jmp 0x14002b27d
xor eax, eax
jmp 0x14002b3bf
mov r9, r12
mov r8, rsi
lea rdx, str.basic_string::substr
lea rcx, str._s:___pos__which_is__zu____this__size____which_is__zu_
call sym.std::__throw_out_of_range_fmt_char_const__::_
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
mov rbx, rax
jmp 0x14002b59e
mov rcx, qword [rsp + 0x48]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rcx, rbx
mov rbx, rsi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x14002b57e
lea rcx, [rsp + 0xc0]
mov r8d, 3
mov rdx, rcx
call rax
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x14002b59e
lea rcx, [rsp + 0xe0]
mov r8d, 3
mov rdx, rcx
call rax
mov rcx, rdi
call method.std._Sp_counted_base____gnu_cxx::_Lock_policy_2_::_M_release__
mov rcx, qword [rsp + 0x40]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
lea rcx, [rsp + 0x60]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rcx, rbx
call sym._Unwind_Resume
mov rsi, rax
jmp 0x14002b549