Function at 0x446d00
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 0x446ea6
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x446ef5
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x446ef5
cmp dword [eax + ecx*8], 0
je 0x446ef5
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
and eax, 0xfffffffc
je 0x446da3
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x446da3
mov edi, dword [eax + ecx*8]
lea edx, [edi + 4]
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [ebp - 0x30], edi
je 0x446e86
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 0x446dba
mov edx, esi
cmp eax, esi
mov esi, edi
je 0x446e86
cmp dword [eax + 0x10], ebx
ja 0x446e86
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x447105
mov edi, esi
mov dword [ebp - 0x14], 0
mov esi, dword [ecx]
test esi, esi
je 0x4470f9
xor eax, eax
inc eax
lock xadd dword [esi], eax
test eax, eax
jle 0x4470fc
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ebx
cmp eax, 0x7fffffff
je 0x4470ff
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
call dword [0x63e19c]
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 0x44711e
test bl, bl
mov ebx, dword [ebp - 0x18]
jne 0x446e61
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 0x446f7a
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00566245
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
cmp esi, 1
je 0x447047
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00566245
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.USER32.dll_DefWindowProcW]
push 0x655090
call fcn.00562fa8
add esp, 4
cmp dword [0x655090], 0xffffffff
jne 0x446d46
mov dword [0x65508c], 0
mov dword [0x655088], 0xffffffff
mov ecx, 0x655088
push 0x445770
call fcn.00424dd0
push 0x655090
call fcn.00562ff7
add esp, 4
jmp 0x446d46
mov dword [ebp - 0x28], esi
push 0xc
call fcn.00562f65
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 0x446f37
mov ecx, dword [0x655088]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x65508c]
jne 0x446f37
mov edi, dword [eax + ecx*8]
push dword [0x6460b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
jne 0x446f51
test esi, esi
je 0x446f6a
call fcn.0041e8b0
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 0x446d7b
jmp 0x44712f
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov eax, dword [esi]
test eax, eax
mov edi, dword [ebp - 0x30]
je 0x447102
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 0x446f93
cmp esi, dword [ebp - 0x20]
je 0x447102
cmp dword [esi + 0x10], ebx
ja 0x447102
mov edx, dword [esi + 4]
test edx, edx
jne 0x447017
mov edx, esi
mov ecx, dword [edx + 8]
cmp dword [ecx], edx
mov edx, ecx
jne 0x446fc0
lea ebx, [esi + 0x10]
cmp dword [edi], esi
jne 0x446fd2
mov dword [edi], ecx
dec dword [edi + 8]
push esi
push eax
call fcn.0050ae10
add esp, 8
test ebx, ebx
je 0x447108
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 0x447009
push eax
call fcn.004ff910
add esp, 4
push esi
call fcn.00562f60
add esp, 4
jmp 0x446e6d
mov ecx, edx
mov edx, dword [edx]
test edx, edx
je 0x446fc9
jmp 0x447017
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmp dword [ebx + 0x10], eax
mov dword [ebp - 0x24], ebx
ja 0x447043
jae 0x44712c
mov eax, dword [ebx + 4]
test eax, eax
jne 0x447021
mov eax, dword [ebp - 0x24]
lea ebx, [eax + 4]
jmp 0x44705d
mov eax, dword [ebx]
jmp 0x447059
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 0x447021
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], esi
push 0x18
call fcn.00562f65
add esp, 4
mov esi, eax
add eax, 0x10
je 0x44710f
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 0x4470eb
push edi
call fcn.004ff7e0
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 0x4470c3
mov dword [edi], eax
mov esi, dword [ebx]
push esi
push dword [edi + 4]
call fcn.00542820
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 0x446dec
jmp 0x446e8f
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x654810], 1
jmp 0x4470a2
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 0x447114
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x622e92
call fcn.00590170
push esi
call fcn.004f2840
add esp, 4
jmp 0x446e49
int3
mov ecx, dword [edi + 4]
call fcn.00445790
push edi
call fcn.00562f60
add esp, 4
jmp 0x446d7b