Function at 0x4410f9
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x68]
xor ebx, ebx
cmp edi, ebx
mov dword [esi], vtable.hkpWorld.0
je 0x441134
mov eax, dword [0x4c6060]
push eax
call ebp
mov ecx, dword [eax + 0x54]
cmp ecx, dword [eax + 0x34]
jl 0x441128
push edi
push 3
mov ecx, eax
call fcn.004022b0
jmp 0x441134
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], 1
mov dword [edi], edx
mov dword [eax + 0x50], edi
mov ecx, dword [esi + 0x4c]
or edi, 0xffffffff
cmp word [ecx + 4], bx
je 0x441155
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x441155
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0xa8]
cmp ecx, ebx
mov dword [esi + 0x4c], ebx
je 0x44116f
push 1
call fcn.004453b0
mov dword [esi + 0xa8], ebx
mov ecx, dword [esi + 0xb4]
cmp ecx, ebx
je 0x441186
push 1
call fcn.004453b0
mov dword [esi + 0xb4], ebx
mov ecx, dword [esi + 0xac]
cmp ecx, ebx
je 0x44119d
push 1
call fcn.004453b0
mov dword [esi + 0xac], ebx
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
je 0x4411b4
push 1
call fcn.004453b0
mov dword [esi + 0xb0], ebx
mov ecx, dword [esi + 0x50]
cmp ecx, ebx
je 0x4411d9
cmp word [ecx + 4], bx
je 0x4411d6
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x4411d6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x50], ebx
cmp dword [esi + 0xe8], ebx
jle 0x4411f9
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.0043f350
cmp dword [esi + 0xe8], ebx
jg 0x4411e1
cmp dword [esi + 0x2c], ebx
jle 0x441221
mov edi, edi
mov edx, dword [esi + 0x28]
mov eax, dword [edx]
cmp dword [eax + 0x4c], ebx
je 0x441221
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x17]
push edx
mov ecx, esi
call fcn.00440250
cmp dword [esi + 0x2c], ebx
jg 0x441200
cmp dword [esi + 0x38], ebx
jle 0x441242
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x17]
push ecx
mov ecx, esi
call fcn.00440250
cmp dword [esi + 0x38], ebx
jg 0x441226
cmp byte [esi + 0xb8], bl
jne 0x441277
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edx*4 - 4]
push ecx
push esi
call fcn.004483a0
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edx*4 - 4]
add esp, 8
cmp ecx, ebx
je 0x441274
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
add dword [esi + 0x2c], edi
mov ecx, dword [esi + 0x24]
push ecx
lea edx, [esp + 0x17]
push edx
mov ecx, esi
call fcn.00440250
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], ebx
cmp dword [eax + 0x4c], ebx
jle 0x4412af
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x17]
push ecx
mov ecx, esi
call fcn.00440250
mov edx, dword [esi + 0x20]
cmp dword [edx + 0x4c], ebx
jg 0x441292
mov eax, dword [esi + 0x20]
push eax
push esi
call fcn.004483a0
mov ecx, dword [esi + 0x20]
add esp, 8
cmp ecx, ebx
je 0x4412cb
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push esi
mov dword [esi + 0x20], ebx
call fcn.0044ca80
mov ecx, dword [esi + 0x54]
add esp, 4
cmp word [ecx + 4], bx
je 0x4412f5
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x4412f5
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x54], ebx
cmp word [ecx + 4], bx
je 0x441316
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x441316
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [esi + 0x58]
cmp edi, ebx
mov dword [esi + 0x74], ebx
je 0x44135c
mov ecx, edi
call fcn.00481260
mov ecx, dword [0x4c6060]
push ecx
call ebp
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x34]
jl 0x441347
push edi
push 0xb
mov ecx, eax
call fcn.004022b0
jmp 0x44135c
mov ecx, dword [eax + 0x90]
add dword [eax + 0x94], 1
mov dword [edi], ecx
mov dword [eax + 0x90], edi
mov ecx, dword [esi + 0x18c]
cmp ecx, ebx
je 0x441386
cmp word [ecx + 4], bx
je 0x441386
or edi, 0xffffffff
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x441389
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x441389
or edi, 0xffffffff
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x441398
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x60]
cmp ecx, ebx
je 0x4413a7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
je 0x4413b6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x70]
cmp word [ecx + 4], bx
je 0x4413d4
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x4413d4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x78]
cmp word [ecx + 4], bx
je 0x4413f2
add word [ecx + 6], di
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x4413f2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x6c]
mov edi, dword [ecx + 0x6c]
cmp edi, ebx
je 0x441425
mov edx, dword [0x4c6060]
push edx
call ebp
mov ecx, dword [eax + 0x4c]
cmp ecx, dword [eax + 0x34]
jl 0x441419
push edi
push 2
mov ecx, eax
call fcn.004022b0
jmp 0x441425
mov edx, dword [eax + 0x48]
add dword [eax + 0x4c], 1
mov dword [edi], edx
mov dword [eax + 0x48], edi
mov edi, dword [esi + 0x6c]
cmp edi, ebx
je 0x441454
mov eax, dword [0x4c6060]
push eax
call ebp
mov ecx, dword [eax + 0x74]
cmp ecx, dword [eax + 0x34]
jl 0x441448
push edi
push 7
mov ecx, eax
call fcn.004022b0
jmp 0x441454
mov edx, dword [eax + 0x70]
add dword [eax + 0x74], 1
mov dword [edi], edx
mov dword [eax + 0x70], edi
mov ecx, dword [esi + 8]
cmp word [ecx + 4], bx
je 0x441473
add word [ecx + 6], 0xffff
movzx eax, word [ecx + 6]
cmp ax, bx
jne 0x441473
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov edi, dword [esi + 0x7c]
cmp edi, ebx
je 0x4414a9
mov ecx, edi
call fcn.00451c20
mov eax, dword [0x4c6060]
push eax
call ebp
mov ecx, dword [eax + 0x6c]
cmp ecx, dword [eax + 0x34]
jl 0x44149d
push edi
push 6
mov ecx, eax
call fcn.004022b0
jmp 0x4414a9
mov edx, dword [eax + 0x68]
add dword [eax + 0x6c], 1
mov dword [edi], edx
mov dword [eax + 0x68], edi
mov eax, dword [esi + 0x188]
test eax, eax
js 0x4414da
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x180]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x17c]
test eax, eax
js 0x44150b
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x174]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x170]
test eax, eax
js 0x44153c
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x168]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x164]
test eax, eax
js 0x44156d
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x15c]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x158]
test eax, eax
js 0x44159e
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x150]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x14c]
test eax, eax
js 0x4415cf
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x144]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x140]
test eax, eax
js 0x441600
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x138]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x134]
test eax, eax
js 0x441631
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x12c]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x128]
test eax, eax
js 0x441662
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x120]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x11c]
test eax, eax
js 0x441693
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x114]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x110]
test eax, eax
js 0x4416c4
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x108]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x104]
test eax, eax
js 0x4416f5
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0xfc]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0xf8]
test eax, eax
js 0x441726
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0xf0]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0xec]
test eax, eax
js 0x441757
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0xe4]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x48]
test eax, eax
js 0x441782
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x40]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x3c]
test eax, eax
js 0x4417ad
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x34]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esi + 0x30]
test eax, eax
js 0x4417d8
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [0x4c6060]
push eax
call ebp
mov edx, dword [esi + 0x28]
push 0x17
lea ecx, [edi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
mov dword [esi], vtable.hkBaseObject.0
pop esi
pop ebp
pop ebx
pop ecx
ret