Function at 0x1006df05
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1006dfe6
mov dword [ebp - 0x20], 0x62b7
mov dword [ebp - 0x28], 0x10010d3c
cmp dword [ebp - 0x20], 0x6493
jle 0x1006dfbd
and dword [ebp - 4], 0
jmp 0x1006df3f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x413b
jge 0x1006dfbd
and dword [ebp - 8], 0
jmp 0x1006df55
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x6884
jge 0x1006dfb8
and dword [ebp - 0xc], 0
jmp 0x1006df6b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x66f
jge 0x1006dfb6
and dword [ebp - 0x10], 0
jmp 0x1006df81
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1e49
jge 0x1006dfb4
mov eax, dword [ebp - 4]
cdq
idiv dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, edx
cdq
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
mov ecx, 0x1008fbf8
call fcn.100229ff
jmp 0x1006df7a
jmp 0x1006df64
jmp 0x1006df4e
jmp 0x1006df38
push 0x272e
push 1
call fcn.1006e128
pop ecx
pop ecx
cmp dword [ebp - 0x20], 0x6239
jge 0x1006dfe1
mov edx, dword [ebp - 0x28]
mov ecx, 0x1008fbf8
call fcn.1002574f
jmp 0x1006e124
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0x21a4
mov dword [ebp - 0x2c], 0x10010d70
cmp dword [ebp - 0x24], 0x221f
jle 0x1006e07a
and dword [ebp - 0x14], 0
jmp 0x1006e01c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x37d2
jge 0x1006e07a
and dword [ebp - 0x18], 0
jmp 0x1006e032
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x51c1
jge 0x1006e078
and dword [ebp - 0x1c], 0
jmp 0x1006e048
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x473d
jge 0x1006e076
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
mov ecx, 0x1008fbf8
call fcn.100229ff
jmp 0x1006e041
jmp 0x1006e02b
jmp 0x1006e015
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x24], 0x20f5
jge 0x1006e096
mov edx, dword [ebp - 0x2c]
mov ecx, 0x1008fbf8
call fcn.1002574f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1006e0cc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1006e0ca
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1006e124
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
push dword [eax]
push 0x2a7e
mov eax, dword [ebp - 0x64]
push dword [eax]
mov eax, dword [ebp - 0x68]
push dword [eax]
push 0
push 0x205f
push 1
push dword [ebp - 0x6c]
call fcn.100516f2
add esp, 0x20
mov esp, ebp
pop ebp
ret