Function at 0x40b245
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40c050
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov edi, dword [0x4459c4]
test edi, edi
je 0x40b3e8
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x40b6a4
mov eax, dword [0x4459d0]
mov dword [ebp - 0x38], edi
test eax, eax
jne 0x40b2b9
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4459d0], eax
je 0x40b623
xor ecx, ecx
cmp byte [0x4459c8], 0
jne 0x40b639
mov ecx, dword [0x4459d4]
test ecx, ecx
jne 0x40b2ed
push str.SymGetOptions
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6ff
mov ecx, eax
mov dword [0x4459d4], eax
call ecx
mov esi, eax
mov eax, dword [0x4459d8]
test eax, eax
jne 0x40b318
push str.SymSetOptions
push dword [0x4459d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b715
mov dword [0x4459d8], eax
or esi, 4
push esi
call eax
mov esi, dword [0x4459dc]
test esi, esi
jne 0x40b34f
push str.SymInitializeW
push dword [0x4459d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b72b
mov esi, eax
mov dword [0x4459dc], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x3c], edi
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.004029b2
add esp, 0xc
mov esi, dword [0x4459e0]
test esi, esi
jne 0x40b3b1
push str.SymGetSearchPathW
push dword [0x4459d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b741
mov esi, eax
mov dword [0x4459e0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call esi
cmp eax, 1
jne 0x40b48c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
js 0x40b6d3
cmp dword [ebp - 0x24], eax
jae 0x40b51d
jmp 0x40b520
lea esi, [ebp - 0x64]
push 0x21
push str.LocalRustBacktraceMutex00000000
push esi
call fcn.0041d350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x40b445
mov edi, 0x20
mov ecx, 0x20
sub ecx, 1
jb 0x40b64e
mov ebx, eax
and bl, 0xf
mov bh, bl
mov edx, ebx
add dl, 0x37
or bh, 0x30
cmp bl, 0xa
movzx ebx, bh
movzx edx, dl
cmovb edx, ebx
mov byte [ebp + edi - 0x65], dl
mov edi, eax
shr edi, 4
cmp eax, 0xf
mov eax, edi
mov edi, ecx
ja 0x40b40f
lea edi, [ebp - 0x88]
push 0x21
push esi
push edi
call fcn.0041d350
add esp, 0xc
xor eax, eax
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40b61f
mov edi, eax
xor eax, eax
lock cmpxchg dword [0x4459c4], edi
je 0x40b27f
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x40b27f
cmp dword [ebp - 0x24], 0x3fffffff
ja 0x40b6f0
mov eax, dword [ebp - 0x28]
mov ecx, eax
and ecx, 1
jne 0x40b6f0
mov dword [ebp - 0x24], 0
xor ecx, ecx
cmp dword [ebp - 0x2c], 0
jne 0x40b4cc
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
push eax
call fcn.0040ad0b
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*2]
test al, 1
jne 0x40b6c7
mov word [eax], 0x2e
mov eax, dword [ebp - 0x24]
inc eax
je 0x40b678
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x2c]
jne 0x40b501
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
push eax
call fcn.0040ad0b
add esp, 4
mov eax, dword [ebp - 0x24]
add eax, eax
add eax, dword [ebp - 0x28]
test al, 1
jne 0x40b6c7
mov word [eax], 0x3b
mov eax, dword [ebp - 0x24]
inc eax
je 0x40b68e
mov dword [ebp - 0x24], eax
mov esi, dword [0x4459e8]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
test esi, esi
mov dword [ebp - 0x80], eax
movsd qword [ebp - 0x88], xmm0
jne 0x40b55d
push str.EnumerateLoadedModulesW64
push dword [0x4459d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b754
mov esi, eax
mov dword [0x4459e8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebp - 0x88]
push edi
push 0x40b853
push eax
call esi
movsd xmm0, qword [edi]
mov eax, dword [edi + 8]
movsd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x64]
jne 0x40b59c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 4
push eax
call fcn.0040ad0b
add esp, 4
mov eax, dword [ebp - 0x5c]
add eax, eax
add eax, dword [ebp - 0x60]
test al, 1
jne 0x40b6c7
mov word [eax], 0
mov edi, dword [ebp - 0x3c]
cmp dword [ebp - 0x5c], 0xffffffff
je 0x40b65f
mov esi, dword [0x4459e4]
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
test esi, esi
mov dword [ebp - 0x34], eax
jne 0x40b5f4
mov dword [ebp - 0x30], ebx
push str.SymSetSearchPathW
push dword [0x4459d0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b76e
mov ebx, dword [ebp - 0x30]
mov esi, eax
mov dword [0x4459e4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp - 0x34]
push eax
call esi
test ebx, ebx
mov byte [0x4459c8], 1
je 0x40b61b
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x34]
call fcn.004025f0
add esp, 0xc
xor ecx, ecx
jmp 0x40b639
xor ecx, ecx
jmp 0x40b638
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.0040bb20
add esp, 4
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x18]
mov edx, edi
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0xffffffff
push 0x431b7c
call fcn.0042b1d9
mov dword [ebp - 0x10], 4
push 0x43175c
call fcn.0042b1ad
add esp, 4
jmp 0x40b782
mov byte [ebp - 0x1d], 1
push 0x43175c
call fcn.0042b1ad
add esp, 4
jmp 0x40b782
mov byte [ebp - 0x1d], 1
push 0x43175c
call fcn.0042b1ad
add esp, 4
jmp 0x40b782
xor eax, eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x40]
mov dword [ecx], eax
push 0x431b48
push ecx
push 0x43139c
push edx
push eax
call fcn.0042afbd
push 0x66
push 0x431446
call fcn.0042af2f
mov byte [ebp - 0x1d], 1
push 0x431b18
push 0x1a
push str.assertion_failed:_len___0
call fcn.0042aef5
add esp, 0xc
jmp 0x40b782
push 0xa6
push 0x4315fd
call fcn.0042af2f
mov dword [ebp - 0x10], 0
push 0x431abc
call fcn.0042ae50
add esp, 4
jmp 0x40b782
mov dword [ebp - 0x10], 0
push 0x431acc
call fcn.0042ae50
add esp, 4
jmp 0x40b782
mov dword [ebp - 0x10], 0
push 0x431adc
call fcn.0042ae50
add esp, 4
jmp 0x40b782
mov byte [ebp - 0x1d], 1
push 0x431aec
call fcn.0042ae50
add esp, 4
jmp 0x40b782
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 2
push 0x431b28
call fcn.0042ae50
add esp, 4
jmp 0x40b782
mov dword [ebp - 0x10], 3
push 0x431b38
call fcn.0042ae50
add esp, 4
ud2