Function at 0x1004dbe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov ebx, dword [0x101610e0]
test ebx, ebx
je 0x1004dd70
push 0
push 0xffffffffffffffff
push ebx
call sub.KERNEL32.dll_WaitForSingleObjectEx
mov eax, dword [0x10161114]
test eax, eax
jne 0x1004dc21
push str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
mov dword [0x10161114], eax
je 0x1004de40
xor ecx, ecx
cmp byte [0x101610e4], 0
jne 0x1004df6c
mov ecx, dword [0x10161118]
test ecx, ecx
jne 0x1004dc54
push str.SymGetOptions
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df63
mov ecx, eax
mov dword [0x10161118], eax
call ecx
mov ecx, eax
mov eax, dword [0x1016111c]
test eax, eax
jne 0x1004dc82
mov esi, ecx
push str.SymSetOptions
push dword [0x10161114]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df63
mov ecx, esi
mov dword [0x1016111c], eax
or ecx, 4
push ecx
call eax
mov edi, dword [0x10161120]
test edi, edi
jne 0x1004dcb1
push str.SymInitializeW
push dword [0x10161114]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df63
mov edi, eax
mov dword [0x10161120], eax
mov dword [ebp - 0x1c], ebx
call sub.KERNEL32.dll_GetCurrentProcess
push 1
push 0
push eax
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
xor edx, edx
lea ecx, [ebp - 0x18]
push 0x400
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h20e2001013f05adb
add esp, 4
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
lea eax, [ebx + esi*2]
push 0x7fe
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov word [ebx + esi*2 + 0x7fe], 0
add esi, 0x400
mov edi, dword [0x10161124]
mov dword [ebp - 0x10], esi
test edi, edi
jne 0x1004dd42
push str.SymGetSearchPathW
push dword [0x10161114]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df78
mov edi, eax
mov dword [0x10161124], eax
call sub.KERNEL32.dll_GetCurrentProcess
push esi
push ebx
push eax
call edi
cmp eax, 1
jne 0x1004de50
push ebx
call sub.KERNEL32.dll_lstrlenW
test eax, eax
js 0x1004dfa1
cmp esi, eax
jae 0x1004dea6
jmp 0x1004dea9
lea eax, [ebp - 0x44]
push 0x21
push str.LocalRustBacktraceMutex00000000
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
call fcn.100a4e14
test eax, eax
je 0x1004ddd5
mov ecx, 0x1f
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp ecx, 0x20
ja 0x1004df93
mov edx, eax
mov esi, eax
and dl, 0xf
mov dh, dl
mov ebx, edx
add bl, 0x37
or dh, 0x30
cmp dl, 0xa
movzx edx, dh
movzx ebx, bl
cmovb ebx, edx
shr esi, 4
mov byte [ebp + ecx - 0x44], bl
dec ecx
cmp eax, 0x10
mov eax, esi
jae 0x1004dda0
movsd xmm1, qword [ebp - 0x34]
movzx eax, byte [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
movsd xmm2, qword [ebp - 0x44]
movsd qword [ebp - 0x58], xmm1
movsd xmm1, qword [ebp - 0x3c]
mov byte [ebp - 0x48], al
movsd qword [ebp - 0x50], xmm0
movsd qword [ebp - 0x68], xmm2
movsd qword [ebp - 0x60], xmm1
lea eax, [ebp - 0x68]
push eax
push 0
push 0
call sub.KERNEL32.dll_CreateMutexA
test eax, eax
je 0x1004de36
mov ebx, eax
xor eax, eax
lock cmpxchg dword [0x101610e0], ebx
je 0x1004dbf7
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
mov ebx, edi
jmp 0x1004dbf7
mov ecx, 1
jmp 0x1004df6c
push ebx
call sub.KERNEL32.dll_ReleaseMutex
mov ecx, 1
jmp 0x1004df6c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004de71
cmp eax, 1
mov word [ebx], 0x2e
mov dword [ebp - 0x10], 1
je 0x1004de90
jmp 0x1004de9b
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
cmp eax, 1
mov word [ebx], 0x2e
mov dword [ebp - 0x10], 1
jne 0x1004de9b
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov ebx, dword [ebp - 0x14]
mov eax, 2
mov word [ebx + 2], 0x3b
mov dword [ebp - 0x10], eax
mov edi, dword [0x1016112c]
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x18]
test edi, edi
mov dword [ebp - 0x60], eax
movsd qword [ebp - 0x68], xmm0
jne 0x1004dee2
push str.EnumerateLoadedModulesW64
push dword [0x10161114]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df87
mov edi, eax
mov dword [0x1016112c], eax
call sub.KERNEL32.dll_GetCurrentProcess
lea ecx, [ebp - 0x68]
push ecx
push sym.__ZN3std12backtrace_rs7dbghelp28enum_loaded_modules_callback17hc80085c16b18d616E_20
push eax
call edi
movsd xmm0, qword [ebp - 0x68]
mov esi, dword [ebp - 0x60]
movsd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], esi
mov ebx, dword [ebp - 0x44]
cmp esi, ebx
jne 0x1004df15
lea ecx, [ebp - 0x44]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov word [eax + esi*2], 0
mov esi, eax
mov edi, dword [0x10161128]
test edi, edi
jne 0x1004df45
push str.SymSetSearchPathW
push dword [0x10161114]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x1004df4e
mov edi, eax
mov dword [0x10161128], eax
call sub.KERNEL32.dll_GetCurrentProcess
push esi
push eax
call edi
test ebx, ebx
je 0x1004df60
add ebx, ebx
push 2
push ebx
push esi
call sym.___rust_dealloc
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
xor ecx, ecx
mov byte [0x101610e4], 1
mov eax, ecx
mov edx, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004df60
add eax, eax
push 2
push eax
push ebx
jmp 0x1004df58
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x1004df60
mov esi, dword [ebp - 0x64]
jmp 0x1004df52
push 0x1012ce08
push 0x21
push 0xffffffffffffffff
call sym.core::panicking::panic_bounds_check::haf27547f44996d48
push 0x1012ce34
push 0x1a
push str.assertion_failed:_len___0
call sym.core::panicking::panic::h2de0902fd6c3d9b1
add esp, 0xc
ud2