Function at 0x4751d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ecx + 8]
shr eax, 0xf
shr edx, 0xf
shr esi, 0xf
shr edi, 0xf
cmp eax, 0xffff
mov dword [esp + 0x28], ebx
je 0x475206
add eax, 1
or eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x14]
shr eax, 0xf
cmp eax, 0xffff
je 0x47521d
add eax, 1
or eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x18]
shr eax, 0xf
cmp eax, 0xffff
je 0x475234
add eax, 1
mov ecx, dword [ebx + 0xa8]
and edi, 0xfffe
mov dword [esp + 0x38], edi
lea edi, [ebx + 0xa0]
or eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xa4]
and edx, 0xfffe
and esi, 0xfffe
and ecx, 0x3fffffff
cmp dword [edi + 4], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], eax
jne 0x475285
push 0x10
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov esi, eax
shl esi, 4
add esi, dword [edi]
add eax, 1
lea edx, [esi + 0xa]
push edx
mov edx, dword [esp + 0x44]
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [edi + 4], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebx + 0xac]
mov dword [esp + 0x34], eax
call fcn.00472c90
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
lea eax, [esi + 4]
push eax
mov eax, dword [esp + 0x48]
push esi
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [ebx + 0xb8]
call fcn.00472c90
mov eax, dword [esp + 0x48]
lea ecx, [esi + 6]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esi + 2]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [ebx + 0xc4]
call fcn.00472c90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00471b50
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
mov dword [eax], ecx
mov eax, dword [0x4c6060]
mov edx, dword [ebx + 0xa4]
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x20]
sar ecx, 5
lea edx, [ecx*4 + 0x30]
mov ecx, dword [eax + 0x20]
and edx, 0xfffffff0
mov dword [esp + 0x24], ecx
add ecx, edx
cmp ecx, dword [eax + 0x2c]
ja 0x475369
mov edx, dword [esp + 0x24]
mov dword [eax + 0x20], ecx
mov dword [esp + 0x1c], edx
jmp 0x475377
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push edx
call eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push esi
push eax
push ecx
mov ecx, ebx
call fcn.00472330
mov ecx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0xa4]
sar ecx, 5
lea edi, [eax + ecx*4 + 4]
cmp eax, edi
mov edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edi
jae 0x4754b5
mov ecx, dword [edx]
test ecx, ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x47549e
test cl, cl
jne 0x4753e3
add eax, 0x80
shr ecx, 8
jmp 0x475486
test cl, 1
je 0x475481
mov edx, dword [eax + 4]
mov edi, dword [esi + 4]
sub edx, dword [esi]
sub edi, dword [eax]
or edx, edi
test edx, 0x80008000
jne 0x475481
mov ebx, dword [eax + 0xc]
test bl, 1
jne 0x47543c
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x475427
push 8
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov dword [eax + ecx*8], edx
mov dword [eax + ecx*8 + 4], ebx
mov eax, dword [esp + 0x14]
jmp 0x475479
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xd8]
and ebx, 0xfffffffe
mov ecx, dword [ebx + edx + 0xc]
lea edi, [ebx + edx + 4]
and ecx, 0x3fffffff
cmp dword [edi + 4], ecx
jne 0x47546b
push 2
push edi
call fcn.00402730
mov eax, dword [esp + 0x1c]
add esp, 8
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov bx, word [esp + 0x10]
mov word [ecx + edx*2], bx
mov ecx, dword [esp + 0x18]
add dword [edi + 4], 1
add eax, 0x10
shr ecx, 1
test ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x4753d2
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add dword [esp + 0x20], 0x200
add edx, 4
cmp edx, edi
mov dword [esp + 0x24], edx
jb 0x4753bc
mov edx, dword [0x4c6060]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x28]
mov dword [eax + 0x20], ecx
jne 0x4754d8
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc