Function at 0x401d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xcc], esp
mov dword [esi + 0xd8], 0xffffffff
mov dword [esi + 0xd4], 0x5377c0
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], ecx
test edx, edx
lea ecx, [esi + 0xd0]
mov eax, dword fs:[0]
mov dword [esi + 0xd0], eax
mov dword fs:[0], ecx
je 0x401f17
cmp edx, 1
jne 0x401f91
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
xor ebx, ebx
mov dword [esi + 0xc], 0
jmp 0x401dd2
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
cmp ebx, 0xb
adc ebx, 0
test al, 1
jne 0x4020af
mov edi, eax
shr edi, 1
and edi, 0x1f
cmp edi, 0x1f
jne 0x401e0f
mov edi, dword [ebp + 8]
cmp ebx, 6
ja 0x401dc0
mov eax, 1
nop word cs:[eax + eax]
nop dword [eax]
mov edx, eax
mov ecx, ebx
pause
inc eax
shr edx, cl
test edx, edx
je 0x401e00
jmp 0x401dc6
cmp edi, 0x1e
jne 0x401e54
cmp dword [esi + 0xc], 0
jne 0x401e54
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
xor ecx, ecx
mov edx, 0x1f4
movzx eax, byte [0x5b9430]
call fcn.0051b940
test eax, eax
je 0x40288a
push 0x1f4
push 0
mov dword [esi + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
test edx, edx
jne 0x401e9e
mov dword [esi + 0x10], eax
xor ecx, ecx
mov edx, 0x1f4
movzx eax, byte [0x5b9430]
call fcn.0051b940
test eax, eax
je 0x4028b0
push 0x1f4
push 0
push eax
mov dword [esi + 4], eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
lock cmpxchg dword [ecx + 0x44], edx
jne 0x401eeb
mov dword [ecx + 4], edx
mov eax, dword [esi + 0x10]
mov dword [esi + 4], edx
mov edx, dword [ebp + 8]
lea ecx, [eax + 2]
lock cmpxchg dword [edx + 0x40], ecx
je 0x4027df
mov dword [esi + 0x10], eax
cmp ebx, 6
mov ecx, 6
mov eax, 1
mov edi, dword [edx + 0x44]
cmovb ecx, ebx
nop dword [eax + eax]
mov edx, eax
pause
inc eax
shr edx, cl
test edx, edx
je 0x401ed0
mov eax, dword [esi + 0x10]
cmp ebx, 7
mov edx, edi
adc ebx, 0
jmp 0x401dd2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401f04
push eax
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x44]
mov eax, ecx
jmp 0x401dd2
mov dword [esi + 0x78], 0x3b9aca00
mov dword [esi + 0x48], 0x3b9aca00
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x88], 0x3b9aca00
mov dword [esi + 0xa0], 0
mov ebx, dword [edi + 0x40]
mov edx, dword [edi + 0x88]
test edx, ebx
je 0x402122
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 0x2c], eax
movsd qword [esi + 0x24], xmm0
mov eax, 1
jmp 0x402474
lea ebx, [edi + 8]
mov dword [esi + 0x78], 0x3b9aca00
mov dword [esi + 0xc0], 0x3b9aca00
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x88], 0x3b9aca00
mov dword [esi + 0xa0], 0
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x5b942c]
test eax, 0x7fffffff
jne 0x402641
mov dword [esi + 0xc], 0
mov dword [esi + 4], ebx
movzx eax, byte [edi + 0xc]
test al, al
jne 0x40265a
lea edx, [edi + 0x28]
lea ecx, [esi + 0x30]
mov byte [esi + 0x16], 1
mov dword [esi + 0xd8], 5
call section..text
cmp dword [esi + 0x30], 0
je 0x40241e
mov eax, dword [esi + 0x38]
movsd xmm0, qword [esi + 0x30]
cmp byte [esi + 0xc], 0
mov ecx, dword [esi + 4]
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x48], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xa0], eax
je 0x4024da
mov dword [esi + 0xd8], 0xa
push ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40287b
mov eax, dword [ebp + 0xc]
mov dword [ecx], 1
movsd xmm0, qword [eax]
movsd qword [ecx + 4], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x10], 1
mov dword [esi + 0x20], 2
mov eax, dword [esi + 0x40]
lock dec dword [eax]
jne 0x40246e
lea ecx, [esi + 0x40]
call fcn.0045e560
jmp 0x40246e
mov ebx, dword [ebp + 0xc]
xor edx, edx
xor edi, edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4020d2
push eax
push 0
push dword [0x5b93c8]
mov dword [esi + 4], edx
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esi + 4]
mov eax, dword [ebx + 8]
movsd xmm0, qword [ebx]
test edx, edx
mov dword [esi + 0x78], eax
movsd qword [esi + 0x70], xmm0
je 0x40249d
mov eax, dword [esi + 0x78]
shl edi, 4
mov ecx, dword [ebp + 8]
mov dword [edx + edi + 8], eax
sub ecx, 0xffffff80
movsd xmm0, qword [esi + 0x70]
movsd qword [edx + edi], xmm0
lock or dword [edx + edi + 0xc], 1
mov dword [esi + 0xd8], 0xffffffff
call fcn.00401a00
mov edx, dword [esi + 0x1c]
xor ecx, ecx
jmp 0x4024c4
mov dword [esi + 0x18], 0
mov dword [esi + 4], 0
jmp 0x402159
call dword [sym.imp.kernel32.dll_SwitchToThread]
cmp ebx, 0xb
setb cl
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x88]
movzx ecx, cl
add ebx, ecx
mov dword [esi + 4], ebx
mov ebx, eax
test edx, eax
jne 0x401f72
dec edx
mov eax, dword [edi + 0xd4]
xor ecx, ecx
and edx, ebx
sub ecx, dword [edi + 0x84]
mov edi, edx
shl edi, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov eax, dword [eax + edi]
cmp ebx, eax
jne 0x402190
mov eax, dword [ebp + 8]
inc edx
cmp edx, dword [eax + 0x80]
jae 0x4021f0
mov edx, ebx
lea ecx, [ebx + 1]
jmp 0x4021fa
mov edx, dword [ebp + 8]
lea ecx, [ebx + 1]
add eax, dword [edx + 0x84]
cmp eax, ecx
mov ecx, edx
jne 0x402240
mfence
mov edi, ebx
mov ebx, ecx
mov eax, dword [ecx]
add eax, dword [ecx + 0x84]
cmp eax, edi
je 0x402272
mov eax, dword [esi + 4]
mov ecx, 6
cmp eax, 6
cmovb ecx, eax
mov eax, 1
mov edx, eax
pause
inc eax
shr edx, cl
test edx, edx
je 0x4021d0
mov eax, dword [esi + 4]
mov edi, ebx
cmp eax, 7
mov ebx, eax
jmp 0x40213b
and ecx, ebx
mov edx, ebx
add ecx, dword [eax + 0x84]
mov edi, eax
mov eax, edx
mov ebx, dword [esi + 4]
lock cmpxchg dword [edi + 0x40], ecx
je 0x4025ed
cmp ebx, 6
mov ecx, 6
mov edx, 1
cmovb ecx, ebx
nop dword [eax]
mov edi, edx
pause
inc edx
shr edi, cl
test edi, edi
je 0x402220
mov edi, dword [ebp + 8]
cmp ebx, 7
setb cl
jmp 0x402141
mov ebx, dword [esi + 4]
mov edi, ecx
cmp ebx, 6
ja 0x402132
mov eax, 1
nop word cs:[eax + eax]
nop dword [eax]
mov edx, eax
mov ecx, ebx
pause
inc eax
shr edx, cl
test edx, edx
je 0x402260
jmp 0x402138
mov eax, dword [esi + 0x18]
cmp eax, 0xb
jne 0x402368
mov eax, dword [esi + 0x48]
mov dword [esi + 0xd8], 0xffffffff
cmp eax, 0x3b9aca00
je 0x4022cf
mov ecx, dword [esi + 0x44]
mov edi, dword [esi + 0x40]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ecx
call fcn.005117b0
mov dword [esi + 0x10], edi
cmp eax, edi
mov edi, dword [esi + 0xc]
mov ebx, edx
mov dword [esi + 0x18], ecx
sbb edx, edi
mov edx, dword [esi + 4]
jb 0x4022cf
xor eax, dword [esi + 0x10]
xor ebx, edi
mov ecx, edi
or ebx, eax
jne 0x40285f
cmp dword [esi + 0x18], edx
jae 0x40285f
call fcn.0045e450
test eax, eax
je 0x4023a7
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [eax], 0
test ecx, ecx
je 0x4023db
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], ecx
mov dword [ecx + 0x14], 0
mov dword [esi + 4], ecx
mov dword [ecx + 0x18], 0
lea edx, [esi + 0x70]
lea ecx, [esi + 0x40]
mov dword [esi + 0xd8], 1
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0x30]
call fcn.004066d0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov eax, dword [ecx]
test eax, eax
mov dword [esi + 0x20], eax
mov dword [ecx], edx
je 0x402348
lock dec dword [eax]
jne 0x402348
lea ecx, [esi + 0x20]
call fcn.0045e560
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x40]
mov edx, dword [edi + 0x88]
mov dword [esi + 0x18], 0
test edx, ebx
je 0x402129
jmp 0x401f72
mov edi, eax
cmp eax, 6
ja 0x402383
mov eax, 1
mov ecx, edi
mov edx, eax
pause
inc eax
shr edx, cl
test edx, edx
je 0x402376
jmp 0x40238b
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov ecx, edi
inc ecx
mov edi, ebx
mov dword [esi + 0x18], ecx
mov ebx, dword [ebx + 0x40]
mov edx, dword [edi + 0x88]
test edx, ebx
je 0x402129
jmp 0x401f72
call fcn.0053c180
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x70]
mov dword [esi + 4], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0xd8], 2
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0x30]
call fcn.004066d0
jmp 0x40240a
call fcn.0053c180
lea edx, [esi + 0x70]
lea ecx, [esi + 0x40]
mov dword [esi + 4], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0xd8], 0
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0x30]
call fcn.004066d0
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x402348
lea ecx, [esi + 0x30]
jmp 0x402343
mov edi, dword [ebp + 8]
mov ebx, dword [esi + 4]
cmp byte [edi + 0x40], 0
je 0x402510
mov ecx, dword [ebp + 0xc]
cmp byte [esi + 0xc], 0
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 0x2c], eax
movsd qword [esi + 0x24], xmm0
mov dword [esi + 0x20], 1
jne 0x40245d
mov eax, dword [0x5b942c]
test eax, 0x7fffffff
jne 0x40283f
mov dword [esi + 0xd8], 0xffffffff
push ebx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, 2
je 0x4024c4
test eax, eax
jne 0x4024af
mov dword [esi + 0xd8], 0xffffffff
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.37.0_src_runtime_blocking_schedule.rs
mov edx, 0x28
push 0x547a78
call fcn.0053bbd0
mov eax, dword [ebx + 8]
movsd xmm0, qword [ebx]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
movsd qword [esi + 0x24], xmm0
mov eax, dword [esi + 0x2c]
movsd xmm0, qword [esi + 0x24]
mov ecx, 1
mov dword [edx + 0xc], eax
movsd qword [edx + 4], xmm0
mov eax, dword [esi + 0xd0]
mov dword [edx], ecx
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x5b942c]
test eax, 0x7fffffff
je 0x402057
mov dword [esi + 0xd8], 0xa
call fcn.00545ea0
mov ecx, dword [esi + 4]
test al, al
jne 0x402057
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 1
jmp 0x402057
mov eax, dword [esi + 0xc]
mov dword [esi + 0xd8], 6
mov byte [esi + 0xb], al
call fcn.0045e450
mov ecx, eax
test eax, eax
mov eax, dword [esi + 0xc]
mov edx, eax
je 0x402728
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x402695
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x6c], eax
mov dword [eax + 0x14], 0
mov dword [esi + 0x10], eax
mov dword [eax + 0x18], 0
mov dword [esi + 0xd8], 8
lea edx, [esi + 0x40]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
lea ecx, [esi + 0x20]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x70]
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xc]
mov byte [esi + 0x5c], al
movzx eax, word [esi + 0x65]
mov word [esi + 0x5d], ax
movzx eax, byte [esi + 0x67]
mov byte [esi + 0x5f], al
lea eax, [esi + 0x6c]
push eax
call fcn.00405fb0
add esp, 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
mov eax, dword [ecx]
test eax, eax
mov dword [esi + 0x40], eax
mov dword [ecx], edx
je 0x4025d4
lock dec dword [eax]
jne 0x4025d4
lea ecx, [esi + 0x40]
call fcn.0045e560
movsd xmm0, qword [esi + 0x20]
movsd xmm1, qword [esi + 0x28]
movsd qword [esi + 0x30], xmm0
movsd qword [esi + 0x38], xmm1
jmp 0x402704
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc edx
mov ecx, dword [ecx + 8]
lea edi, [ebx + eax]
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edx
mov dword [ebx + eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
movsd xmm0, qword [ecx]
mov ecx, dword [ebp + 8]
add ecx, 0xb0
movsd qword [ebx + eax + 4], xmm0
mov dword [edi], edx
mov dword [esi + 0xd8], 0xffffffff
call fcn.00401a00
mov edx, dword [esi + 0x1c]
mov eax, 2
jmp 0x402474
call fcn.00545ea0
xor al, 1
mov dword [esi + 0xc], eax
mov dword [esi + 4], ebx
movzx eax, byte [edi + 0xc]
test al, al
je 0x40200e
mov eax, dword [esi + 4]
mov dword [esi + 0xd8], 4
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0xc]
mov byte [esi + 0x44], al
lea eax, [esi + 0x40]
push 0x547cec
push 0x547f3c
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x40290a
mov eax, dword [esi + 0xc]
mov byte [esi + 0xb], al
call fcn.0053c180
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov dword [esi + 0xd8], 9
mov dword [esi + 0x10], edx
mov dword [esi + 0x20], edx
lea edx, [esi + 0x40]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
lea ecx, [esi + 0x30]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x70]
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xc]
mov byte [esi + 0x5c], al
lea eax, [esi + 0x20]
push eax
call fcn.00405fb0
add esp, 4
mov eax, dword [esi + 0x10]
lock dec dword [eax]
jne 0x402704
lea ecx, [esi + 0x20]
call fcn.0045e560
mov eax, dword [esi + 0x30]
movsd xmm0, qword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
mov dl, 2
cmp eax, 3
movsd qword [esi + 0xa8], xmm0
mov dword [esi + 0xb0], ecx
jne 0x4027c1
mov byte [esi + 0x10], dl
mov byte [esi + 0xb], dl
mov dword [esi + 0xd8], 6
call fcn.0053c180
movzx edx, byte [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], eax
cmp dl, 2
je 0x4028d5
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 0xd8], 7
lea ecx, [esi + 0x20]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x70]
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xb8]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
movzx eax, word [esi + 0x65]
mov byte [esi + 0x5c], dl
lea edx, [esi + 0x40]
mov word [esi + 0x5d], ax
movzx eax, byte [esi + 0x67]
mov byte [esi + 0x5f], al
lea eax, [esi + 0x30]
push eax
call fcn.00405fb0
add esp, 4
mov eax, dword [esi + 0x18]
lock dec dword [eax]
jne 0x40246e
lea ecx, [esi + 0x30]
call fcn.0045e560
jmp 0x40246e
mov ecx, dword [esi + 0xb0]
movsd xmm0, qword [esi + 0xa8]
mov dword [esi + 0x2c], ecx
movsd qword [esi + 0x24], xmm0
mov dword [esi + 0x20], eax
jmp 0x40246e
cmp edi, 0x1e
jne 0x402829
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
test edi, edi
je 0x4028eb
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edi
lock add dword [eax + 0x40], 2
mov dword [edx + 0x1f0], edi
mov dword [esi + 0xd8], 0xffffffff
mov edi, 0x1e
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 0x78], eax
movsd qword [esi + 0x70], xmm0
jmp 0x4020e9
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4020bd
jmp 0x4020d2
mov dword [esi + 0xd8], 0xffffffff
call fcn.00545ea0
test al, al
jne 0x40245d
mov byte [edi + 0xc], 1
jmp 0x40245d
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esi + 0x2c], eax
movsd qword [esi + 0x24], xmm0
xor eax, eax
jmp 0x402474
mov ecx, 0x547cfc
call fcn.0053bf10
jmp 0x40290a
mov ecx, 4
mov edx, 0x1f4
mov dword [esi + 0x68], 0
mov byte [esi + 0x17], 0
mov dword [esi + 0xd8], 3
call fcn.0053b730
jmp 0x40290a
mov eax, dword [esi + 0xc]
mov ecx, 4
mov edx, 0x1f4
mov byte [esi + 0x17], 0
mov dword [esi + 0xd8], 3
mov dword [esi + 0x68], eax
call fcn.0053b730
jmp 0x40290a
mov ecx, 0x547b1c
mov dword [esi + 0xd8], 7
call fcn.0053bf10
jmp 0x40290a
mov ecx, 0x547ba4
mov dword [esi + 0x68], 0
mov byte [esi + 0x17], 1
mov dword [esi + 0xd8], 3
call fcn.0053bf10
ud2