Function at 0x44221c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test byte [esi + 1], 4
je 0x4423b3
test byte [edi + 1], 4
je 0x4423b3
mov eax, dword [edi + 8]
add eax, dword [esi + 8]
add eax, 2
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
inc edx
push edx
call fcn.0043b368
mov ebx, eax
mov eax, dword [esi + 8]
pop ecx
push eax
mov edx, dword [esi + 0x10]
push edx
push ebx
call fcn.004ab6c8
add esp, 0xc
mov ecx, dword [esi + 8]
mov byte [ebx + ecx], 0x2d
mov eax, dword [esi + 8]
mov byte [ebx + eax + 1], 0x3e
mov edx, dword [edi + 8]
push edx
mov ecx, dword [edi + 0x10]
push ecx
mov eax, dword [esi + 8]
add eax, ebx
add eax, 2
push eax
call fcn.004ab6c8
add esp, 0xc
mov edx, dword [ebp - 4]
mov byte [ebx + edx], 0
mov dword [ebp - 0x54], 2
test byte [ebp + 0x14], 0x40
je 0x4422b1
call fcn.00441a70
mov esi, eax
jmp 0x4422b4
mov esi, dword [ebp + 0x14]
call fcn.004257e8
test byte [eax + 0x24], 4
je 0x4422c6
mov eax, 0x800
jmp 0x4422c8
xor eax, eax
or esi, eax
mov dword [ebp - 0x50], esi
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x40], edx
mov word [ebp - 0x1e], 0x3f
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x48], ebx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x54]
push eax
call fcn.00441a98
pop ecx
mov esi, eax
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x442332
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call fcn.0043f008
pop ecx
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
test dword [edx], 0xb405
je 0x442370
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
push edx
call fcn.0043f008
pop ecx
test esi, esi
jne 0x442386
test byte [ebp - 0x3c], 1
je 0x442386
lea ecx, [ebp - 0x54]
push ecx
call fcn.00441be0
pop ecx
jmp 0x44239d
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004233a8
add esp, 8
lea edx, [ebp - 0x54]
push edx
call fcn.00441bf8
pop ecx
push ebx
call fcn.0043b450
pop ecx
lea ecx, [ebp - 0x54]
push ecx
call fcn.00441aec
pop ecx
jmp 0x4424a7
push edi
call fcn.00441b28
pop ecx
test eax, eax
je 0x4424a7
mov dword [ebp - 0xa4], 2
test byte [ebp + 0x14], 0x40
je 0x4423db
call fcn.00441a70
mov ebx, eax
jmp 0x4423de
mov ebx, dword [ebp + 0x14]
call fcn.004257e8
test byte [eax + 0x24], 4
je 0x4423f0
mov eax, 0x800
jmp 0x4423f2
xor eax, eax
or ebx, eax
mov dword [ebp - 0xa0], ebx
mov edx, dword [ebp + 0x10]
or edx, 4
mov dword [ebp - 0x90], edx
mov word [ebp - 0x6e], 0x3f
mov dword [ebp - 0x8c], 1
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x98], ecx
mov eax, dword [edi + 8]
mov dword [ebp - 0x94], eax
lea edx, [ebp - 0xa4]
push edx
call fcn.00441a98
pop ecx
test eax, eax
jne 0x44248d
test byte [ebp - 0x8c], 1
je 0x44248d
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x44247e
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043f008
pop ecx
lea eax, [ebp - 0xa4]
push eax
call fcn.00441be0
pop ecx
jmp 0x44249a
lea edx, [ebp - 0xa4]
push edx
call fcn.00441bf8
pop ecx
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00441aec
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret