Function at 0x47d620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx + 4]
mov edi, edx
push dword [ebx + 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], ebx
mov esi, dword [eax + 8]
sub esi, dword [ebx + 0x10]
mov eax, dword [eax + 0xc]
sbb eax, dword [ebx + 0x14]
push eax
push esi
call fcn.004c5590
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
cmp edx, 1
jne 0x47d671
movzx esi, byte [edi + 0x1b7]
movzx ecx, byte [edi + 0x1b6]
shl esi, 8
add esi, ecx
jmp 0x47d684
movzx esi, byte [edi + 0x1b6]
movzx eax, byte [edi + 0x1b7]
shl esi, 8
add esi, eax
cmp edx, 1
jne 0x47d699
movzx ecx, byte [edi + 0x1b5]
movzx eax, byte [edi + 0x1b4]
jmp 0x47d6a7
movzx ecx, byte [edi + 0x1b4]
movzx eax, byte [edi + 0x1b5]
shl ecx, 8
add ecx, eax
movzx eax, si
movzx ecx, cx
imul ecx, eax
cmp dword [0x561618], 0
mov dword [ebp - 0x14], ecx
je 0x47d703
cmp edx, 1
jne 0x47d6d6
movzx ecx, byte [edi + 0x8d]
movzx eax, byte [edi + 0x8c]
jmp 0x47d6e4
movzx ecx, byte [edi + 0x8c]
movzx eax, byte [edi + 0x8d]
shl ecx, 8
add ecx, eax
movzx eax, cx
push eax
push str.load_table_sparc:_Number_of_partitions:__d_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0xc
lea eax, [edi + 0x8f]
mov dword [ebp - 0x20], 4
xor esi, esi
mov dword [ebp - 4], eax
lea ebx, [edi + 0x1bd]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov edx, dword [eax + 0x1c]
cmp edx, 1
jne 0x47d739
movzx ecx, byte [edi + 0x8d]
movzx eax, byte [edi + 0x8c]
jmp 0x47d747
movzx ecx, byte [edi + 0x8c]
movzx eax, byte [edi + 0x8d]
shl ecx, 8
add ecx, eax
movzx eax, cx
cmp esi, eax
jae 0x47d91b
mov dword [ebp - 0x10], 1
cmp edx, 1
jne 0x47d77e
movzx esi, byte [ebx + 2]
movzx eax, byte [ebx + 1]
shl esi, 8
add esi, eax
movzx eax, byte [ebx]
shl esi, 8
add esi, eax
movzx eax, byte [ebx - 1]
jmp 0x47d797
movzx esi, byte [ebx - 1]
movzx eax, byte [ebx]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 1]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 2]
shl esi, 8
add esi, eax
imul esi, dword [ebp - 0x14]
cmp edx, 1
jne 0x47d7c1
movzx edi, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 4]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 3]
jmp 0x47d7db
movzx edi, byte [ebx + 3]
movzx eax, byte [ebx + 4]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 5]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 6]
shl edi, 8
add edi, eax
cmp dword [0x561618], 0
je 0x47d825
mov eax, dword [ebp - 4]
cmp edx, 1
jne 0x47d7fa
movzx ecx, byte [eax]
movzx eax, byte [eax - 1]
jmp 0x47d801
movzx ecx, byte [eax - 1]
movzx eax, byte [eax]
shl ecx, 8
add eax, ecx
movzx eax, ax
push eax
push edi
push esi
push dword [ebp - 8]
push str.load_table_sparc:__u__Starting_Sector:__u__Size:__u__Type:__hu_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0x18
test edi, edi
je 0x47d8b0
cmp dword [ebp - 8], 2
jae 0x47d845
xor eax, eax
cmp eax, dword [ebp - 0x18]
ja 0x47d8c3
jb 0x47d845
cmp esi, dword [ebp - 0x1c]
ja 0x47d8c3
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [eax - 1]
jne 0x47d861
mov eax, ecx
shl eax, 8
add eax, edx
jmp 0x47d868
mov eax, edx
shl eax, 8
add eax, ecx
cmp ax, 5
jne 0x47d87a
mov eax, dword [ebp - 0x10]
test esi, esi
cmove eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 1
jne 0x47d888
shl ecx, 8
jmp 0x47d88b
shl edx, 8
push dword [ebp - 8]
add ecx, edx
push 0xffffffffffffffff
call fcn.0047d100
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push eax
push 0
push edi
push 0
push esi
call fcn.00477110
add esp, 0x1c
test eax, eax
je 0x47d912
mov esi, dword [ebp - 8]
add ebx, 8
mov edi, dword [ebp - 0x24]
inc esi
add dword [ebp - 4], 4
jmp 0x47d71b
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x47d8ff
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.sun_load_sparc:_Starting_sector_too_large_for_image
mov dword [esi], 0x4000006
call fcn.004768f0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret