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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x577a40
mov ebx, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov eax, dword fs:[0]
mov dword [esi + 0x80], eax
lea eax, [esi + 0x80]
mov dword fs:[0], eax
mov dword [esi + 0x50], edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x54], ebx
movaps xmmword [esi + 0x60], xmm0
mov dword [esi + 0x70], 0
mov dword [esi + 0x58], edx
push ecx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x5fd2e8]
test eax, 0x7fffffff
jne 0x409d40
xor eax, eax
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 4]
test al, al
jne 0x409d56
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], edi
test eax, eax
je 0x409e9e
mov dword [esi + 0xc], eax
mov byte [esi + 0xa], 1
mov dword [esi + 0x88], 1
call fcn.0056a620
test eax, eax
mov dword [esi + 0x34], eax
je 0x40a0f7
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], 0
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0xc]
shl eax, 2
lea ebx, [eax + eax*2]
jmp 0x409cef
inc dword [esi + 0x18]
add edx, 0xc
add ebx, 0xfffffff4
je 0x409e9e
mov ecx, dword [edx]
mov eax, dword [esi + 0x34]
cmp dword [ecx + 0x14], eax
je 0x409ce0
mov eax, dword [edx + 4]
mov dword [esi + 0xc], eax
xor eax, eax
mov edi, dword [esi + 0xc]
lock cmpxchg dword [ecx + 0xc], edi
jne 0x409ce0
mov eax, dword [edx + 8]
test eax, eax
je 0x409d15
mov dword [ecx + 0x10], eax
mov ebx, dword [ecx + 8]
mov al, 1
xchg byte [ebx + 0x18], al
mov edx, dword [esi + 0x10]
cmp al, 0xff
jne 0x409deb
mov eax, dword [0x5fd2ac]
add ebx, 0x18
test eax, eax
je 0x409d8e
push ebx
mov ebx, edx
call eax
mov edx, ebx
jmp 0x409deb
call fcn.00587ba0
xor al, 1
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 4]
test al, al
je 0x409c8a
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x88], 0
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
mov byte [esi + 0x20], al
lea eax, [esi + 0x1c]
push 0x58a064
push 0x58a3cc
push eax
call fcn.0057fa90
add esp, 0xc
jmp 0x40a1ae
mov ecx, dword [0x5fd070]
cmp ecx, 0xffffffff
jne 0x409ddb
mov dword [esi + 0x44], 0xffffffff
lea ecx, [esi + 0x44]
mov eax, dword [0x5fd078]
push 0
push 0
push 0xc0000000
push ecx
call eax
test eax, eax
jne 0x40a161
mov ecx, dword [esi + 0x44]
mov eax, 0xffffffff
lock cmpxchg dword [0x5fd070], ecx
je 0x409ddb
push ecx
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esi + 0xc]
mov eax, dword [0x5fd07c]
push 0
push 0
push ebx
push ecx
call eax
mov edx, dword [esi + 0x10]
mov ebx, dword [edx + 0x10]
mov ecx, dword [esi + 0x18]
cmp ebx, ecx
jbe 0x40a120
mov edi, dword [edx + 0xc]
lea edx, [ecx + ecx*2]
not ecx
add ecx, ebx
shl ecx, 2
lea eax, [edi + edx*4]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + edx*4]
mov dword [esi + 0x34], eax
mov eax, dword [edi + edx*4 + 4]
mov dword [esi + 0x48], eax
mov eax, dword [edi + edx*4 + 8]
lea edi, [edi + edx*4 + 0xc]
lea edx, [ecx + ecx*2]
mov dword [esi + 0xc], eax
push edx
push edi
push dword [esi + 0x4c]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esi + 0x34]
add esp, 0xc
mov ecx, dword [esi + 0x10]
dec ebx
test eax, eax
mov dword [ecx + 0x10], ebx
je 0x409e9e
mov ecx, dword [esi + 0xc]
cmp byte [esi + 0x14], 0
mov edx, dword [esi + 0x48]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x70], ecx
je 0x40a022
mov dword [esi + 0x88], 6
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40a055
cmp byte [ecx], 0
je 0x40a070
cmp byte [ecx + 2], 0
mov byte [ecx + 2], 0
je 0x40a13f
mov bl, 2
mov byte [ecx + 1], 1
jmp 0x40a057
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x38], 0
je 0x409ef0
cmp byte [esi + 0x14], 0
jne 0x409ec7
mov eax, dword [0x5fd2e8]
mov dword [esi + 0x88], 0xffffffff
test eax, 0x7fffffff
jne 0x40a0a7
mov dword [esi + 0x88], 0xffffffff
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov bl, 1
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esi + 0x88], 2
mov byte [esi + 0xb], al
call fcn.0056dbb0
test eax, eax
je 0x409f88
mov edx, dword [eax]
mov ecx, dword [esi + 0x14]
mov dword [eax], 0
test edx, edx
je 0x409fca
mov dword [esi + 0x18], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x38], edx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [esi + 0x88], 4
mov dword [esi + 0xc], edx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
movzx eax, word [esi + 0x40]
mov byte [esi + 0x2c], cl
lea ecx, [esi + 0x1c]
mov word [esi + 0x2d], ax
movzx eax, byte [esi + 0x42]
mov byte [esi + 0x2f], al
call fcn.0040a2f0
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov edx, dword [esi + 0xc]
mov eax, dword [ecx]
test eax, eax
mov dword [esi + 0x1c], eax
mov dword [ecx], edx
jne 0x40a05a
jmp 0x409eda
mov eax, dword [esi + 0x14]
mov byte [esi + 0xb], al
call fcn.00587da0
lea ecx, [esi + 0x60]
mov edx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x88], 3
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x50]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x14]
mov byte [esi + 0x2c], cl
lea ecx, [esi + 0x1c]
call fcn.0040a2f0
jmp 0x40a007
mov byte [esi + 0xb], cl
call fcn.00587da0
lea ecx, [esi + 0x60]
mov edx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x88], 5
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x50]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x14]
mov byte [esi + 0x2c], cl
lea ecx, [esi + 0x1c]
call fcn.0040a2f0
mov ecx, dword [esi + 0xc]
mov ebx, eax
lock dec dword [ecx]
jne 0x409eda
lea ecx, [esi + 0x38]
call fcn.00417e90
jmp 0x409eda
mov eax, dword [0x5fd2e8]
mov dword [esi + 0x88], 6
test eax, 0x7fffffff
je 0x409e5e
call fcn.00587ba0
test al, al
jne 0x409e5e
mov eax, dword [esi + 0x10]
mov byte [eax + 4], 1
jmp 0x409e5e
mov bl, 1
mov eax, dword [esi + 0x34]
lock dec dword [eax]
jne 0x409eda
lea ecx, [esi + 0x1c]
call fcn.00417e90
jmp 0x409eda
movzx eax, byte [ecx + 1]
test al, al
je 0x40a0bd
cmp byte [ecx + 2], 0
mov byte [ecx + 2], 0
je 0x40a14b
push dword [esi + 0x70]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x1c]
mov bl, 2
lock dec dword [eax]
jne 0x409eda
jmp 0x40a063
call fcn.00587ba0
test al, al
jne 0x409ec7
mov byte [edi + 4], 1
jmp 0x409ec7
mov edi, 1
xor edx, edx
xor ebx, ebx
jmp 0x40a0e5
mov dword [esi + 0x18], edx
call dword [sym.imp.kernel32.dll_SwitchToThread]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx + 1]
add edx, edi
inc ebx
add edi, 2
test al, al
jne 0x40a078
cmp ebx, 7
jae 0x40a0c8
test ebx, ebx
je 0x40a0d7
mov eax, edx
pause
dec eax
jne 0x40a0f0
jmp 0x40a0d7
mov byte [esi + 0xa], 1
lea eax, [esi + 0x1c]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_aedd173a2c086e558c2b66d3743b344f977621a7library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5ec568
push 0x58a34c
push eax
call fcn.0057fa90
add esp, 0xc
jmp 0x40a1ae
mov byte [esi + 0xa], 1
mov dword [esi + 0x88], 1
mov edx, ebx
push 0x58a24c
call fcn.0057f330
add esp, 4
jmp 0x40a1ae
mov ecx, 0x58a054
call fcn.0057fb10
jmp 0x40a1ae
mov ecx, 0x58a044
mov dword [esi + 0x88], 6
call fcn.0057fb10
jmp 0x40a1ae
lea edx, [esi + 0x40]
lea ecx, [esi + 0x38]
mov dword [esi + 0x1c], 0x5eb6f8
mov dword [esi + 0x20], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], eax
mov byte [esi + 0xa], 1
mov dword [esi + 0x88], 1
mov dword [esi + 0x38], edx
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x1c]
mov edx, 0x5eb734
mov dword [esi + 0x3c], 0x4b72a0
mov dword [esi + 0x28], 1
call fcn.0057f680
ud2