Function at 0x40fc20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x410790
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov edi, dword [0x43ea48]
test edi, edi
je 0x40fdf1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObjectEx]
mov eax, dword [0x43ea50]
test eax, eax
jne 0x40fc87
push str.dbghelp.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x43ea50], eax
je 0x40fec2
xor ebx, ebx
cmp byte [0x43ea4c], 0
jne 0x410020
mov ecx, dword [0x43ea54]
test ecx, ecx
jne 0x40fcbb
push str.SymGetOptions
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410019
mov ecx, eax
mov dword [0x43ea54], eax
call ecx
mov ecx, eax
mov eax, dword [0x43ea58]
test eax, eax
jne 0x40fcea
mov esi, ecx
push str.SymSetOptions
push dword [0x43ea50]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410019
mov ecx, esi
mov dword [0x43ea58], eax
or ecx, 4
push ecx
call eax
mov esi, dword [0x43ea5c]
test esi, esi
jne 0x40fd21
push str.SymInitializeW
push dword [0x43ea50]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410019
mov esi, eax
mov dword [0x43ea5c], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], edi
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], 0
lea eax, [ebp - 0x2c]
push 2
push 2
push 0x400
push 0
push eax
call fcn.0042e410
add esp, 0x14
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea eax, [edi + ebx*2]
push 0x7fe
push 0
push eax
call fcn.0041fbb0
add esp, 0xc
mov word [edi + ebx*2 + 0x7fe], 0
add ebx, 0x400
mov esi, dword [0x43ea60]
mov dword [ebp - 0x24], ebx
test esi, esi
jne 0x40fdbe
push str.SymGetSearchPathW
push dword [0x43ea50]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410035
mov esi, eax
mov dword [0x43ea60], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push ebx
push edi
push eax
call esi
cmp eax, 1
jne 0x40fed3
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
js 0x410067
cmp dword [ebp - 0x24], eax
jae 0x40ff41
jmp 0x40ff44
lea eax, [ebp - 0x58]
push 0x21
push str.LocalRustBacktraceMutex00000000
push eax
call fcn.00421750
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
test eax, eax
je 0x40fe55
mov ecx, 0x1f
nop word cs:[eax + eax]
nop dword [eax]
cmp ecx, 0x20
ja 0x410052
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 - 0x58], bl
dec ecx
cmp eax, 0x10
mov eax, esi
jae 0x40fe20
movsd xmm1, qword [ebp - 0x48]
movzx eax, byte [ebp - 0x38]
movsd xmm0, qword [ebp - 0x40]
movsd xmm2, qword [ebp - 0x58]
movsd qword [ebp - 0x6c], xmm1
movsd xmm1, qword [ebp - 0x50]
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x7c]
movsd qword [ebp - 0x64], xmm0
movsd qword [ebp - 0x7c], xmm2
movsd qword [ebp - 0x74], xmm1
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
je 0x40feb8
mov edi, eax
xor eax, eax
lock cmpxchg dword [0x43ea48], edi
je 0x40fc5b
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, esi
jmp 0x40fc5b
mov ebx, 1
jmp 0x410020
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov ebx, 1
jmp 0x410020
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x2c], 0
je 0x40fef4
mov word [edi], 0x2e
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x2c], 1
je 0x40ff1e
jmp 0x40ff33
mov byte [ebp - 0x1d], 1
push 0x432730
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dd0
add esp, 8
mov edi, dword [ebp - 0x28]
mov word [edi], 0x2e
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x2c], 1
jne 0x40ff33
mov byte [ebp - 0x1d], 1
push 0x432740
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dd0
add esp, 8
mov eax, dword [ebp - 0x28]
mov word [eax + 2], 0x3b
mov eax, 2
mov dword [ebp - 0x24], eax
mov esi, dword [0x43ea68]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
test esi, esi
mov dword [ebp - 0x74], eax
movsd qword [ebp - 0x7c], xmm0
jne 0x40ff7e
push str.EnumerateLoadedModulesW64
push dword [0x43ea50]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410046
mov esi, eax
mov dword [0x43ea68], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x7c]
push ecx
push 0x410100
push eax
call esi
movsd xmm0, qword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
movsd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp - 0x58]
jne 0x40ffc3
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x58]
push 0x43278c
push eax
mov dword [ebp - 0x34], ecx
call fcn.00409dd0
mov ecx, dword [ebp - 0x34]
add esp, 8
mov eax, dword [ebp - 0x54]
mov word [eax + ecx*2], 0
mov esi, dword [0x43ea64]
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
test esi, esi
jne 0x40fff8
push str.SymSetSearchPathW
push dword [0x43ea50]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x410002
mov esi, eax
mov dword [0x43ea64], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push ebx
push eax
call esi
test edi, edi
je 0x410014
add edi, edi
push 2
push edi
push ebx
call fcn.004053b0
add esp, 0xc
mov edi, dword [ebp - 0x30]
xor ebx, ebx
mov byte [0x43ea4c], 1
mov eax, dword [ebp - 0x18]
mov edx, edi
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x410014
add eax, eax
push 2
push eax
push dword [ebp - 0x28]
jmp 0x41000c
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x410014
mov ebx, dword [ebp - 0x78]
jmp 0x410006
mov dword [ebp - 0x10], 0xffffffff
push 0x432720
push 0x21
push 0xffffffffffffffff
call fcn.0042eb99
mov byte [ebp - 0x1d], 1
push 0x43276c
push 0x1a
push str.assertion_failed:_len___0
call fcn.0042eb00
add esp, 0xc
ud2