Function at 0x2e00a275
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call fcn.2e0070e3
mov esi, dword [esi]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x2e00a2de
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x2e01b9d0]
jne 0x2e00a2de
mov eax, dword [esi + 0x128]
mov ecx, dword [esi + 0x60]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2e00a2de
mov ecx, esi
call fcn.2e008afe
cmp eax, dword [ebp - 0x18]
je 0x2e00a333
push 0x6730706d
push 0x2e001974
push 0xe81
push 0x2e001ac8
call fcn.2e00536c
mov esi, edi
cmp esi, dword [ebx + 8]
je 0x2e00a2fe
push 0x67307067
push 0x2e001f3c
push 0x84d
push 0x2e001ac8
call fcn.2e00536c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, eax
shr ecx, 0x13
mov esi, eax
and ecx, 0x7ff
shl esi, 0x14
sar esi, 0x14
mov edi, ecx
sub edi, esi
add edi, dword [edx + 0xac]
cmp edi, dword [edx + 0xb0]
ja 0x2e00a33b
xor al, al
jmp 0x2e00a34f
mov esi, dword [esi + 0x128]
jmp 0x2e00a2e0
test eax, eax
jns 0x2e00a344
test ecx, ecx
jle 0x2e00a344
dec ecx
shr eax, 0xc
and eax, 0x7f
cmp eax, ecx
setb al
mov edx, dword [edx + 0xa8]
movzx eax, al
xor ecx, ecx
neg eax
sbb eax, eax
and eax, 0x1771
dec eax
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov esi, eax
test esi, esi
je 0x2e00a38d
mov dword [ebp - 0x14], 0
jmp 0x2e00a396
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp edi, 4
setae al
test esi, esi
jne 0x2e00a515
test ecx, ecx
jne 0x2e00a515
cmp dword [0x2e01b9bc], ecx
je 0x2e00a419
cmp byte [0x2e01b985], cl
je 0x2e00a3cd
test byte [0x2e01b9b8], 1
je 0x2e00a419
jmp 0x2e00a3f4
mov eax, dword [0x2e01b9a8]
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x2e00a419
mov ecx, dword [0x2e01b9b0]
mov eax, ecx
and eax, 1
xor edx, edx
cmp eax, ecx
jne 0x2e00a419
cmp edx, dword [0x2e01b9b4]
jne 0x2e00a419
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x2e01b994]
mov edx, dword [0x2e01b990]
push eax
push edi
push 0x2e00178c
push 0x2e0018c0
push ecx
push edx
call fcn.2e007df9
mov edi, dword [ebp - 8]
test edi, edi
je 0x2e00a436
push 0x65713730
push 0x2e001f1c
push 0x89f
push 0x2e001ac8
call fcn.2e00536c
cmp dword [ebp - 0x14], 0x102
je 0x2e00a458
push 0x706f6a6e
push 0x2e001f04
push 0x8a0
push 0x2e001ac8
call fcn.2e00536c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadIOPendingFlag]
test eax, eax
je 0x2e00a47a
cmp dword [ebp - 0x18], 0
jne 0x2e00a490
mov ecx, dword [ebx + 8]
push ecx
mov ecx, dword [ebp - 4]
push 1
call fcn.2e009ee1
test al, al
jne 0x2e00a669
mov edx, dword [ebp - 4]
mov esi, dword [edx]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x2e00a4ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x2e01b9d0]
jne 0x2e00a4ed
mov edi, dword [esi + 0x128]
mov ecx, dword [esi + 0x60]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2e00a4ed
mov ecx, esi
call fcn.2e008afe
cmp eax, edi
je 0x2e00a50d
push 0x6730706d
push 0x2e001974
push 0xe81
push 0x2e001ac8
call fcn.2e00536c
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebx + 8]
je 0x2e00a2fe
push 0x67307068
push 0x2e001f3c
push 0x8b7
jmp 0x2e00a2f4
mov esi, dword [esi + 0x128]
jmp 0x2e00a4f0
test al, al
je 0x2e00a67e
test ecx, ecx
jne 0x2e00a53d
push 0x65713732
push 0x2e001ef0
push 0x8c3
push 0x2e001ac8
call fcn.2e00536c
mov edi, dword [ebp - 8]
cmp dword [0x2e01b9bc], 0
je 0x2e00a5ba
cmp byte [0x2e01b985], 0
mov al, byte [0x2e01b9c0]
je 0x2e00a567
cmp al, 4
jae 0x2e00a55c
test al, al
jne 0x2e00a5ba
test byte [0x2e01b9b8], 1
jne 0x2e00a596
jmp 0x2e00a5ba
cmp al, 4
jae 0x2e00a56f
test al, al
jne 0x2e00a5ba
mov eax, dword [0x2e01b9a8]
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x2e00a5ba
mov ecx, dword [0x2e01b9b0]
mov eax, ecx
and eax, 1
xor edx, edx
cmp eax, ecx
jne 0x2e00a5ba
cmp edx, dword [0x2e01b9b4]
jne 0x2e00a5ba
mov edx, dword [ebp - 0xc]
mov eax, dword [0x2e01b994]
mov ecx, dword [0x2e01b990]
push edx
push edi
push 0x2e00178c
push 0x2e001860
push eax
push ecx
call fcn.2e007df9
mov edi, dword [ebp - 8]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
push edx
mov edx, dword [ebp - 0x10]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.2e009f7a
mov esi, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x2e00a635
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x2e01b9d0]
jne 0x2e00a635
mov eax, dword [esi + 0x128]
mov ecx, dword [esi + 0x60]
push eax
push ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2e00a635
mov ecx, esi
call fcn.2e008afe
cmp eax, dword [ebp - 0x14]
je 0x2e00a676
push 0x6730706d
push 0x2e001974
push 0xe81
push 0x2e001ac8
call fcn.2e00536c
mov esi, edi
cmp esi, dword [ebx + 8]
je 0x2e00a655
push 0x67307069
push 0x2e001f3c
push 0x8d4
push 0x2e001ac8
call fcn.2e00536c
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x2e00a2fe
test eax, eax
jne 0x2e00a720
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov esi, dword [esi + 0x128]
jmp 0x2e00a637
cmp dword [0x2e01b9bc], 0
je 0x2e00a6fb
cmp byte [0x2e01b985], 0
mov al, byte [0x2e01b9c0]
je 0x2e00a6a8
cmp al, 4
jae 0x2e00a69d
test al, al
jne 0x2e00a6fb
test byte [0x2e01b9b8], 1
jne 0x2e00a6d7
jmp 0x2e00a6fb
cmp al, 4
jae 0x2e00a6b0
test al, al
jne 0x2e00a6fb
mov eax, dword [0x2e01b9a8]
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x2e00a6fb
mov ecx, dword [0x2e01b9b0]
mov eax, ecx
and eax, 1
xor edx, edx
cmp eax, ecx
jne 0x2e00a6fb
cmp edx, dword [0x2e01b9b4]
jne 0x2e00a6fb
mov edx, dword [ebp - 0xc]
mov eax, dword [0x2e01b994]
mov ecx, dword [0x2e01b990]
push edx
push edi
push 0x2e00178c
push 0x2e001870
push eax
push ecx
call fcn.2e007df9
mov edi, dword [ebp - 8]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push edx
push edi
push eax
call fcn.2e009742
mov esi, eax
cmp esi, 1
je 0x2e00a2fe
cmp esi, 2
jne 0x2e00a809
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], 0
call fcn.2e00bfcc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x2e00a7da
mov edx, dword [ecx]
mov eax, dword [ebx + 8]
mov edx, dword [edx + 0x74]
push eax
call edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x2e00a7ac
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x2e01b9d0]
jne 0x2e00a7ac
mov eax, dword [esi + 0x128]
mov edx, dword [esi + 0x60]
push eax
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2e00a7ac
mov ecx, esi
call fcn.2e008afe
cmp eax, dword [ebp - 0x1c]
je 0x2e00a801
push 0x6730706d
push 0x2e001974
push 0xe81
push 0x2e001ac8
call fcn.2e00536c
mov esi, edi
cmp esi, dword [ebx + 8]
je 0x2e00a7cc
push 0x6730706a
push 0x2e001f3c
push 0x91c
push 0x2e001ac8
call fcn.2e00536c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 4]
mov eax, dword [ebx + 8]
push eax
mov ecx, esi
call fcn.2e00998b
cmp eax, 1
je 0x2e00a2fe
test eax, eax
jne 0x2e00a723
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov esi, dword [esi + 0x128]
jmp 0x2e00a7ae
test esi, esi
je 0x2e00a82b
cmp esi, 3
je 0x2e00a82b
push 0x3434716e
push 0x2e001ec4
push 0x903
push 0x2e001ac8
call fcn.2e00536c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4