Function at 0x441fd4
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 0x44216b
test byte [edi + 1], 4
je 0x44216b
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.0043b120
mov ebx, eax
mov eax, dword [esi + 8]
pop ecx
push eax
mov edx, dword [esi + 0x10]
push edx
push ebx
call fcn.004ab480
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.004ab480
add esp, 0xc
mov edx, dword [ebp - 4]
mov byte [ebx + edx], 0
mov dword [ebp - 0x54], 2
test byte [ebp + 0x14], 0x40
je 0x442069
call fcn.00441828
mov esi, eax
jmp 0x44206c
mov esi, dword [ebp + 0x14]
call fcn.004255a0
test byte [eax + 0x24], 4
je 0x44207e
mov eax, 0x800
jmp 0x442080
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.00441850
pop ecx
mov esi, eax
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x4420ea
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call fcn.0043edc0
pop ecx
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
test dword [edx], 0xb405
je 0x442128
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
push edx
call fcn.0043edc0
pop ecx
test esi, esi
jne 0x44213e
test byte [ebp - 0x3c], 1
je 0x44213e
lea ecx, [ebp - 0x54]
push ecx
call fcn.00441998
pop ecx
jmp 0x442155
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.00423160
add esp, 8
lea edx, [ebp - 0x54]
push edx
call fcn.004419b0
pop ecx
push ebx
call fcn.0043b208
pop ecx
lea ecx, [ebp - 0x54]
push ecx
call fcn.004418a4
pop ecx
jmp 0x44225f
push edi
call fcn.004418e0
pop ecx
test eax, eax
je 0x44225f
mov dword [ebp - 0xa4], 2
test byte [ebp + 0x14], 0x40
je 0x442193
call fcn.00441828
mov ebx, eax
jmp 0x442196
mov ebx, dword [ebp + 0x14]
call fcn.004255a0
test byte [eax + 0x24], 4
je 0x4421a8
mov eax, 0x800
jmp 0x4421aa
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.00441850
pop ecx
test eax, eax
jne 0x442245
test byte [ebp - 0x8c], 1
je 0x442245
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x442236
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043edc0
pop ecx
lea eax, [ebp - 0xa4]
push eax
call fcn.00441998
pop ecx
jmp 0x442252
lea edx, [ebp - 0xa4]
push edx
call fcn.004419b0
pop ecx
lea ecx, [ebp - 0xa4]
push ecx
call fcn.004418a4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret