Function at 0x409ecf7d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edi
add ecx, 4
mov dword [eax], ecx
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], ecx
mov dword [ebp - 0x14], edi
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], ecx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x30], edi
xor ebx, ebx
xor edi, edi
push edi
push edx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call fcn.409ef830
push edx
push eax
call fcn.409ea59b
cmp eax, ebx
jl 0x409ed209
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
call fcn.409ef830
push edx
push eax
call fcn.409ea59b
cmp eax, ebx
jl 0x409ed209
push 4
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef108
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x409ed021
mov dword [ebp - 4], 0x8007000e
jmp 0x409ed02d
push 1
push 4
push eax
call sub.wow32.dll_WOWGetVDMPointer
mov dword [eax], ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], ebx
cmp edi, ebx
je 0x409ed096
cmp dword [ebp - 0xc], ebx
je 0x409ed04c
push dword [ebp - 0x20]
push edi
call fcn.409e656b
test eax, eax
je 0x409ed058
mov dword [ebp - 4], 0x80070057
jmp 0x409ed1af
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0xc]
cmp edi, 5
jbe 0x409ed070
push ebx
push dword [ebp - 0x1c]
push 2
call sub.wow32.dll_WOWGlobalAllocLock16
jmp 0x409ed086
push dword [ebp - 0x1c]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef108
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x409ed099
mov dword [ebp - 4], 0x8007000e
jmp 0x409ed099
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], ebx
jl 0x409ed19b
cmp dword [esi + 8], ebx
jge 0x409ed0b2
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], edi
jmp 0x409ed0bb
mov eax, dword [esi + 4]
mov dword [eax], edi
add dword [esi + 4], 4
cmp dword [esi + 8], ebx
mov ecx, dword [ebp + 8]
jge 0x409ed0ce
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], ecx
jmp 0x409ed0d7
mov eax, dword [esi + 4]
mov dword [eax], ecx
add dword [esi + 4], 4
cmp dword [esi + 8], ebx
mov ecx, dword [ebp - 0x10]
jge 0x409ed0ea
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov dword [eax], ecx
jmp 0x409ed0f3
mov eax, dword [esi + 4]
mov dword [eax], ecx
add dword [esi + 4], 4
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1528]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x409ed19b
push 1
push 4
push dword [ebp - 0x10]
call sub.wow32.dll_WOWGetVDMPointer
mov edi, dword [eax]
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x14], ebx
je 0x409ed196
cmp dword [ebp - 4], 1
jne 0x409ed139
cmp dword [ebp - 0xc], 1
jne 0x409ed139
mov dword [ebp - 0x18], ebx
mov edi, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
test edi, edi
jbe 0x409ed194
mov dword [ebp - 0x28], edi
push ebx
push dword [ebp - 8]
push esi
call dword [ebp + 0x14]
test eax, eax
jge 0x409ed162
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add ebx, dword [ebp + 0x10]
add dword [ebp - 8], eax
dec dword [ebp - 0x28]
jne 0x409ed14c
cmp dword [ebp - 0x2c], 0
je 0x409ed194
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
inc edi
push ebx
push dword [ebp - 8]
push esi
call dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add ebx, dword [ebp + 0x10]
add dword [ebp - 8], eax
dec edi
jne 0x409ed180
xor ebx, ebx
cmp dword [ebp - 4], ebx
jge 0x409ed1af
cmp dword [ebp - 0x24], ebx
je 0x409ed1af
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x24]
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x409ed1bb
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
cmp dword [ebp + 8], ebx
je 0x409ed1e9
cmp dword [ebp - 0xc], 5
jbe 0x409ed1d0
push dword [ebp + 8]
call sub.wow32.dll_WOWGlobalUnlockFree16
jmp 0x409ed1e9
push dword [ebp - 0x1c]
push dword [ebp + 8]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
cmp dword [ebp - 0x10], ebx
je 0x409ed206
push 4
push dword [ebp - 0x10]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.409ef19c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14