Function at 0x40d800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 4], 0x97
mov dword [ebp - 0x64], 0x383
mov dword [ebp - 0x1c], 0x2cd
mov dword [ebp - 0x20], 0x1be
mov dword [ebp - 0x80], 0x2d9
mov dword [ebp - 0x84], 0xc0
mov dword [ebp - 0x34], 0x216
mov dword [ebp - 0x18], 0x2cc
mov dword [ebp - 0x10], 0x146
mov dword [ebp - 0x88], 0x19c
mov dword [ebp - 8], 0x2cf
mov dword [ebp - 0x70], 0x70
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x68], 0x3a8
mov dword [ebp - 0x8c], 0x3d
mov dword [ebp - 0x78], 0x4b
mov dword [ebp - 0x7c], 0x2b9
mov dword [ebp - 0x90], 0x3b7
mov dword [ebp - 0x74], 0xd3
mov dword [ebp - 0x94], 0x3c6
mov dword [ebp - 0x98], 0x340
mov dword [ebp - 0xc], 0x121
mov dword [ebp - 0x6c], 0x34d
mov dword [ebp - 0x14], 0
jmp 0x40d8ce
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
sub ecx, 0x18917
cmp dword [ebp - 0x14], ecx
jge 0x40da7c
push 0x130e2
push 0x6e84
push 0x14e23
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0xc
mov edx, dword [ebp + 0x20]
imul edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jge 0x40da77
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jge 0x40d931
mov dword [ebp - 0x24], 1
jmp 0x40d938
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x34]
jge 0x40d949
mov dword [ebp - 0x28], 1
jmp 0x40d950
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x24]
or edx, dword [ebp - 0x28]
or edx, dword [ebp - 8]
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x60], 0
je 0x40da77
mov ecx, dword [ebp + 0x28]
cmp ecx, dword [ebp - 0x64]
jge 0x40d983
mov dword [ebp - 0x2c], 1
jmp 0x40d98a
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x68]
or edx, dword [ebp + 0x1c]
and edx, dword [ebp - 0x2c]
je 0x40da77
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jge 0x40d9aa
mov dword [ebp - 0x30], 1
jmp 0x40d9b1
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
imul edx, dword [ebp + 0x18]
or edx, dword [ebp - 0x30]
je 0x40da77
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x6c]
jge 0x40d9db
mov dword [ebp - 0x38], 1
jmp 0x40d9e2
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0x18]
jge 0x40d9f6
mov dword [ebp - 0x3c], 1
jmp 0x40d9fd
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x74]
and edx, dword [ebp - 0x38]
and edx, dword [ebp - 0x3c]
je 0x40da77
mov eax, dword [ebp - 0x20]
and eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x20]
jge 0x40da20
mov dword [ebp - 0x44], 1
jmp 0x40da27
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x40]
and edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x24]
jge 0x40da44
mov dword [ebp - 0x48], 1
jmp 0x40da4b
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x78]
jge 0x40da5c
mov dword [ebp - 0x4c], 1
jmp 0x40da63
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x44]
and ecx, dword [ebp - 0x48]
and ecx, dword [ebp - 0x4c]
je 0x40da77
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40d8c5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x7c]
jge 0x40da9f
mov dword [ebp - 0x50], 1
jmp 0x40daa6
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x10]
jge 0x40dab7
mov dword [ebp - 0x54], 1
jmp 0x40dabe
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp + 0x24]
and ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x54]
je 0x40dad2
mov edx, dword [ebp + 0x28]
add edx, 1
mov dword [ebp + 0x28], edx
mov esp, ebp
pop ebp
ret