Function at 0x4df9d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [0x5370b0]
test esi, esi
je 0x4dfb60
push 0
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObjectEx
mov eax, dword [0x5370c8]
test eax, eax
jne 0x4dfa11
push str.dbghelp.dll
call sub.kernel32.dll_LoadLibraryA
test eax, eax
mov dword [0x5370c8], eax
je 0x4dfc26
xor ecx, ecx
cmp byte [0x5370b4], 0
jne 0x4dfd3b
mov ecx, dword [0x5370cc]
mov dword [ebp - 0x20], esi
test ecx, ecx
jne 0x4dfa47
push str.SymGetOptions
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd2f
mov ecx, eax
mov dword [0x5370cc], eax
call ecx
mov ecx, eax
mov eax, dword [0x5370d0]
test eax, eax
jne 0x4dfa75
mov esi, ecx
push str.SymSetOptions
push dword [0x5370c8]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd2f
mov ecx, esi
mov dword [0x5370d0], eax
or ecx, 4
push ecx
call eax
mov edi, dword [0x5370d4]
test edi, edi
jne 0x4dfaa4
push str.SymInitializeW
push dword [0x5370c8]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd2f
mov edi, eax
mov dword [0x5370d4], eax
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 - 0x1c], eax
xor edx, edx
lea ecx, [ebp - 0x18]
push 0x400
call fcn.004bf070
add esp, 4
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
lea eax, [edi + esi*2]
push 0x7fe
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov word [edi + esi*2 + 0x7fe], 0
add esi, 0x400
mov ebx, dword [0x5370d8]
mov dword [ebp - 0x10], esi
test ebx, ebx
jne 0x4dfb32
push str.SymGetSearchPathW
push dword [0x5370c8]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd47
mov ebx, eax
mov dword [0x5370d8], eax
call sub.kernel32.dll_GetCurrentProcess
push esi
push edi
push eax
call ebx
cmp eax, 1
jne 0x4dfc36
push edi
call sub.kernel32.dll_lstrlenW
test eax, eax
js 0x4dfd74
cmp esi, eax
jae 0x4dfc79
jmp 0x4dfc7c
lea eax, [ebp - 0x44]
push 0x21
push str.LocalRustBacktraceMutex00000000
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
call sub.kernel32.dll_GetCurrentProcessId
test eax, eax
je 0x4dfbc5
mov ecx, 0x1f
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp ecx, 0x20
ja 0x4dfd60
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 0x4dfb90
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 0x4dfc2c
mov esi, eax
xor eax, eax
lock cmpxchg dword [0x5370b0], esi
je 0x4df9e7
mov edi, eax
push esi
call sub.kernel32.dll_CloseHandle
mov esi, edi
jmp 0x4df9e7
push esi
call sub.kernel32.dll_ReleaseMutex
mov ecx, 1
jmp 0x4dfd3b
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4dfc52
lea ecx, [ebp - 0x18]
call fcn.004de910
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp eax, 1
mov word [edi], 0x2e
mov dword [ebp - 0x10], 1
jne 0x4dfc6e
lea ecx, [ebp - 0x18]
call fcn.004de910
mov edi, dword [ebp - 0x14]
mov eax, 2
mov word [edi + 2], 0x3b
mov dword [ebp - 0x10], eax
mov edi, dword [0x5370e0]
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x18]
test edi, edi
mov dword [ebp - 0x60], eax
movsd qword [ebp - 0x68], xmm0
jne 0x4dfcb5
push str.EnumerateLoadedModulesW64
push dword [0x5370c8]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd4f
mov edi, eax
mov dword [0x5370e0], eax
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x68]
push ecx
push 0x4dfec0
push eax
call edi
movsd xmm0, qword [ebp - 0x68]
mov ebx, dword [ebp - 0x60]
movsd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], ebx
mov esi, dword [ebp - 0x44]
cmp ebx, esi
jne 0x4dfce8
lea ecx, [ebp - 0x44]
call fcn.004de910
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov word [edi + ebx*2], 0
mov ebx, dword [0x5370dc]
test ebx, ebx
jne 0x4dfd16
push str.SymSetSearchPathW
push dword [0x5370c8]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4dfd5a
mov ebx, eax
mov dword [0x5370dc], eax
call sub.kernel32.dll_GetCurrentProcess
push edi
push eax
call ebx
test esi, esi
je 0x4dfd2f
mov ecx, edi
mov edx, 2
call fcn.0044dba0
mov esi, dword [ebp - 0x20]
xor ecx, ecx
mov byte [0x5370b4], 1
mov eax, ecx
mov edx, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x18], 0
je 0x4dfd2f
jmp 0x4dfd23
cmp dword [ebp - 0x68], 0
je 0x4dfd2f
mov edi, dword [ebp - 0x64]
jmp 0x4dfd23
test esi, esi
je 0x4dfd2f
jmp 0x4dfd23
mov ecx, 0xffffffff
mov edx, 0x21
push 0x5156b8
call fcn.00442900
mov edx, 0x1a
mov ecx, str.assertion_failed:_len___0
push 0x5156e4
call fcn.004434c0
add esp, 4
ud2