Function at 0x12f4cd0
Capabilities:
Allocate thread local storage
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x13a11f8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x14016ec]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x14016ec]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x12f4d2f
movzx ebx, byte [esi + 0x96]
neg ebx
sbb ebx, ebx
and ebx, 3
jmp 0x12f4d6c
cmp eax, 1
jne 0x12f4d5a
cmp byte [esi + 0x96], bl
je 0x12f4d4c
xor ebx, ebx
cmp byte [esi + 0x95], bl
setne bl
add ebx, 4
jmp 0x12f4d6c
xor ebx, ebx
cmp byte [esi + 0x95], bl
setne bl
inc ebx
jmp 0x12f4d6c
cmp eax, 2
jne 0x12f4d64
lea ebx, [eax + 4]
jmp 0x12f4d6c
cmp eax, 3
jne 0x12f4d6c
lea ebx, [eax + 4]
push 8
call fcn.01328a50
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0xa0], 0
test edi, edi
je 0x12f4db5
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [eax]
push ecx
push 0
push ecx
mov ecx, eax
mov eax, dword [edx + 4]
call eax
push edi
mov edi, eax
call fcn.012f4590
mov edi, eax
jmp 0x12f4db7
xor edi, edi
mov dword [esp + 0x18], edi
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
mov dword [esp + 0xa0], 1
mov ecx, dword [eax + 0x13b29c8]
push ecx
mov ecx, dword [eax + 0x13b29c4]
push edi
call fcn.012f4bc0
test al, al
jne 0x12f4eca
cmp ebx, 6
je 0x12f4eca
cmp ebx, 7
je 0x12f4eca
cmp dword [esi + 0x64], 0x10
lea ebx, [esi + 0x50]
jb 0x12f4e05
mov ebx, dword [ebx]
push str.IME_SKIN_LOAD_FAILURE
push ecx
call fcn.0127e590
mov ecx, eax
add esp, 4
mov eax, ebx
lea edx, [esp + 0x5c]
call fcn.0127e570
add esi, 0x34
mov ebx, 0x10
mov byte [esp + 0xa0], 2
cmp dword [esi + 0x14], ebx
jb 0x12f4e37
mov esi, dword [esi]
cmp dword [eax + 0x14], ebx
jb 0x12f4e3e
mov eax, dword [eax]
push esi
push eax
lea edx, [esp + 0x44]
push edx
call fcn.01274220
add esp, 0xc
mov byte [esp + 0xa0], 3
cmp dword [eax + 0x14], ebx
jb 0x12f4e5c
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
call fcn.0125bd20
mov byte [esp + 0xa0], 2
cmp dword [esp + 0x50], ebx
jb 0x12f4e7f
mov eax, dword [esp + 0x3c]
push eax
call fcn.01328a36
add esp, 4
mov byte [esp + 0xa0], 1
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x6c], ebx
jb 0x12f4eaf
mov ecx, dword [esp + 0x58]
push ecx
call fcn.01328a36
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xa0], 0xffffffff
call fcn.012f6480
xor al, al
jmp 0x12f4f9d
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx*4 + 0x7c]
mov dword [esp + 0x18], 0
cmp eax, edi
je 0x12f4ef0
test eax, eax
je 0x12f4eec
push eax
call fcn.012f67c0
mov ecx, dword [esp + 0x10]
mov dword [esi + ecx*4 + 0x7c], edi
xor ebx, ebx
mov eax, dword [ebx + 0x13b2a20]
cmp eax, ecx
jne 0x12f4f3b
mov eax, dword [esi + eax*4 + 0x7c]
mov eax, dword [eax]
mov ecx, dword [ebx + 0x13b2a24]
mov edi, dword [eax + 4]
call fcn.01259ef0
test eax, eax
je 0x12f4fc3
mov ecx, dword [ebx + 0x13b2a2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, dword [ebx + 0x13b2a28]
push ecx
mov ecx, eax
call edx
test al, al
je 0x12f4fc3
mov ecx, dword [esp + 0x10]
add ebx, 0x10
cmp ebx, 0x30
jb 0x12f4ef2
cmp ecx, 1
jne 0x12f4f9b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x12f4f9b
mov eax, dword [eax]
test eax, eax
je 0x12f4f9b
mov edi, dword [eax + 4]
mov ecx, 0x13b2c44
call fcn.01259ef0
mov edi, eax
test edi, edi
je 0x12f4f9b
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push 0xfe20350c
push 0x5bcf12dc
mov ecx, edi
call edx
test al, al
je 0x12f4f9b
xor eax, eax
cmp byte [esi + 0x95], al
mov ecx, edi
setne al
push eax
call fcn.012f05c0
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.01328a41
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 0x50]
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x12f4fd2
mov eax, dword [eax]
mov ecx, dword [0x140c198]
mov dword [esp + 0x10], eax
cmp ecx, 0xffffffff
je 0x12f4ff8
mov edx, dword [0x140c198]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x12f5099
push 4
call fcn.01328a50
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0xa0], 4
test edi, edi
je 0x12f503e
push 0x48
call fcn.01328a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa0], 5
test eax, eax
je 0x12f5038
push eax
call fcn.0127d8a0
mov dword [edi], eax
jmp 0x12f5040
xor eax, eax
mov dword [edi], eax
jmp 0x12f5040
xor edi, edi
mov byte [esp + 0xa0], 1
mov eax, dword [0x140c198]
cmp eax, 0xffffffff
jne 0x12f5084
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x12f5094
push 0xffffffffffffffff
push eax
push 0x140c198
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x12f507f
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, 0x10
mov edx, dword [0x140c198]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x12f5099
mov ebx, 0x10
mov eax, dword [esp + 0x10]
push str.IME_SKIN_LOAD_FAILURE
lea edx, [esp + 0x78]
mov ecx, edi
call fcn.0127e570
lea ecx, [esi + 0x34]
mov byte [esp + 0xa0], 6
cmp dword [ecx + 0x14], ebx
jb 0x12f50bf
mov ecx, dword [ecx]
cmp dword [eax + 0x14], ebx
jb 0x12f50c6
mov eax, dword [eax]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.01274220
add esp, 0xc
mov byte [esp + 0xa0], 7
cmp dword [eax + 0x14], ebx
jb 0x12f50e4
mov eax, dword [eax]
mov esi, dword [esi + 0x7c]
mov ecx, dword [esi]
push eax
call fcn.0125bd20
mov byte [esp + 0xa0], 6
cmp dword [esp + 0x34], ebx
jb 0x12f510a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.01328a36
add esp, 4
mov byte [esp + 0xa0], 1
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
cmp dword [esp + 0x88], ebx
jb 0x12f513d
mov edx, dword [esp + 0x74]
push edx
call fcn.01328a36
add esp, 4
xor al, al
jmp 0x12f4f9d