Function at 0x1000d46e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
xor ecx, ecx
mov esi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ecx
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], ecx
mov dword [edi + 0x10], eax
test bl, bl
jns 0x1000d4f0
test ecx, ecx
je 0x1000d4f0
push 4
pop edx
call fcn.10007242
test eax, eax
jne 0x1000d4e6
mov ecx, dword [esp + 0x1c]
push 4
pop edx
call fcn.10007277
test eax, eax
jne 0x1000d4e6
mov al, bl
and al, 0x40
je 0x1000d4e2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
jmp 0x1000d4fc
xor ecx, ecx
jmp 0x1000d4f4
mov eax, 0x80070057
jmp 0x1000d7d6
mov al, bl
and al, 0x40
mov dword [esp + 0x2c], ecx
test al, al
je 0x1000d56b
test ecx, ecx
je 0x1000d563
mov al, bl
and al, 0x3f
cmp al, 0x20
lea eax, [esp + 0x24]
push eax
jne 0x1000d53e
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edi + 0x28]
call fcn.10006538
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
call fcn.10004f31
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 1
jmp 0x1000d555
push dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [edi + 0x28]
push 0
call fcn.10005d56
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1000d56d
mov eax, 0x8007000e
jmp 0x1000d7d6
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x1000d56d
mov ecx, esi
test bl, bl
jns 0x1000d5ea
cmp dword [esp + 0x1c], esi
je 0x1000d5ea
push dword [esp + 0x20]
mov ecx, dword [edi + 0x28]
call fcn.100062eb
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000d5de
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
mov ecx, eax
call fcn.10011532
mov dword [esp + 0xc], eax
test eax, eax
je 0x1000d5de
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 4
push eax
call dword [0x100142a8]
call esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov dword [eax], ecx
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000d5da
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000d602
mov dword [eax], esi
jmp 0x1000d5fe
mov ebx, 0x8007000e
xor eax, eax
jmp 0x1000d752
mov eax, dword [edi + 4]
cmp dword [edi + 8], esi
jge 0x1000d5fc
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000d602
mov dword [eax], ecx
add dword [edi + 4], 4
mov eax, dword [edi + 0x14]
mov dword [esp + 0xc], esi
push edi
movzx eax, byte [eax]
and eax, 0x3f
mov esi, dword [eax*4 + 0x100010f8]
mov ecx, esi
call dword [0x100142a8]
call esi
mov ebx, eax
mov al, byte [ebp + 8]
test al, al
jns 0x1000d75b
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [esp + 0xc]
mov esi, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], eax
je 0x1000d758
and dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
test ecx, ecx
js 0x1000d74e
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 4
push eax
call dword [0x100142a8]
call esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x1000d74e
cmp dword [ebp + 0xc], 0
je 0x1000d6dd
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0x48]
push 0
push dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x44]
push esi
call fcn.10006a1c
mov edx, dword [esp + 0x10]
jmp 0x1000d6f8
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x28]
push 0
push ecx
mov ecx, dword [edi + 0x28]
push esi
call fcn.10006a1c
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000d723
mov cl, byte [ebp + 8]
and cl, 0x3f
cmp cl, 0x21
jne 0x1000d717
cmp edx, 4
je 0x1000d717
mov dword [eax + 0x1c], 0x20
mov ebx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1000d72c
mov ebx, 0x8007000e
mov dword [esp + 0x10], esi
push dword [esp + 0x34]
mov esi, dword [0x100136c0]
mov ecx, esi
push dword [0x10013570]
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov al, byte [ebp + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1000d796
and al, 0xc0
cmp al, 0xc0
jne 0x1000d77f
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100142a8]
call esi
jmp 0x1000d796
mov esi, dword [0x100136c0]
push ecx
push dword [0x10013570]
mov ecx, esi
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000d7ab
push dword [esp + 0x20]
mov ecx, dword [edi + 0x28]
push eax
call fcn.10006339
cmp dword [esp + 0xc], 0
je 0x1000d7c8
push dword [0x100131bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 4
push ecx
mov ecx, eax
call fcn.1001161f
cmp dword [esp + 0x38], 0
je 0x1000d7d4
call fcn.10004f5f
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8