Function at 0x417154
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x418220
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov edi, dword [0x4459d8]
test edi, edi
je 0x4172e7
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov eax, dword [0x4459e0]
test eax, eax
jne 0x4171ba
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4459e0], eax
je 0x4174c6
cmp byte [0x4459dc], 0
jne 0x4174be
mov ecx, dword [0x4459e4]
mov dword [ebp - 0x38], edi
test ecx, ecx
jne 0x4171ef
push str.SymGetOptions
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417514
mov ecx, eax
mov dword [0x4459e4], eax
call ecx
mov esi, eax
mov eax, dword [0x4459e8]
test eax, eax
jne 0x41721a
push str.SymSetOptions
push dword [0x4459e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41752a
mov dword [0x4459e8], eax
or esi, 4
push esi
call eax
mov esi, dword [0x4459ec]
test esi, esi
jne 0x417251
push str.SymInitializeW
push dword [0x4459e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417540
mov esi, eax
mov dword [0x4459ec], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
xor edi, edi
inc ebx
push ebx
push edi
push eax
call esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], ebx
mov dword [eax], edi
mov dword [eax + 4], 2
mov dword [eax + 8], edi
push edi
push 0x400
push eax
call fcn.0040b4ed
add esp, 0xc
mov esi, dword [0x4459f0]
test esi, esi
jne 0x4172b0
push str.SymGetSearchPathW
push dword [0x4459e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417556
mov esi, eax
mov dword [0x4459f0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call esi
cmp eax, 1
jne 0x417382
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
js 0x4174f7
cmp dword [ebp - 0x24], eax
jae 0x4173d9
jmp 0x4173dc
lea esi, [ebp - 0x5c]
push 0x21
push str.LocalRustBacktraceMutex00000000
push esi
call fcn.00425cf0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x41733e
mov ecx, 0x1f
cmp ecx, 0x20
ja 0x4174e4
mov edx, eax
mov edi, 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 edi, 4
mov byte [ebp + ecx - 0x5c], bl
dec ecx
cmp eax, 0x10
mov eax, edi
jae 0x417309
lea edi, [ebp - 0x80]
push 0x21
push esi
push edi
call fcn.00425cf0
add esp, 0xc
xor eax, eax
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4174c2
mov edi, eax
xor eax, eax
lock cmpxchg dword [0x4459d8], edi
je 0x41718e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41718e
mov dword [ebp - 0x24], 0
xor eax, eax
cmp dword [ebp - 0x2c], 0
jne 0x4173a4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
push eax
call fcn.0040364a
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax*2], 0x2e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x2c]
jne 0x4173cc
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
push eax
call fcn.0040364a
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov word [ecx + eax*2], 0x3b
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov esi, dword [0x4459f8]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
test esi, esi
mov dword [ebp - 0x78], eax
movsd qword [ebp - 0x80], xmm0
jne 0x417416
push str.EnumerateLoadedModulesW64
push dword [0x4459e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417569
mov esi, eax
mov dword [0x4459f8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebp - 0x80]
push edi
push 0x417662
push eax
call esi
movsd xmm0, qword [edi]
mov eax, dword [edi + 8]
movsd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x5c]
jne 0x417452
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x10], 4
push eax
call fcn.0040364a
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x38]
mov word [ecx + eax*2], 0
mov esi, dword [0x4459f4]
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x5c]
test esi, esi
mov dword [ebp - 0x34], eax
jne 0x417497
mov dword [ebp - 0x30], ebx
push str.SymSetSearchPathW
push dword [0x4459e0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417583
mov ebx, dword [ebp - 0x30]
mov esi, eax
mov dword [0x4459f4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp - 0x34]
push eax
call esi
test ebx, ebx
mov byte [0x4459dc], 1
je 0x4174be
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x34]
call fcn.00402b10
add esp, 0xc
xor eax, eax
jmp 0x4174d0
xor eax, eax
jmp 0x4174cf
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
inc 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
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
push 0x43851c
push 0x21
push eax
call fcn.004338e3
mov byte [ebp - 0x1d], 1
push 0x4384c8
push 0x1a
push str.assertion_failed:_len___0
call fcn.0043386f
add esp, 0xc
jmp 0x417597
mov dword [ebp - 0x10], 0
push 0x43846c
call fcn.00433787
add esp, 4
jmp 0x417597
mov dword [ebp - 0x10], 0
push 0x43847c
call fcn.00433787
add esp, 4
jmp 0x417597
mov dword [ebp - 0x10], 0
push 0x43848c
call fcn.00433787
add esp, 4
jmp 0x417597
mov byte [ebp - 0x1d], 1
push 0x43849c
call fcn.00433787
add esp, 4
jmp 0x417597
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 2
push 0x4384d8
call fcn.00433787
add esp, 4
jmp 0x417597
mov dword [ebp - 0x10], 3
push 0x4384e8
call fcn.00433787
add esp, 4
ud2