Function at 0x1000dd31
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x100181d4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
xor eax, eax
mov dword [esp + 0x1c], edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov ecx, eax
mov dword [esp + 0x14], eax
mov esi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x10]
mov cl, byte [ebp + 8]
mov dword [esp + 0x1c], esi
mov ebx, dword [eax]
add eax, 4
mov dword [edi + 0x10], eax
mov al, cl
and al, 0x80
mov byte [esp + 0x13], al
je 0x1000ddbd
test ebx, ebx
je 0x1000ddbd
push 4
pop edx
mov ecx, ebx
call fcn.1000776c
test eax, eax
jne 0x1000ddb3
push 4
pop edx
mov ecx, ebx
call fcn.10007797
test eax, eax
jne 0x1000ddb3
mov cl, byte [ebp + 8]
mov al, cl
and al, 0x40
je 0x1000ddaf
mov edx, dword [ebx]
jmp 0x1000ddc3
xor edx, edx
jmp 0x1000ddc3
mov eax, 0x80070057
jmp 0x1000e059
mov al, cl
mov edx, ebx
and al, 0x40
mov dword [esp + 0x30], edx
test al, al
je 0x1000de33
test edx, edx
je 0x1000de2d
mov al, cl
mov ecx, dword [edi + 0x28]
and al, 0x3f
cmp al, 0x20
lea eax, [esp + 0x2c]
push eax
jne 0x1000de0b
lea eax, [esp + 0x18]
push eax
push edx
call fcn.100069ee
mov esi, eax
lea ecx, [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], eax
call fcn.10005345
mov dword [esp + 0x38], 1
jmp 0x1000de1f
push dword [esp + 0x28]
push 0
push edx
push 0
call fcn.100061bb
mov esi, eax
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x1000de33
mov eax, 0x8007000e
jmp 0x1000e059
xor esi, esi
mov dword [esp + 0x1c], esi
cmp byte [esp + 0x13], 0
je 0x1000deb5
test ebx, ebx
je 0x1000deb5
push dword [esp + 0x24]
mov ecx, dword [edi + 0x28]
call fcn.10006798
mov dword [esp + 0x20], eax
test eax, eax
je 0x1000deae
push 4
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011e0c
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x1000dea7
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 4
push edx
call dword [0x10019344]
call esi
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
jge 0x1000dea3
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], ecx
jmp 0x1000dece
mov dword [eax], ecx
jmp 0x1000deca
mov ecx, 0x8007000e
jmp 0x1000deef
mov ecx, 0x8007000e
jmp 0x1000deeb
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jge 0x1000dec8
add eax, 0xfffffffc
mov dword [edi + 4], eax
mov dword [eax], esi
jmp 0x1000dece
mov dword [eax], esi
add dword [edi + 4], 4
mov eax, dword [edi + 0x14]
push edi
movzx eax, byte [eax]
and eax, 0x3f
mov esi, dword [eax*4 + 0x100010f8]
mov ecx, esi
call dword [0x10019344]
call esi
mov ecx, eax
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], ecx
je 0x1000dfd6
test ebx, ebx
je 0x1000dfd6
xor eax, eax
mov dword [esp + 0x28], eax
test ecx, ecx
js 0x1000dfd4
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 4
push edx
call dword [0x10019344]
call esi
mov esi, dword [eax]
test esi, esi
je 0x1000dfd0
cmp dword [ebp + 0xc], 0
je 0x1000df6d
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [esp + 0x34], 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edi + 0x28]
mov eax, dword [eax + 0x48]
push 0
push dword [esp + 0x2c]
push dword [eax]
push esi
push dword [esp + 0x34]
call fcn.10006eff
mov edx, dword [esp + 0x34]
jmp 0x1000df8b
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x2c]
push 0
push esi
push dword [esp + 0x34]
call fcn.10006eff
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1000dfb1
mov cl, byte [ebp + 8]
and cl, 0x3f
cmp cl, 0x21
jne 0x1000dfaa
cmp edx, 4
je 0x1000dfaa
mov dword [eax + 0x1c], 0x20
and dword [esp + 0x20], 0
jmp 0x1000dfb9
mov dword [esp + 0x14], 0x8007000e
push esi
push dword [0x10018598]
mov esi, dword [0x100186e8]
mov ecx, esi
call dword [0x10019344]
call esi
mov eax, dword [esp + 0x28]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000e016
mov cl, byte [ebp + 8]
and cl, 0xc0
cmp cl, 0xc0
jne 0x1000dfff
mov ecx, dword [esp + 0x30]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10019344]
call esi
jmp 0x1000e016
mov esi, dword [0x100186e8]
mov ecx, esi
push eax
push dword [0x10018598]
call dword [0x10019344]
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000e02b
push dword [esp + 0x24]
mov ecx, dword [edi + 0x28]
push eax
call fcn.100067e0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000e049
push 4
push ecx
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011f10
cmp dword [esp + 0x38], 0
je 0x1000e055
call fcn.1000536d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100165d0
mov esp, ebp
pop ebp
ret 8