Function at 0x41ad10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6858
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x12bc]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x54], 1
mov dword [ebp - 4], 0
cmp dword [esi + 0x100c], 0
mov eax, dword [esi + 0x12dc]
mov dword [ebp - 0x44], eax
jne 0x41af13
mov edi, dword [esi + 0x12dc]
test edi, edi
je 0x41ad93
mov edi, dword [edi + 4]
jmp 0x41ad99
mov edi, dword [esi + 0x12a8]
mov dword [esi + 0x12dc], edi
test edi, edi
jne 0x41ae3b
test eax, eax
je 0x41adb5
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x41ae87
mov eax, dword [esi + 0x12e0]
or eax, dword [esi + 0x12e4]
je 0x41ae96
xor edi, edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
cmp dword [esi + 0x1004], edi
je 0x41ae05
mov edi, dword [esi + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push dword [ebp - 0x48]
mov edi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test edi, edi
je 0x41ae05
call fcn.00461690
mov dword [ebp - 0x48], edx
jmp 0x41ae0e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x50]
push 0x64
lea ecx, [esi + 0x12b8]
mov dword [ebp - 0x4c], eax
call fcn.0045ea50
test edi, edi
je 0x41ae84
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x41ae84
call fcn.00461690
sub eax, dword [ebp - 0x4c]
sbb edx, dword [ebp - 0x48]
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x41ae84
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
cmp ecx, dword [ebx + 8]
jne 0x41ae4b
cmp eax, dword [ebx + 0xc]
je 0x41aeb3
cmp ecx, dword [esi + 0x12e0]
jne 0x41ae84
cmp eax, dword [esi + 0x12e4]
jne 0x41ae84
mov eax, dword [esi + 0x12e8]
mov dword [edi + 0x28], eax
push ecx
lea ecx, [esi + 0x12b8]
mov dword [esi + 0x12e0], 0
mov dword [esi + 0x12e4], 0
call fcn.0045eba0
mov eax, dword [ebp - 0x44]
cmp dword [esi + 0x100c], 0
je 0x41ad84
jmp 0x41af13
mov eax, dword [ebx + 8]
mov dword [esi + 0x12e0], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x12e4], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x12e8], eax
jmp 0x41af13
mov eax, dword [ebx + 0x10]
cmp eax, 2
jne 0x41aefe
cmp dword [edi + 0x28], 3
jne 0x41aefe
movups xmm0, xmmword [edi + 0x10]
lea eax, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
push str.x_p
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [ebp - 0x20], xmm0
call fcn.0045f780
int3
push ecx
lea ecx, [esi + 0x12b8]
mov dword [edi + 0x28], eax
call fcn.0045eba0
cmp byte [ebp - 0x54], 0
je 0x41af20
add esi, 0x12bc
push esi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc