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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
mov edi, edx
mov ebx, ecx
test eax, eax
jne 0x535ac5
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x535e37
mov dword [0x5c6108], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x535e37
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 0x14], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x19], 0
mov dword [eax + 0x15], 0
mov esi, eax
movzx eax, word [esp + 0x18]
mov word [esi + 0x1d], ax
movzx eax, byte [esp + 0x1a]
mov byte [esi + 0x1f], al
lock inc dword [esi]
jle 0x535cc7
mov dword [esp + 0xc], edi
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
mov dword [esp + 4], esi
test eax, eax
jne 0x535b54
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x535e48
mov dword [0x5c6108], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x535e48
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov edi, eax
xor esi, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc0], edi
cmp eax, 0x3b9aca00
cmove eax, esi
cmovne esi, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, 0xa
cmovne eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
call dbg.__getit
test eax, eax
je 0x535e78
movdqu xmm0, xmmword [eax]
movsd xmm3, qword [0x5a4070]
movsd xmm4, qword [0x5a4078]
movd edx, xmm0
pshufd xmm1, xmm0, 0x55
add edx, 1
movd ecx, xmm1
adc ecx, 0
mov dword [eax], edx
mov dword [eax + 4], ecx
movsd qword [esp + 0xdf], xmm4
movsd xmm1, qword [esp + 0x18]
movsd xmm2, qword [esp + 0x20]
movsd qword [esp + 0x37], xmm4
movsd qword [esp + 0x2f], xmm3
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
movsd qword [esp + 0x27], xmm2
movsd qword [esp + 0x1f], xmm1
movsd qword [esp + 0xf0], xmm2
movsd qword [esp + 0xe8], xmm1
movsd qword [esp + 0xf8], xmm3
movsd qword [esp + 0x100], xmm4
movsd xmm2, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
movsd xmm3, qword [esp + 0x20]
movsd qword [esp + 0xd0], xmm2
movsd xmm2, qword [esp + 0x18]
movsd qword [esp + 0xd8], xmm1
movsd qword [esp + 0xc8], xmm3
movsd qword [esp + 0xc0], xmm2
lock inc dword [ecx]
jle 0x535cc7
mov eax, dword [ebx + 0x28]
movsd xmm1, qword [ebx + 8]
mov dword [esp + 0x10], edx
test eax, eax
je 0x535ccb
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0xbc], edx
lock inc dword [eax]
jle 0x535cc7
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x535cd2
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0xb8], ebx
lock inc dword [edx]
jg 0x535cd2
ud2
mov edx, dword [ebx + 0x30]
test edx, edx
jne 0x535cb8
movsd xmm2, qword [esp + 0xdf]
movsd xmm3, qword [esp + 0xd0]
movsd xmm4, qword [esp + 0xd8]
mov ebx, dword [esp + 0x14]
movsd qword [esp + 0x60], xmm2
movsd qword [esp + 0x59], xmm4
movsd qword [esp + 0x51], xmm3
movsd xmm4, qword [esp + 0xc0]
movsd xmm3, qword [esp + 0xc8]
movsd qword [esp + 0x49], xmm3
movsd qword [esp + 0x41], xmm4
mov dword [esp + 0x88], 0
movlps qword [esp + 0x20], xmm1
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov byte [esp + 0x40], 0
movdqu xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edi
mov dword [esp + 0x94], 0
mov byte [esp + 0x98], 0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 1
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
je 0x535df3
mov esi, dword [esp + 4]
jmp 0x535e05
call sub.KERNEL32.dll_GetProcessHeap
mov esi, dword [esp + 4]
test eax, eax
je 0x535e59
mov dword [0x5c6108], eax
push 0xa0
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x535e59
mov edi, eax
lea eax, [esp + 0x18]
push 0xa0
push eax
push edi
call sym._memcpy
add esp, 0xc
mov eax, edi
mov edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 0x20
call dbg.handle_alloc_error
ud2
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
jmp 0x535e9c
lea esi, [esp + 0x88]
lea edi, [esp + 0x84]
mov ecx, 8
mov edx, 0xa0
call dbg.handle_alloc_error
jmp 0x535e9c
lea eax, [esp + 0xe8]
mov edx, 0x46
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
push 0x5a5754
push 0x5a3fac
push eax
call dbg.unwrap_failed
add esp, 0xc
ud2