Function at 0x7002e30b
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x7014bede
call fcn.70055494
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], 4
call fcn.7006159c
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x7002e33d
mov dword [ebp + 8], 0x80004005
jmp 0x7002e7f3
or byte [esi + 0x56], 2
push dword [0x7016a5f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test byte [esi + 0x54], 0x20
mov dword [esi + 0x50], eax
je 0x7002e3da
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.700e1dcd
test eax, eax
jge 0x7002e38c
push dword [ebp + 8]
push 0x96b
push 0x70007088
push 0x80004005
call fcn.700e1dcd
add esp, 0x10
jmp 0x7002e564
mov edi, dword [esi + 0xa0]
push 3
push 0
mov ecx, edi
call fcn.700e1dcd
push 0xe
push 0
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.700e1dcd
push 0
push ebx
push 0
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.700e1dcd
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
push esi
call fcn.7002d98a
test eax, eax
mov dword [ebp + 8], eax
jl 0x7002e7f3
jmp 0x7002e7ff
mov ecx, dword [esi + 0xa0]
call fcn.700522f5
test eax, eax
mov dword [ebp + 8], eax
jl 0x7002e7f3
mov ecx, dword [esi + 0xa0]
call fcn.7005220d
test eax, eax
mov dword [ebp + 8], eax
jl 0x7002e7f3
mov ecx, dword [esi + 0xa0]
push 0x25
push ebx
call fcn.700e1dcd
mov edi, dword [esi + 0xa0]
mov ecx, edi
mov dword [esi + 0x110], eax
call fcn.7002b3f2
push 0x20
push ebx
mov ecx, edi
mov dword [esi + 0x10c], eax
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push 0x1b
push ebx
call fcn.700e1dcd
mov edi, eax
test edi, edi
je 0x7002e4c5
cmp word [edi], 0
je 0x7002e4c5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, esi
call fcn.700e1dcd
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], eax
jge 0x7002e470
mov dword [ebp + 8], eax
jmp 0x7002e493
push eax
push 0x80
push 4
push eax
push ebx
push 0xc0000000
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x7002e4bb
call dword [sym.imp.kernel32.dll_GetLastError]
push 0xffffffffffffffff
push edi
push eax
push 0x1460
push 0xfffffffffffffffb
call fcn.700e1dcd
push 0x70007088
push 0x40eda
call fcn.70056dd4
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
call fcn.700e1dcd
pop ecx
mov ecx, dword [esi + 0xa0]
push 6
push ebx
call fcn.700e1dcd
push eax
lea ecx, [esi + 0xa4]
call fcn.700e1dcd
test byte [esi + 0xa8], bl
je 0x7002e4f3
mov dword [ebp + 8], 0x8007000e
jmp 0x7002e7f3
mov ecx, dword [esi + 0xa0]
push 0
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push ebx
mov edi, eax
call fcn.700e1dcd
neg eax
sbb eax, eax
neg eax
neg edi
sbb edi, edi
and edi, 2
or eax, edi
mov dword [ebp - 0x14], eax
je 0x7002e56c
test byte [esi + 0x54], 0x20
jne 0x7002e56c
mov ecx, dword [esi + 0xa0]
push ebx
push 3
push ebx
call fcn.700e1dcd
test eax, eax
jne 0x7002e56c
cmp dword [ebp - 0x14], 3
jne 0x7002e549
or dword [esi + 0x54], 8
jmp 0x7002e570
and dword [esi + 0x54], 0xfffffff7
push 0x98c
push 0x70007088
push 0x80004005
call fcn.700e1dcd
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x7002e7f3
and dword [esi + 0x54], 0xfffffff7
mov eax, dword [esi + 0x54]
test al, 8
je 0x7002e57f
or eax, 4
mov dword [esi + 0x54], eax
jmp 0x7002e59f
mov ecx, dword [esi + 0xa0]
call fcn.7002b230
push eax
call fcn.700e1dcd
test eax, eax
pop ecx
je 0x7002e59b
or dword [esi + 0x54], 4
jmp 0x7002e59f
and dword [esi + 0x54], 0xfffffffb
test byte [esi + 0x54], 8
jne 0x7002e798
mov edi, dword [esi + 0xa0]
and dword [ebp - 0x10], 0
push 9
push 0
mov ecx, edi
call fcn.700e1dcd
test eax, eax
jne 0x7002e60d
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 8]
movsx eax, word [eax + 0x138]
mov dword [ebp - 0x18], eax
movsx eax, ax
cmp eax, ebx
je 0x7002e60a
jle 0x7002e5f1
cmp eax, 3
jg 0x7002e5f1
mov ecx, edi
call fcn.7002b230
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x10], eax
jmp 0x7002e60d
and dword [ebp - 0x10], 0
mov ecx, edi
call fcn.7002b230
test eax, eax
jne 0x7002e60d
push 0x963
jmp 0x7002e552
mov dword [ebp - 0x10], ebx
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x7002e6a3
test byte [esi + 0x56], 8
jne 0x7002e6a3
push esi
call fcn.7002c58a
cmp dword [esi + 0x84], edi
mov dword [ebp + 8], eax
jne 0x7002e798
mov ecx, dword [esi + 0xa0]
push ebx
push 3
push ebx
mov dword [ebp - 0x10], edi
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 4
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 0xb
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 0xf
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 0x16
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 0x17
push ebx
call fcn.700e1dcd
mov ecx, dword [esi + 0xa0]
push ebx
push 0x1e
push ebx
call fcn.700e1dcd
cmp dword [ebp + 8], edi
jl 0x7002e7f3
test byte [esi + 0x54], 4
je 0x7002e707
lea ecx, [ebp - 0x2c]
call fcn.70030a3b
and dword [ebp - 4], 0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.700e1dcd
test eax, eax
jl 0x7002e7ab
mov ecx, dword [esi + 0xa0]
push ebx
push 3
push ebx
call fcn.700e1dcd
test eax, eax
je 0x7002e6fb
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.700e1dcd
test eax, eax
je 0x7002e7b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.70030c28
mov edi, dword [esi + 0xa0]
push 3
push 0
mov ecx, edi
call fcn.700e1dcd
push 0xe
push 0
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.700e1dcd
push 0
push ebx
push 0
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.700e1dcd
push eax
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.7002b230
push eax
push esi
call fcn.7002d98a
test eax, eax
mov dword [ebp + 8], eax
jge 0x7002e78e
mov eax, dword [esi + 0x54]
test eax, 0x80000
jne 0x7002e7f3
test al, 8
jne 0x7002e779
cmp dword [ebp - 0x14], 0
je 0x7002e779
cmp dword [ebp - 0x14], 3
jne 0x7002e54d
or eax, 0xc
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test al, 8
jne 0x7002e7e0
cmp word [ebp - 0x18], 4
je 0x7002e7f3
test al, 0x20
jne 0x7002e7f3
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], 0
jne 0x7002e60d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push dword [ebp + 8]
push 0x96b
jmp 0x7002e7bd
push dword [ebp + 8]
push 0x98b
push 0x70007088
push 0x80004005
call fcn.700e1dcd
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
call fcn.70030c28
jmp 0x7002e7f3
mov ecx, dword [esi + 0xa0]
push ebx
push 3
push ebx
call fcn.700e1dcd
test eax, eax
jne 0x7002e798
and dword [esi + 0x54], 0xfffffff7
push 0
push esi
call fcn.7002c848
mov eax, dword [ebp + 8]
jmp 0x7002e79a