Function at 0x473330
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [ebx + 0xb828]
push esi
push edi
mov edi, dword [eax + 0x3c]
push 1
and edi, 0xfffff
push edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xd0]
push edx
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x150]
push edx
push 0x433d48
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 3
mov byte [ebp - 1], 0
call fcn.004f3a10
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x4733d5
push 1
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebx + 0xb828]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x150]
push eax
push 0x433de8
push ecx
mov ecx, ebx
call fcn.004f3a10
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x473665
mov byte [ebp - 1], 1
mov edx, dword [ebp - 0x14c]
cmp dword [edx + 0x3c], 0x50000002
je 0x4733ef
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 1
cmp edi, edx
jbe 0x47343e
mov eax, dword [ebx + 0xb828]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x10], ecx
lea ecx, [edi*4 + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x10]
cmp dword [eax], esi
jne 0x4733e4
mov eax, dword [ebx + 0xb828]
mov eax, dword [eax + 4]
mov esi, dword [ecx + eax]
cmp esi, dword [eax + edi*4]
jne 0x4733e4
mov eax, dword [ebp - 8]
inc edx
add eax, 4
add ecx, 4
mov dword [ebp - 8], eax
cmp edx, edi
jb 0x473413
xor esi, esi
mov eax, dword [0x551d48]
cmp eax, esi
jge 0x47344b
xor eax, eax
jmp 0x473452
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x14], esi
je 0x47347a
mov ecx, dword [eax + 0x14]
cmp ecx, esi
jne 0x473464
xor ecx, ecx
mov esi, ecx
jmp 0x473488
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
cmp edx, esi
jne 0x473470
mov dword [eax + 0x18], esi
mov dword [ecx], 0xfefefefe
mov esi, ecx
jmp 0x473488
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x473662
or ecx, 0xffffffff
xor edx, edx
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x20], ecx
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 4], eax
mov word [esi + 0x40], dx
mov dword [esi + 0xc], eax
mov word [esi + 0x42], dx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
lea ecx, [eax + 6]
push esi
mov edx, edi
mov eax, 0x70800002
call fcn.0050a980
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x473658
mov eax, dword [ebx + 0xb828]
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [esi + 0x38], edx
mov ecx, dword [ebx + 0xb828]
mov edx, dword [ecx + 0xc]
lea eax, [edi*4]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
jne 0x473547
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xbc]
add eax, 8
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x47360e
mov eax, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xbc]
mov ecx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x47356e
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov ecx, eax
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x47357b
mov dword [ebp - 0x10], eax
mov edi, eax
fldz
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x28]
sub esp, 8
fstp qword [esp]
push 0
push 0
push eax
mov eax, dword [ecx + 0x10]
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call fcn.00508980
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x473658
fldz
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x10]
sub esp, 8
fstp qword [esp]
push 0
push 0
push edx
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
call fcn.00508980
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x473658
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 0x1c]
xor ecx, 0x400
mov dword [eax + 0x48], ecx
mov edx, dword [edi + 0x48]
mov ecx, dword [ebp - 0x18]
xor edx, 0x400
mov dword [ecx + 0x48], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x44], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x44], edx
mov edx, dword [esi + 4]
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0xb0]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push esi
mov ecx, ebx
call edx
test al, al
je 0x473648
mov dword [ebp - 0xc], 1
call fcn.0050a890
call fcn.0050cb90
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb828]
push esi
push eax
call fcn.0050b3a0
mov dword [ebp - 0xc], eax
call fcn.0050a890
call fcn.0050cb90
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret