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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov esi, esp
mov dword [esi + 0x90], ebp
mov dword [esi + 0x94], esp
mov dword [esi + 0xa0], 0xffffffff
mov dword [esi + 0x9c], 0x5399f0
mov dword [esi + 0x64], edx
lea edx, [esi + 0x98]
mov edi, dword [ebp + 8]
mov eax, dword fs:[0]
mov dword [esi + 0x98], eax
mov dword fs:[0], edx
lock inc dword [0x5b942c]
jle 0x51df75
mov ebx, ecx
call fcn.00510ac0
test eax, eax
jne 0x51da75
lea eax, [esi + 0x14]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
push eax
call fcn.0053be90
cmp byte [eax + 4], 0
jne 0x51dffc
inc dword [eax]
mov byte [eax + 4], 1
mov dword [esi + 0x2c], str.Index_out_of_bounds
mov dword [esi + 0x30], 0x5a4a0c
mov dword [esi + 0x34], edi
mov edi, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x10]
movzx ecx, byte [ebp + 0x14]
mov dword [esi + 0x38], edi
mov byte [esi + 0x3c], dl
mov byte [esi + 0x3d], cl
push 0x5b93a8
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
movzx eax, byte [0x5b93ac]
mov eax, dword [esi + 0x64]
cmp dword [0x5b93b0], 0
mov dword [esi + 0x68], ebx
mov eax, dword [eax + 0x10]
jne 0x51dc29
mov byte [esi + 6], 1
mov dword [esi + 0xa0], 0
push ebx
call eax
add esp, 4
cmp byte [ebp + 0x14], 0
mov edi, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x10], eax
mov dword [esi + 8], edx
je 0x51dcac
mov byte [esi + 0xe], 3
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x80]
mov dword [esi + 0x6c], eax
mov eax, dword [edx + 0xc]
mov byte [esi + 6], 1
push edi
push ecx
call eax
mov ebx, dword [esi + 0x10]
add esp, 8
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
mov edi, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
xor edi, 0xcd1e7bc1
xor ecx, 0xb1ef64
xor edx, 0xc1a2c89c
xor eax, 0xfdbc1681
or ecx, edi
or eax, edx
or eax, ecx
jne 0x51dcec
mov eax, ebx
add eax, 4
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov byte [esi + 6], 1
call fcn.0050f0c0
mov edi, 9
mov ecx, 0x5a48c8
test eax, eax
mov dword [esi + 0x10], eax
je 0x51db93
mov edx, dword [eax + 0x10]
test edx, edx
je 0x51db93
mov eax, dword [esi + 0x10]
mov ecx, edx
mov edi, dword [eax + 0x14]
dec edi
lea eax, [esi + 0x1c]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x44], eax
lea eax, [esi + 0x6c]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xe]
mov dword [esi + 0x50], eax
movzx eax, byte [0x5b936c]
test al, al
jne 0x51dde5
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0xf], 0
mov dword [esi + 0xa0], 1
lea ecx, [esi + 0x44]
lea edx, [esi + 0x14]
push 0x5a48fc
call fcn.0051ce10
add esp, 4
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51dc08
lock dec dword [ecx]
jne 0x51dc08
call fcn.0050eef0
test edi, edi
sete al
or bl, al
jne 0x51dc5d
lock dec dword [edi]
jne 0x51dc5d
mov ecx, edi
call fcn.004148e0
mov dword [esi + 0xa0], 0
jmp 0x51dc5d
mov byte [esi + 6], 1
mov dword [esi + 0xa0], 0
push ebx
call eax
add esp, 4
mov dword [esi + 0x2c], eax
mov eax, dword [0x5b93b0]
mov ecx, dword [0x5b93b4]
mov dword [esi + 0x30], edx
lea edx, [esi + 0x2c]
mov byte [esi + 6], 1
push edx
push eax
call dword [ecx + 0x14]
add esp, 8
push 0x5b93a8
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov byte [esi + 6], 0
mov dword [esi + 0xa0], 0
call fcn.00510ac0
test eax, eax
jne 0x51dd41
mov byte [esi + 6], 0
lea eax, [esi + 0x14]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x51df26
mov byte [esi + 6], 1
call fcn.00510ac0
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x10]
test eax, eax
jne 0x51dd62
mov byte [esi + 6], 1
lea eax, [esi + 0x14]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x51df26
mov eax, dword [esi + 8]
lea ecx, [esi + 0x70]
mov eax, dword [eax + 0xc]
mov byte [esi + 6], 1
push ebx
push ecx
call eax
mov ebx, dword [esi + 0x10]
add esp, 8
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
mov edi, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
xor edi, 0xb5132e5a
xor ecx, 0xc066cf72
xor edx, 0xcceb16c1
xor eax, 0x368e35df
or ecx, edi
or eax, edx
or eax, ecx
jne 0x51de24
lea ecx, [ebx + 4]
add ebx, 8
mov eax, ebx
mov ebx, ecx
jmp 0x51db5f
cmp byte [ebp + 0x10], 0
mov byte [eax + 4], 0
je 0x51dd70
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov byte [esi + 6], 0
mov edx, dword [eax + 0xc]
call fcn.0051b260
jmp 0x51df26
cmp dword [eax], 1
jbe 0x51ddce
mov byte [esi + 0xe], 1
jmp 0x51db02
lea eax, [esi + 0x44]
mov dword [esi + 0x24], 0
mov dword [esi + 0x44], 0x5a4acc
mov dword [esi + 0x48], 1
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], str.Index_out_of_bounds
mov byte [esi + 0x28], 0
mov dword [esi + 0x50], 0
mov byte [esi + 6], 0
lea ecx, [esi + 0x24]
lea edx, [esi + 0x1c]
push eax
push ecx
push edx
call fcn.0050ea30
add esp, 0xc
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov byte [esi + 6], 0
call fcn.0050dfd0
mov ecx, 7
int 0x29
ud2
mov byte [esi + 6], 1
call fcn.0051b2b0
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x10]
mov byte [esi + 0xe], al
jmp 0x51db02
mov byte [0x5b936c], 1
mov dword [esi + 0xa0], 5
call fcn.00519d30
test eax, eax
jne 0x51de42
lea eax, [esi + 0x14]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x51df26
mov eax, 0xc
mov ecx, 0x5a48bc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov byte [esi + 6], 1
call fcn.0050f0c0
jmp 0x51db72
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
je 0x51dbc0
lea eax, [edi + 8]
mov dword [esi + 0x60], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x5b942c]
mov dword [esi + 8], edi
test eax, 0x7fffffff
jne 0x51de77
mov dword [esi + 0x40], 0
jmp 0x51de92
mov byte [esi + 7], 1
mov dword [esi + 0xa0], 2
call fcn.00545ea0
mov edi, dword [esi + 8]
xor al, 1
mov dword [esi + 0x40], eax
movzx eax, byte [edi + 0xc]
lea edx, [edi + 0x10]
mov dword [esi + 0xa0], 4
lea ecx, [esi + 0x44]
push 0x5a48d4
call fcn.0051ce10
add esp, 4
cmp byte [esi + 0x40], 0
jne 0x51dec5
mov eax, dword [0x5b942c]
test eax, 0x7fffffff
jne 0x51df28
push dword [esi + 0x60]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov byte [0x5b936c], 1
mov dword [esi + 0xa0], 3
call fcn.00519d30
test eax, eax
jne 0x51df4b
mov eax, dword [esi + 8]
lock dec dword [eax]
jne 0x51def8
mov ecx, dword [esi + 8]
call fcn.004148e0
mov byte [esi + 7], 0
mov dword [esi + 0xa0], 2
lea eax, [esi + 0x14]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a4244
push 0x5a37ac
push eax
call fcn.0053be90
add esp, 0xc
ud2
mov byte [esi + 7], 1
mov dword [esi + 0xa0], 2
call fcn.00545ea0
test al, al
jne 0x51dec5
mov eax, dword [esi + 8]
mov byte [eax + 0xc], 1
jmp 0x51dec5
mov ecx, dword [eax]
mov edx, dword [esi + 8]
mov bl, 1
test ecx, ecx
mov dword [eax], edx
je 0x51df62
lock dec dword [ecx]
jne 0x51df62
call fcn.004148e0
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x51dbfe
jmp 0x51dc08
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], str.Index_out_of_bounds
mov dword [esi + 0x30], 0x5a4a0c
mov dword [esi + 0x34], edi
mov dword [esi + 0x44], 0x5a4a50
mov dword [esi + 0x48], 2
mov dword [esi + 0x54], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 0x24]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x38], eax
movzx eax, byte [ebp + 0x10]
mov byte [esi + 0x3c], al
movzx eax, byte [ebp + 0x14]
mov byte [esi + 0x3d], al
lea eax, [esi + 0x2c]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x20], 0x456b00
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x50], 1
push eax
push ecx
push edx
call fcn.0050ea30
add esp, 0xc
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
call fcn.0050dfd0
mov ecx, 7
int 0x29
ud2
lea eax, [esi + 0x44]
lea ecx, [esi + 0x1c]
lea edx, [esi + 0x2c]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x44], 0x5a4a94
mov dword [esi + 0x48], 1
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], str.Index_out_of_bounds
mov byte [esi + 0x20], 0
mov dword [esi + 0x50], 0
push eax
push ecx
push edx
call fcn.0050ea30
add esp, 0xc
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
call fcn.0050dfd0
mov ecx, 7
int 0x29
ud2