Function at 0x447600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x437c60
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x24], ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x447645
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, 2
jmp 0x44765f
mov ecx, dword [ebp - 0x24]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x44792a
mov esi, eax
test eax, eax
je 0x447650
cmp esi, 1
jne 0x447680
cmp byte [ebp - 0x50], 0
jne 0x447650
jmp 0x447a4e
cmp esi, 3
je 0x447961
mov eax, esi
and eax, 3
cmp eax, 2
je 0x4476aa
jmp 0x447a85
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x447640
mov eax, dword [0x45e04c]
test eax, eax
je 0x4477ec
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4476e0
cmp dword [eax + 4], 0
mov edi, eax
je 0x4476e0
add edi, 8
jmp 0x447780
mov eax, dword [0x45e04c]
test eax, eax
je 0x447802
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x447710
mov ebx, eax
cmp eax, 1
jne 0x447753
jmp 0x4479e6
movzx eax, byte [0x45eaa8]
mov ecx, 0xc
mov edx, 4
call fcn.00437a70
test eax, eax
je 0x4479ce
mov dword [eax], 0x45e04c
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0x45e04c]
test eax, eax
je 0x447818
dec eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebx + 8]
cmp dword [ebx + 4], 0
lea edi, [ebx + 8]
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
je 0x447780
test ecx, ecx
je 0x447780
lock dec dword [ecx]
jne 0x447780
call fcn.0041dc50
nop dword [eax + eax]
mov eax, dword [edi]
test eax, eax
jne 0x44779f
xor ecx, ecx
mov dword [ebp - 0x10], 0xffffffff
call fcn.0041d5d0
cmp dword [edi], 0
jne 0x447992
mov dword [edi], eax
lock inc dword [eax]
jle 0x447972
mov ecx, esi
mov dword [ebp - 0x48], eax
mov eax, esi
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x46]
add ecx, 0xfffffffe
mov dword [ebp - 0x44], ecx
lock cmpxchg dword [esi], edx
je 0x4478fd
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4476a0
lock dec dword [eax]
jne 0x4476a0
mov ecx, dword [ebp - 0x48]
call fcn.0041dc50
jmp 0x4476a0
mov ecx, 0x45e04c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00447b20
jmp 0x4476b8
mov ecx, 0x45e04c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00447b20
jmp 0x4476ee
mov ecx, 0x45e04c
mov dword [ebp - 0x10], 0xffffffff
call fcn.00447b20
jmp 0x44774b
mov dword [ebp - 0x10], 2
call fcn.0041dc90
test eax, eax
je 0x447976
mov dword [ebp - 0x20], eax
mov ebx, 0
lock dec byte [eax + 0x18]
je 0x4478f0
mov edi, dword [ebp - 0x20]
mov esi, dword [0x45ea60]
add edi, 0x18
test esi, esi
je 0x447886
nop word cs:[eax + eax]
push 0xffffffffffffffff
push 1
push 0x4546d0
push edi
call esi
mov al, 1
lock cmpxchg byte [edi], bl
jne 0x447870
jmp 0x4478f0
mov ecx, dword [0x45e024]
cmp ecx, 0xffffffff
jne 0x4478d1
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [0x45e030]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x4c]
push ecx
call eax
test eax, eax
jne 0x447a06
mov ecx, dword [ebp - 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x45e024], ecx
je 0x4478d1
mov esi, eax
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, esi
mov eax, dword [0x45e038]
push 0
push 0
push edi
push ecx
call eax
xor eax, eax
xchg byte [edi], al
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [ebp - 0x20]
lock dec dword [ecx]
jne 0x4478fd
call fcn.0041dc50
movzx eax, byte [ebp - 0x40]
test al, al
je 0x447830
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x447640
lock dec dword [eax]
jne 0x447640
mov ecx, dword [ebp - 0x48]
call fcn.0041dc50
jmp 0x447640
lea eax, [ebp - 0x3c]
cmp esi, 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x38]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0xffffffff
call fcn.0041da90
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x452d50
call fcn.00447390
add esp, 4
jmp 0x447a4c
lea ecx, [ebp - 0x3c]
mov edx, 0x452260
mov dword [ebp - 0x3c], 0x452208
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x454ea4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 1
call fcn.00446f30
jmp 0x447a4c
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.00446e10
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x452d50
call fcn.00447390
add esp, 4
ud2
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0x4546fc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
mov edx, 0x454734
mov dword [ebp - 0x58], fcn.00411b10
mov dword [ebp - 0x30], 1
call fcn.00446f30
ud2
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4549a4
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0x454ea4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.00446f30
ud2
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
push dword [ebp + 0x10]
call fcn.004470b0
add esp, 4
ud2