Function at 0x10022e70
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100fd12d
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x1014f644]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.10074969
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 4
push edi
push 0x3e8
push ecx
push edx
call fcn.1007ac20
mov ecx, eax
movzx eax, word [esp + 0x34]
mov esi, edx
cdq
add ecx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xf0]
adc esi, edx
imul eax, eax, 0x3e8
cdq
mov dword [esp + 0x2c], eax
mov eax, edx
mov edx, dword [ebx]
sub ecx, dword [edx + 0x198]
sbb esi, dword [edx + 0x19c]
cmp esi, eax
jl 0x10023044
jg 0x10022f30
cmp ecx, dword [esp + 0x2c]
jb 0x10023044
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
sub esp, 0x1c
mov dword [esp + 0x140], edi
mov ecx, esp
mov dword [esp + 0x84], esp
push edi
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
sub esp, 0x1c
mov byte [esp + 0x15c], 1
mov eax, esp
mov dword [esp + 0x80], esp
push 0x384
push eax
call fcn.10035c00
add esp, 8
mov dword [esp + 0x15c], 0xffffffff
mov ecx, dword [ebx]
push edi
call fcn.10022a20
mov eax, dword [ebx]
add eax, 0x148
lea esi, [esp + 0x4c]
call fcn.10025a70
sub esp, 8
mov dword [esp + 0x110], 2
mov ecx, esp
mov dword [esp + 0x34], esp
call fcn.10033720
mov ebx, dword [ebx]
cmp dword [ebx + 0x154], 1
push ebx
sete dl
xor cl, cl
call fcn.10022020
mov dword [esp + 0x108], 0xffffffff
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x10023029
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10023029
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10023029
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [0x1015a808]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x100235ad
lea eax, [edx + 0xb0]
cmp dword [edx + 0x1cc], edi
je 0x10023058
lea eax, [edx + 0x1bc]
push 0xffffffffffffffff
push edi
mov esi, 0xf
push eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], edi
mov byte [esp + 0xcc], 0
call fcn.10006dc0
mov dword [esp + 0x108], 3
mov eax, dword [ebx]
add eax, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x1002309b
mov eax, dword [eax]
push 0x10133e90
push eax
call fcn.10076aba
add esp, 8
test eax, eax
mov eax, dword [ebx]
sete byte [esp + 0x17]
cmp dword [eax + 0x1e8], edi
jne 0x100230c1
add eax, 0xcc
jmp 0x100230c6
add eax, 0x1d8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], edi
mov byte [esp + 0xb0], 0
call fcn.10006dc0
cmp byte [esp + 0x17], 0
mov byte [esp + 0x108], 4
je 0x10023132
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
call fcn.10006dc0
mov byte [esp + 0x108], 5
lea eax, [esp + 0x4c]
mov dword [esp + 0x18], 1
jmp 0x10023165
push edi
push 0x1012f5e5
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
call fcn.100071e0
mov dword [esp + 0x108], 6
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], 2
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
call fcn.1000a250
mov dword [esp + 0x108], 7
test byte [esp + 0x18], 2
je 0x100231c0
and dword [esp + 0x18], 0xfffffffd
cmp dword [esp + 0x40], 0x10
jb 0x100231b3
mov edx, dword [esp + 0x2c]
push edx
call fcn.100719b6
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
mov byte [esp + 0x108], 9
test byte [esp + 0x18], 1
je 0x100231f0
cmp dword [esp + 0x60], 0x10
jb 0x100231e3
mov eax, dword [esp + 0x4c]
push eax
call fcn.100719b6
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
mov eax, dword [ebx]
add eax, 0x1f4
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10025b30
mov byte [esp + 0x108], 0xa
mov eax, dword [ebx]
mov ecx, dword [eax + 0xf8]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [esp + 0x24]
call fcn.10033480
mov dword [esp + 0x68], 0xc8
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
mov byte [esp + 0x108], 0xb
mov eax, dword [ebx]
cmp byte [eax + 0x204], 0
je 0x1002334a
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov byte [esp + 0x108], 0xc
cmp dword [eax + 0x218], edi
je 0x10023302
cmp byte [eax + 0x224], cl
je 0x10023294
add eax, 0x208
lea esi, [esp + 0x4c]
call fcn.1003d870
mov byte [esp + 0x108], 0xd
mov edi, eax
jmp 0x100232de
add eax, 0x208
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x100232a7
mov edx, dword [eax]
jmp 0x100232a9
mov edx, eax
mov ecx, dword [eax + 0x10]
add ecx, edx
cmp dword [eax + 0x14], esi
jb 0x100232b5
mov eax, dword [eax]
mov edx, dword [esp + 0x2c]
push edx
push ecx
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.10026840
mov byte [esp + 0x108], 0xe
lea edi, [esp + 0x4c]
lea esi, [esp + 0x2c]
call fcn.10025a30
lea esi, [esp + 0x4c]
mov byte [esp + 0x108], 0xc
call fcn.10025420
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor edi, edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ebx]
lea edx, [esp + 0xc8]
push edx
sub ecx, esi
push ecx
push esi
add eax, 0x1a0
push eax
lea ecx, [esp + 0x80]
call fcn.10039090
mov byte [esp + 0x17], al
mov byte [esp + 0x108], 0xb
cmp esi, edi
je 0x10023372
push esi
call fcn.100719b6
add esp, 4
jmp 0x10023372
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0xc8]
push ecx
add eax, 0x1a0
push eax
lea ecx, [esp + 0x78]
call fcn.10038eb0
mov byte [esp + 0x17], al
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x68]
push eax
lea esi, [esp + 0xe0]
mov dword [esp + 0x1c], edx
call fcn.10022950
sub esp, 0x1c
mov byte [esp + 0x124], 0xf
mov ecx, esp
mov dword [esp + 0x48], esp
push edi
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 0x1012f5e5
mov byte [ecx], 0
call fcn.100071e0
sub esp, 0x1c
mov byte [esp + 0x140], 0x10
mov edx, dword [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push ecx
call fcn.10035c00
sub esp, 0x14
mov ecx, esp
mov byte [esp + 0x15c], 0x11
mov dword [esp + 0x6c], esp
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x138]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push eax
mov byte [ecx], 0
call fcn.10006dc0
movzx ecx, byte [esp + 0x6b]
push ecx
mov byte [esp + 0x160], 0xf
mov ecx, dword [ebx]
call fcn.10022a20
mov eax, dword [ebx]
add eax, 0x148
lea esi, [esp + 0x4c]
call fcn.10025a70
sub esp, 8
mov byte [esp + 0x110], 0x12
mov ecx, esp
mov dword [esp + 0x34], esp
call fcn.10033720
mov ebx, dword [ebx]
cmp dword [ebx + 0x154], 1
mov cl, byte [esp + 0x1f]
sete dl
push ebx
call fcn.10022020
mov byte [esp + 0x108], 0xf
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x1002348a
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1002348a
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002348a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [0x1015a808]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ebx, 0x10
cmp dword [esp + 0xf0], ebx
jb 0x100234bf
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.100719b6
add esp, 4
mov esi, 0xf
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], edi
mov byte [esp + 0xdc], 0
cmp dword [esp + 0x80], ebx
jb 0x100234f0
mov edx, dword [esp + 0x6c]
push edx
call fcn.100719b6
add esp, 4
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
mov byte [esp + 0x108], 0x13
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x34]
lea esi, [esp + 0x24]
call fcn.10008400
mov eax, dword [esp + 0x20]
push eax
call fcn.100719b6
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x9c], esi
jb 0x10023548
mov ecx, dword [esp + 0x88]
push ecx
call fcn.100719b6
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], edi
mov byte [esp + 0x88], 0
cmp dword [esp + 0xb8], esi
jb 0x1002357e
mov edx, dword [esp + 0xa4]
push edx
call fcn.100719b6
add esp, 4
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
cmp dword [esp + 0xd4], esi
jb 0x100235ad
mov eax, dword [esp + 0xc0]
push eax
call fcn.100719b6
add esp, 4
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4