Function at 0x40bd70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40ead0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov edi, dword [0x786394]
test edi, edi
je 0x40bf3a
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov eax, dword [0x7863b0]
test eax, eax
jne 0x40bdd7
push 0x704ad0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x7863b0], eax
je 0x40c14a
cmp byte [0x786398], 0
jne 0x40c12d
mov ecx, dword [0x7863b4]
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x40be0c
push str.SymGetOptions
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c18a
mov ecx, eax
mov dword [0x7863b4], eax
call ecx
mov ecx, eax
mov eax, dword [0x7863b8]
test eax, eax
jne 0x40be3b
mov esi, ecx
push str.SymSetOptions
push dword [0x7863b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1a0
mov ecx, esi
mov dword [0x7863b8], eax
or ecx, 4
push ecx
call eax
mov esi, dword [0x7863bc]
test esi, esi
jne 0x40be72
push str.SymInitializeW
push dword [0x7863b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1b6
mov esi, eax
mov dword [0x7863bc], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push eax
call esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
xor edx, edx
push 0x400
call fcn.00667c30
add esp, 4
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea eax, [edi + ebx*2]
push 0x7fe
push 0
push eax
call fcn.00634760
add esp, 0xc
mov word [edi + ebx*2 + 0x7fe], 0
add ebx, 0x400
mov esi, dword [0x7863c0]
mov dword [ebp - 0x24], ebx
test esi, esi
jne 0x40bf07
push str.SymGetSearchPathW
push dword [0x7863b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1cc
mov esi, eax
mov dword [0x7863c0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push edi
push eax
call esi
cmp eax, 1
jne 0x40bffc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
js 0x40c16d
mov edi, dword [ebp - 0x34]
cmp ebx, eax
jae 0x40c04d
jmp 0x40c050
lea eax, [ebp - 0x5c]
push 0x21
push str.LocalRustBacktraceMutex00000000
push eax
call fcn.006341e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x40bf95
mov ecx, 0x1f
nop dword [eax]
cmp ecx, 0x20
ja 0x40c158
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 - 0x5c], bl
dec ecx
cmp eax, 0x10
mov eax, esi
jae 0x40bf60
movsd xmm1, qword [ebp - 0x4c]
movzx eax, byte [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x44]
movsd xmm2, qword [ebp - 0x5c]
movsd qword [ebp - 0x70], xmm1
movsd xmm1, qword [ebp - 0x54]
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x80]
movsd qword [ebp - 0x68], xmm0
movsd qword [ebp - 0x80], xmm2
movsd qword [ebp - 0x78], xmm1
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40c143
mov edi, eax
xor eax, eax
lock cmpxchg dword [0x786394], edi
je 0x40bdab
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x40bdab
mov dword [ebp - 0x24], 0
xor eax, eax
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x40c023
lea ecx, [ebp - 0x2c]
xor edx, edx
mov byte [ebp - 0x1d], 1
call fcn.00406b50
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov word [edi + eax*2], 0x2e
inc eax
cmp eax, edx
mov dword [ebp - 0x24], eax
jne 0x40c043
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
call fcn.00406b50
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov word [edi + eax*2], 0x3b
mov edi, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x24], eax
mov esi, dword [0x7863c8]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
test esi, esi
mov dword [ebp - 0x78], eax
movsd qword [ebp - 0x80], xmm0
jne 0x40c08a
push str.EnumerateLoadedModulesW64
push dword [0x7863b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1df
mov esi, eax
mov dword [0x7863c8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x80]
push ecx
push 0x40c300
push eax
call esi
movsd xmm0, qword [ebp - 0x80]
mov edx, dword [ebp - 0x78]
movsd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x5c]
cmp edx, eax
jne 0x40c0cb
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], 3
call fcn.00406b50
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x58]
mov word [ebx + edx*2], 0
mov esi, dword [0x7863c4]
test esi, esi
jne 0x40c107
mov dword [ebp - 0x38], ebx
push str.SymSetSearchPathW
push dword [0x7863b0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1f9
mov ebx, dword [ebp - 0x38]
mov esi, eax
mov dword [0x7863c4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push eax
call esi
mov eax, dword [ebp - 0x30]
mov byte [0x786398], 1
test eax, eax
je 0x40c12d
add eax, eax
push 2
push eax
push ebx
call fcn.0040ec40
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, edi
mov dword fs:[0], ecx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
jmp 0x40c12f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x40c12f
mov dword [ebp - 0x10], 0xffffffff
push 0x70453c
push 0x21
push 0xffffffffffffffff
call fcn.00667870
mov byte [ebp - 0x1d], 1
push 0x7044e8
push 0x1a
push str.assertion_failed:_len___0
call fcn.006677d0
add esp, 0xc
jmp 0x40c20d
mov dword [ebp - 0x10], 0
push 0x70448c
call fcn.006676e0
add esp, 4
jmp 0x40c20d
mov dword [ebp - 0x10], 0
push 0x70449c
call fcn.006676e0
add esp, 4
jmp 0x40c20d
mov dword [ebp - 0x10], 0
push 0x7044ac
call fcn.006676e0
add esp, 4
jmp 0x40c20d
mov byte [ebp - 0x1d], 1
push 0x7044bc
call fcn.006676e0
add esp, 4
jmp 0x40c20d
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 2
push 0x7044f8
call fcn.006676e0
add esp, 4
jmp 0x40c20d
mov dword [ebp - 0x10], 4
push 0x704508
call fcn.006676e0
add esp, 4
ud2