Function at 0x10060150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100837c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100afcf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x60], ecx
cmp byte [0x100bb478], 0
jne 0x100601a5
call fcn.10054330
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100601a5
mov byte [0x100bb478], 1
call fcn.10060580
cmp edi, 0x200
jne 0x100601b2
call fcn.10049600
call fcn.100424f0
mov ecx, dword [ebp + 8]
test al, al
je 0x1006049c
cmp edi, 0x100
jne 0x100601dd
cmp ecx, 0x1b
jne 0x1006043d
call fcn.1000d9d0
jmp 0x1006043d
cmp edi, 0x201
jne 0x10060413
push 1
call fcn.1003c290
add esp, 4
test al, al
je 0x1006043d
push 2
call fcn.1003c290
add esp, 4
test al, al
jne 0x1006043d
push 0
call fcn.1003c290
add esp, 4
test al, al
jne 0x1006043d
push 0xffffffffffffffff
push 1
call fcn.1003ba90
push eax
call fcn.1003c2e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1006043d
mov eax, dword [esi + 0x190]
test eax, eax
je 0x1006043d
mov eax, dword [eax + 4]
push eax
mov dword [ebp - 0x5c], eax
call fcn.10054c70
push eax
call fcn.100174b0
add esp, 8
mov ecx, eax
call fcn.100557b0
push eax
call dword [0x100b502c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100599a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str.Default_string
push eax
call fcn.100314c0
add esp, 0x14
test al, al
je 0x10060402
cmp dword [ebp - 0x18], 0
je 0x10060402
call fcn.10054530
push eax
call fcn.10054720
push eax
call fcn.100550a0
push eax
call fcn.1002e270
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10060402
mov ecx, ebx
call fcn.1002f5f0
push eax
call dword [0x100b50d4]
push eax
call dword [0x100b5040]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100599a0
mov byte [ebp - 4], 1
call dword [0x100b5028]
push eax
call dword [0x100b5040]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100599a0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000b6c0
add esp, 0x24
test al, al
je 0x10060323
push 0x10087b08
lea ecx, [ebp - 0x40]
call fcn.10007cc0
push dword [ebp - 0x5c]
mov ecx, ebx
call fcn.1002e640
mov ecx, dword [esi + 0x190]
mov edi, eax
push dword [ecx + 8]
push dword [ecx + 0x6d4]
call fcn.1003e310
fstp dword [ebp - 0x5c]
movss xmm0, dword [ebp - 0x5c]
add esp, 8
comiss xmm0, dword [0x1008a084]
jbe 0x100603b3
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [ebp - 0x64], xmm0
fld qword [ebp - 0x64]
fstp qword [esp]
call fcn.10067a00
fstp qword [ebp - 0x64]
movsd xmm0, qword [ebp - 0x64]
lea ecx, [ebp - 0x28]
cvtpd2ps xmm0, xmm0
add esp, 8
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
cmovae esi, dword [ebp - 0x40]
cvttss2si eax, xmm0
push eax
push edi
push ecx
mov ecx, ebx
call fcn.1002f5d0
push eax
push esi
push str.__s____s__Skill:__s__Lv:__d_____d_sec
push 0xffffffffffffffff
call fcn.10055910
add esp, 0x1c
jmp 0x100603e3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov ecx, ebx
push eax
cmovae esi, dword [ebp - 0x40]
call fcn.1002f5d0
push eax
push esi
push str.__s____s__Skill:__s__Lv:__d
push 0xffffffffffffffff
call fcn.10055910
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.10007b40
lea ecx, [ebp - 0x40]
call fcn.10007b40
lea ecx, [ebp - 0x28]
call fcn.10007b40
xor eax, eax
jmp 0x100604d9
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10007b40
jmp 0x1006043d
cmp edi, 0x202
ja 0x10060435
cmp edi, 0x200
jae 0x1006043d
cmp edi, 0x100
jb 0x1006049c
cmp edi, 0x101
jbe 0x1006043d
jmp 0x1006049c
cmp edi, 0x20a
jne 0x1006049c
mov eax, dword [0x100b51f0]
xor bl, bl
mov ecx, dword [0x100b51ec]
xor esi, esi
sub eax, ecx
sar eax, 2
test eax, eax
je 0x10060499
cmp eax, esi
jbe 0x1006048f
push dword [ebp + 8]
mov ecx, dword [ecx + esi*4]
push edi
call fcn.1001fc00
mov ecx, dword [0x100b51ec]
test al, al
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
mov eax, dword [0x100b51f0]
sub eax, ecx
inc esi
sar eax, 2
cmp eax, esi
ja 0x10060459
test bl, bl
je 0x10060499
xor eax, eax
jmp 0x100604d9
push str.invalid_vector_T__subscript
call fcn.1007e899
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [esi + 0x100bb3e8]
test eax, eax
je 0x100604c8
push ebx
push ecx
push edi
push dword [ebp - 0x60]
call eax
add esp, 0x10
test al, al
jne 0x100604c8
mov ecx, dword [ebp + 8]
add esi, 4
cmp esi, 0x80
jb 0x100604a1
mov ecx, dword [0x100bb3d0]
mov eax, 1
mov dword [0x100bb3bc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10060c02
mov esp, ebp
pop ebp
ret 8