Function at 0x446500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x655090]
cmp ecx, dword [eax + 4]
jg 0x4466a6
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x4466f5
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x4466f5
cmp dword [eax + ecx*8], 0
je 0x4466f5
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x4465a3
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x4465a3
mov edi, dword [eax + ecx*8]
lea edx, [edi + 4]
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [ebp - 0x30], edi
je 0x446686
mov edi, esi
mov esi, edx
mov eax, edx
xor edx, edx
cmp dword [ecx + 0x10], ebx
setb dl
cmovae eax, ecx
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x4465ba
mov edx, esi
cmp eax, esi
mov esi, edi
je 0x446686
cmp dword [eax + 0x10], ebx
ja 0x446686
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x446905
mov edi, esi
mov dword [ebp - 0x14], 0
mov esi, dword [ecx]
test esi, esi
je 0x4468f9
xor eax, eax
inc eax
lock xadd dword [esi], eax
test eax, eax
jle 0x4468fc
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ebx
cmp eax, 0x7fffffff
je 0x4468ff
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
call dword [0x63e1cc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push edi
push esi
call ecx
add esp, 0x14
mov ebx, eax
lock dec dword [esi]
je 0x44691e
test bl, bl
mov ebx, dword [ebp - 0x18]
jne 0x446661
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push edi
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x14], eax
cmp edi, 2
mov esi, dword [ebp - 0x20]
je 0x44677a
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
cmp esi, 1
je 0x446847
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.USER32.dll_DefWindowProcW]
push 0x655090
call fcn.00562c08
add esp, 4
cmp dword [0x655090], 0xffffffff
jne 0x446546
mov dword [0x65508c], 0
mov dword [0x655088], 0xffffffff
mov ecx, 0x655088
push 0x444f70
call fcn.00423ff0
push 0x655090
call fcn.00562c57
add esp, 4
jmp 0x446546
mov dword [ebp - 0x28], esi
push 0xc
call fcn.00562bc5
add esp, 4
mov esi, eax
add eax, 4
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], eax
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x446737
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x446737
mov edi, dword [eax + ecx*8]
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
jne 0x446751
test esi, esi
je 0x44676a
call fcn.00412e70
mov ecx, dword [0x655088]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x65508c]
mov edx, dword [0x655088]
mov dword [eax + edx*8 + 4], ecx
test edi, edi
mov esi, dword [ebp - 0x28]
je 0x44657b
jmp 0x44692f
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov eax, dword [esi]
test eax, eax
mov edi, dword [ebp - 0x30]
je 0x446902
mov ecx, eax
xor edx, edx
cmp dword [ecx + 0x10], ebx
setb dl
cmovae esi, ecx
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x446793
cmp esi, dword [ebp - 0x20]
je 0x446902
cmp dword [esi + 0x10], ebx
ja 0x446902
mov edx, dword [esi + 4]
test edx, edx
jne 0x446817
mov edx, esi
mov ecx, dword [edx + 8]
cmp dword [ecx], edx
mov edx, ecx
jne 0x4467c0
lea ebx, [esi + 0x10]
cmp dword [edi], esi
jne 0x4467d2
mov dword [edi], ecx
dec dword [edi + 8]
push esi
push eax
call fcn.0050aa70
add esp, 8
test ebx, ebx
je 0x446908
mov eax, dword [esi + 0x14]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c810]
bt edx, ecx
jae 0x446809
push eax
call fcn.004ff570
add esp, 4
push esi
call fcn.00562bc0
add esp, 4
jmp 0x44666d
mov ecx, edx
mov edx, dword [edx]
test edx, edx
je 0x4467c9
jmp 0x446817
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp dword [ebx + 0x10], eax
mov dword [ebp - 0x24], ebx
ja 0x446843
jae 0x44692c
mov eax, dword [ebx + 4]
test eax, eax
jne 0x446821
mov eax, dword [ebp - 0x24]
lea ebx, [eax + 4]
jmp 0x44685d
mov eax, dword [ebx]
jmp 0x446859
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ecx + 4], ebx
mov eax, dword [edx]
mov ebx, edx
mov dword [ebp - 0x24], edx
test eax, eax
jne 0x446821
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], esi
push 0x18
call fcn.00562bc5
add esp, 4
mov esi, eax
add eax, 0x10
je 0x44690f
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edi, dword [ebp - 0x1c]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c810]
bt ecx, eax
jae 0x4468eb
push edi
call fcn.004ff440
add esp, 4
mov dword [esi + 0x14], edi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov dword [ebx], esi
mov edi, dword [ebp - 0x30]
mov eax, dword [edi]
mov eax, dword [eax]
test eax, eax
je 0x4468c3
mov dword [edi], eax
mov esi, dword [ebx]
push esi
push dword [edi + 4]
call fcn.005448e0
add esp, 8
inc dword [edi + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
jne 0x4465ec
jmp 0x44668f
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x654810], 1
jmp 0x4468a2
int3
int3
int3
int3
int3
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x446914
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x622e92
call fcn.0058fdd0
push esi
call fcn.004f2890
add esp, 4
jmp 0x446649
int3
mov ecx, dword [edi + 4]
call fcn.00444f90
push edi
call fcn.00562bc0
add esp, 4
jmp 0x44657b