Function at 0x140042620
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x11f8
call fcn.140056660
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1160], xmm6
mov qword [rbp + 0x1158], 0xfffffffffffffffe
mov rdi, r8
mov qword [rbp + 0x10f0], rdx
mov rbx, rcx
mov rcx, qword [0x14007c188]
test rcx, rcx
je 0x140042850
mov qword [rbp + 0x1148], rcx
mov edx, 0xffffffff
xor r8d, r8d
call qword [sym.imp.kernel32.dll_WaitForSingleObjectEx]
mov rax, qword [0x14007c1b0]
test rax, rax
jne 0x1400426ae
lea rcx, str.dbghelp.dll
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov qword [0x14007c1b0], rax
test rax, rax
je 0x140042e64
cmp byte [0x14007c190], 0
jne 0x140042aae
mov rcx, qword [0x14007c1b8]
test rcx, rcx
jne 0x1400426ea
lea rdx, str.SymGetOptions
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042aa7
mov rcx, rax
mov qword [0x14007c1b8], rax
call rcx
mov ecx, eax
mov rax, qword [0x14007c1c0]
test rax, rax
jne 0x140042722
mov esi, ecx
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymSetOptions
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042aa7
mov qword [0x14007c1c0], rax
mov ecx, esi
or ecx, 4
call rax
mov rsi, qword [0x14007c1c8]
test rsi, rsi
jne 0x14004275a
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymInitializeW
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042aa7
mov rsi, rax
mov qword [0x14007c1c8], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
mov r8d, 1
call rsi
mov qword [rbp + 0x1110], 0
mov qword [rbp + 0x1118], 2
mov qword [rbp + 0x1120], 0
mov byte [rbp + 0x1157], 0
lea rcx, [rbp + 0x1110]
mov r8d, 0x400
xor edx, edx
call fcn.140058e50
mov rsi, qword [rbp + 0x1118]
mov r14, qword [rbp + 0x1120]
lea rcx, [rsi + r14*2]
mov r8d, 0x7fe
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov word [rsi + r14*2 + 0x7fe], 0
add r14, 0x400
mov qword [rbp + 0x1120], r14
mov r15, qword [0x14007c1d0]
test r15, r15
jne 0x140042814
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymGetSearchPathW
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042e94
mov r15, rax
mov qword [0x14007c1d0], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
mov r8d, r14d
call r15
cmp eax, 1
jne 0x14004293e
mov rcx, rsi
call qword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
js 0x140042ed9
mov eax, eax
cmp r14, rax
jae 0x1400429b1
jmp 0x1400429b8
movups xmm0, xmmword [0x140070170]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [str.LocalRustBacktraceMutex00000000]
movaps xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x20], 0
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
test eax, eax
je 0x1400428df
mov ecx, 0x1f
nop dword [rax]
cmp rcx, 0x20
ja 0x140042ec1
mov edx, eax
and dl, 0xf
lea r8d, [rdx + 0x30]
lea r9d, [rdx + 0x37]
cmp dl, 0xa
movzx edx, r8b
movzx r8d, r9b
cmovb r8d, edx
mov byte [rbp + rcx - 0x40], r8b
cmp eax, 0x10
jb 0x1400428df
mov edx, eax
shr dl, 4
lea r8d, [rdx + 0x30]
add dl, 0x37
cmp al, 0xa0
movzx r8d, r8b
movzx edx, dl
cmovb edx, r8d
mov byte [rbp + rcx - 0x41], dl
mov edx, eax
shr edx, 8
add rcx, 0xfffffffffffffffe
cmp eax, 0x100
mov eax, edx
jae 0x140042880
movzx eax, byte [rbp - 0x20]
mov byte [rbp + 0xfe0], al
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0xfd0], xmm1
movaps xmmword [rbp + 0xfc0], xmm0
lea r8, [rbp + 0xfc0]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateMutexA]
test rax, rax
je 0x140042e71
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x14007c188], rcx
je 0x140042670
mov rsi, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rsi
jmp 0x140042670
mov qword [rbp + 0x1120], 0
mov rax, qword [rbp + 0x1110]
test rax, rax
jne 0x140042976
mov byte [rbp + 0x1157], 0
lea rcx, [rbp + 0x1110]
call fcn.140043020
mov rax, qword [rbp + 0x1110]
mov rsi, qword [rbp + 0x1118]
mov word [rsi], 0x2e
mov qword [rbp + 0x1120], 1
cmp rax, 1
jne 0x1400429a6
mov byte [rbp + 0x1157], 0
lea rcx, [rbp + 0x1110]
call fcn.140043020
mov rsi, qword [rbp + 0x1118]
mov word [rsi + 2], 0x3b
mov eax, 2
mov qword [rbp + 0x1120], rax
mov rax, qword [rbp + 0x1120]
mov qword [rbp + 0xfd0], rax
movups xmm0, xmmword [rbp + 0x1110]
movaps xmmword [rbp + 0xfc0], xmm0
mov rsi, qword [0x14007c1e0]
test rsi, rsi
jne 0x140042a07
mov rcx, qword [0x14007c1b0]
lea rdx, str.EnumerateLoadedModulesW64
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042ea7
mov rsi, rax
mov qword [0x14007c1e0], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
lea rdx, [0x1400430c0]
lea r8, [rbp + 0xfc0]
mov rcx, rax
call rsi
movaps xmm0, xmmword [rbp + 0xfc0]
movaps xmmword [rbp - 0x40], xmm0
mov r14, qword [rbp + 0xfd0]
mov qword [rbp - 0x30], r14
mov r15, qword [rbp - 0x40]
cmp r14, r15
jne 0x140042a4c
lea rcx, [rbp - 0x40]
call fcn.140043020
mov r15, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov word [rsi + r14*2], 0
mov r14, qword [0x14007c1d8]
test r14, r14
jne 0x140042a86
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymSetSearchPathW
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042a95
mov r14, rax
mov qword [0x14007c1d8], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call r14
test r15, r15
je 0x140042aa7
mov edx, 2
mov rcx, rsi
call fcn.140008050
mov byte [0x14007c190], 1
mov rsi, qword [rbx + 0x10]
mov r14d, dword [rbx]
mov r12d, dword [rbx + 4]
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x10f8], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rdi, rax
mov rbx, qword [0x14007c1e8]
test rbx, rbx
jne 0x140042b00
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymFromInlineContextW
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042e64
mov rbx, rax
mov qword [0x14007c1e8], rax
mov rax, qword [0x14007c1f0]
mov qword [rbp + 0x1108], rax
test rax, rax
jne 0x140042b45
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymGetLineFromInlineContextW
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [rbp + 0x1108], rax
test rax, rax
je 0x140042e64
mov rax, qword [rbp + 0x1108]
mov qword [0x14007c1f0], rax
lea r15, [rsi - 1]
test rsi, rsi
cmove r15, rsi
mov esi, 1
test r14d, r14d
je 0x140042d96
add esi, r12d
cmp r12d, esi
jae 0x140042e64
lea r13, [rbp - 0x3c]
lea r14, [rbp + 0xfc0]
xorps xmm6, xmm6
mov qword [rbp + 0x1100], rbx
jmp 0x140042b9c
inc r12d
cmp r12d, esi
je 0x140042e64
mov r8d, 0xff4
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x10], 0x7d0
mov dword [rbp - 0x40], 0x58
mov qword [rbp + 0xfc0], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r15
mov r8d, r12d
mov r9, r14
call rbx
cmp eax, 1
jne 0x140042b90
mov eax, dword [rbp + 0xc]
mov r9d, dword [rbp + 0x10]
dec r9
cmp rax, r9
cmovb r9, rax
movaps xmmword [rbp + 0x10b0], xmm6
movaps xmmword [rbp + 0x10a0], xmm6
movaps xmmword [rbp + 0x1090], xmm6
movaps xmmword [rbp + 0x1080], xmm6
movaps xmmword [rbp + 0x1070], xmm6
movaps xmmword [rbp + 0x1060], xmm6
movaps xmmword [rbp + 0x1050], xmm6
movaps xmmword [rbp + 0x1040], xmm6
movaps xmmword [rbp + 0x1030], xmm6
movaps xmmword [rbp + 0x1020], xmm6
movaps xmmword [rbp + 0x1010], xmm6
movaps xmmword [rbp + 0x1000], xmm6
movaps xmmword [rbp + 0xff0], xmm6
movaps xmmword [rbp + 0xfe0], xmm6
movaps xmmword [rbp + 0xfd0], xmm6
movaps xmmword [rbp + 0xfc0], xmm6
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0x100
mov ecx, 0xfde9
xor edx, edx
lea r8, [rbp + 0x14]
call qword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
je 0x140042c99
cmp eax, 0x100
ja 0x140042b90
mov r13d, eax
jmp 0x140042c9f
mov r13d, 0x100
movaps xmmword [rbp + 0x10c0], xmm6
movaps xmmword [rbp + 0x10d0], xmm6
mov qword [rbp + 0x10e0], 0
mov dword [rbp + 0x10c0], 0x28
mov dword [rbp + 0x1110], 0
lea rax, [rbp + 0x10c0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1110]
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov rcx, rdi
mov rdx, r15
mov r8d, r12d
xor r9d, r9d
call qword [rbp + 0x1108]
mov r9d, 0
cmp eax, 1
jne 0x140042d38
mov ecx, dword [rbp + 0x10d0]
mov r8, 0xffffffffffffffff
mov rdx, qword [rbp + 0x10d8]
nop word [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140042d20
mov r9d, 1
mov ebx, 1
mov rax, qword [rbp - 8]
mov qword [rbp + 0x1110], r9
mov qword [rbp + 0x1118], rdx
mov qword [rbp + 0x1120], r8
mov dword [rbp + 0x1128], ebx
mov dword [rbp + 0x112c], ecx
mov qword [rbp + 0x1130], r14
mov qword [rbp + 0x1138], r13
mov qword [rbp + 0x1140], rax
mov rcx, qword [rbp + 0x10f0]
lea rdx, [rbp + 0x1110]
call qword [rbp + 0x10f8]
mov rbx, qword [rbp + 0x1100]
lea r13, [rbp - 0x3c]
jmp 0x140042b90
mov rsi, qword [0x14007c1f8]
test rsi, rsi
jne 0x140042dc9
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymAddrIncludeInlineTrace
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042e64
mov rsi, rax
mov qword [0x14007c1f8], rax
mov r14, qword [0x14007c200]
test r14, r14
jne 0x140042df8
mov rcx, qword [0x14007c1b0]
lea rdx, str.SymQueryInlineTrace
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140042e64
mov r14, rax
mov qword [0x14007c200], rax
mov rcx, rdi
mov rdx, r15
call rsi
mov dword [rbp + 0xfc0], 0
mov esi, 1
test eax, eax
je 0x140042e8c
mov r13d, eax
mov dword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xfc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r12d, r12d
mov rcx, rdi
mov rdx, r15
xor r8d, r8d
mov r9, r15
call r14
cmp eax, 1
jne 0x140042b5e
inc r13d
mov r12d, dword [rbp + 0xfc0]
mov esi, r13d
jmp 0x140042b5e
mov rcx, qword [rbp + 0x1148]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
movaps xmm6, xmmword [rbp + 0x1160]
add rsp, 0x11f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor r12d, r12d
jmp 0x140042b5e
cmp qword [rbp + 0x1110], 0
jne 0x140042a9a
jmp 0x140042aa7
cmp qword [rbp + 0xfc0], 0
je 0x140042aa7
mov rsi, qword [rbp + 0xfc8]
jmp 0x140042a9a
lea r8, str.library_std_src...._backtrace_srcdbghelp.rs
mov edx, 0x21
mov rcx, 0xffffffffffffffff
call fcn.140057500
mov byte [rbp + 0x1157], 0
lea rcx, str.assertion_failed:_len___0
lea r8, str.library_std_src...._backtrace_srcdbghelp.rs
mov edx, 0x1a
call fcn.1400575e0
ud2