Function at 0x100530e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x80
mov eax, dword [0x1007e5f0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, dword [esi + 0x18]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
mov dword [esp + 0x20], edi
call fcn.10057e50
mov ecx, dword [esp + 0x98]
push 6
lea eax, [esp + 0x64]
push eax
push ecx
mov word [esp + 0x6c], bp
call fcn.100205a0
lea edx, [esp + 0x9c]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0xc4]
mov dword [esp + 0x34], edx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], ecx
lea edx, [esp + 0xec]
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x100]
lea edx, [esp + 0x114]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x128]
lea edx, [esp + 0x13c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x150]
lea edx, [esp + 0x164]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
shr eax, 1
cmp dword [esi + 0x10], 0x25
lea ecx, [esp + 0x178]
lea edx, [esp + 0x18c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
jge 0x100534c0
cmp dword [esi + 0x2a0], 0xffffffff
je 0x100534c0
movzx ecx, word [esp + 0x60]
sub ecx, 0x3c
je 0x1005325b
sub ecx, 1
je 0x10053250
sub ecx, 1
jne 0x10053284
cmp eax, 1
jne 0x10053239
mov dword [esp + 0x14], 0x10
test byte [esi + 0x274], 8
jne 0x1005321c
push esi
call fcn.10051d90
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x100534da
or dword [esi + 0x274], 8
push 0x400
push esi
push edi
call fcn.1004af50
test eax, eax
je 0x10053291
mov dword [esp + 0x18], 0xfffffc0d
jmp 0x100534da
cmp word [esp + 0x62], 0x3d
jne 0x10053284
cmp eax, 2
jne 0x10053284
mov dword [esp + 0x14], 8
jmp 0x100531fa
cmp eax, 1
jne 0x10053284
mov dword [esp + 0x14], eax
jmp 0x100531fa
cmp eax, 1
jne 0x1005326a
mov dword [esp + 0x14], 2
jmp 0x100531fa
cmp word [esp + 0x62], 0x3d
jne 0x10053284
cmp eax, 2
jne 0x10053284
mov dword [esp + 0x14], 4
jmp 0x100531fa
mov dword [esp + 0x18], 0xfffffc15
jmp 0x100534da
movzx eax, word [esp + 0x1a0]
lea edi, [eax - 1]
cmp edi, ebp
mov ebx, 1
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], edi
jle 0x10053391
xor edi, edi
jmp 0x100532c0
cmp dword [esi + edi*4 + 0x2a4], 0
je 0x100533d0
mov ebp, dword [esp + edi*4 + 0x2c]
mov ax, word [ebp]
mov edx, dword [esp + 0x20]
and ax, 0x7fff
mov word [esp + edi*2 + 0x70], ax
movzx eax, word [edx + 0x34]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x1007eed0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x38]
mov eax, dword [esi + edi*4 + 0x2a4]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ebp
push esi
push ecx
call fcn.1004b0c0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x100534d6
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10053341
mov edx, dword [ebp]
and edx, 0x7fff
cmp edx, 1
je 0x10053341
cmp dword [esi + edi*4 + 0x2a4], 0xa
jne 0x10053341
or ebx, 0x10
push ebx
push eax
mov eax, dword [0x1007eed0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x2a0]
mov eax, dword [esi + 0x298]
push ecx
push edx
push eax
call dword [0x1007efe0]
test eax, eax
mov dword [esp + 0x18], eax
jl 0x100534d6
mov eax, dword [esp + 0x10]
add eax, 1
movzx edi, ax
xor ebx, ebx
cmp edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jl 0x100532c0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x2a0]
mov eax, dword [esi + 0x298]
push ecx
push edx
push eax
call dword [0x1007f030]
test eax, eax
jge 0x10053424
cmp eax, 0xfffff9bf
je 0x100533dd
cmp eax, 0xfffff9bd
je 0x100533dd
mov ecx, dword [esi + 0x298]
push 0
push ecx
push esi
push eax
call fcn.1005a1e0
mov ebp, eax
jmp 0x100533e6
mov dword [esp + 0x18], 0xfffffbd8
jmp 0x100534d6
or dword [esi + 0x274], 4
xor ebp, ebp
xor esi, esi
test edi, edi
jle 0x1005341d
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
cmp word [esp + eax*2 + 0x70], 8
je 0x10053413
mov eax, dword [esp + eax*4 + 0x2c]
mov edx, dword [eax]
and edx, 0x7fff
cmp edx, 8
jne 0x10053413
mov eax, dword [eax + 4]
push eax
call ebx
add esi, 1
movzx eax, si
cmp eax, edi
jl 0x100533f4
mov eax, ebp
jmp 0x100534a5
xor ebx, ebx
test edi, edi
jle 0x1005345b
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
cmp word [esp + eax*2 + 0x70], 8
je 0x10053451
mov eax, dword [esp + eax*4 + 0x2c]
mov ecx, dword [eax]
and ecx, 0x7fff
cmp ecx, 8
jne 0x10053451
mov edx, dword [eax + 4]
push edx
call ebp
add ebx, 1
movzx eax, bx
cmp eax, edi
jl 0x10053432
and dword [esi + 0x274], 8
cmp dword [esi + 0x2f0], 0
je 0x10053499
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x298]
push 2
push 0
push eax
push ecx
call dword [0x1007efe4]
test eax, eax
jge 0x10053499
mov edx, dword [esi + 0x298]
push 0
push edx
push esi
push eax
call fcn.1005a1e0
jmp 0x100534a5
and dword [esi + 0x274], 0xffffff1f
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006ac47
add esp, 0x80
ret 0x110
push 1
push ebp
push esi
push 0xffff8abf
call fcn.1005a550
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x10]
movzx edi, word [esp + 0x1a0]
movzx eax, bx
sub edi, 1
cmp eax, edi
jge 0x10053518
lea esp, [esp]
mov eax, dword [esp + eax*4 + 0x2c]
mov ecx, dword [eax]
and ecx, 0x7fff
cmp ecx, 8
jne 0x1005350e
mov edx, dword [eax + 4]
push 0
push 0
push edx
call fcn.100205a0
add ebx, 1
movzx eax, bx
cmp eax, edi
jl 0x100534f0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x100534a5
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x100534a3
push 1
push 0
push esi
push eax
call fcn.1005a550
jmp 0x100534a5