Function at 0x1001c280
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x1001c2af
cmp dword [eax + 0x1c], 0
je 0x1001c2af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
lea eax, [ebx + 0x62a8]
lea ecx, [ebx + 0x632c]
mov dword [ebx + 0x72c], eax
mov dword [ebx + 0x5ca4], eax
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x728], eax
mov dword [ebx + 0x5ca0], eax
mov dword [ebx + 0x73c], ecx
mov dword [ebx + 0x5cb4], ecx
mov dword [ebx + 0x738], ecx
mov dword [ebx + 0x5cb0], ecx
cmp dword [edx + 0x14], 0
jne 0x1001c715
cmp dword [edx], 2
jne 0x1001c448
cmp dword [edx + 4], 0
je 0x1001c448
mov esi, dword [ebx + 0x990c]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c375
mov dword [ebx + 0x5d84], eax
jmp 0x1001c417
mov edi, dword [esp + 0x14]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x6918]
mov edx, 0x200
mov dword [ecx], 0xffffffff
add ecx, 0x18
dec edx
jne 0x1001c390
lea esi, [eax + 0x6908]
push edi
push esi
call fcn.1001c1f0
add esp, 8
push 0x1001c0e0
push 0x18
push 0x200
push esi
call fcn.100267c8
add esp, 0x10
lea eax, [ebx + 0x62a8]
xor edx, edx
lea edi, [ebx + 0x62b8]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
cmp dword [esi + 4], 0xffffffff
jne 0x1001c403
mov ecx, 0xffffffff
cmp dword [esi + 0xc], edx
je 0x1001c403
mov eax, dword [esi + 0x10]
inc edi
add esi, 0x18
inc byte [eax + ebx + 0x62a7]
mov al, byte [esi - 4]
mov byte [edi - 1], al
cmp dword [esi + 4], ecx
je 0x1001c3e5
mov dword [ebp + 0x5d84], 0
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
lea eax, [ebx + 0x62a8]
mov dword [ebx + 0x728], eax
mov dword [ebx + 0x5ca0], eax
mov dword [ebx + 0x724], eax
mov dword [ebx + 0x5c9c], eax
jmp 0x1001c6fb
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 0
jne 0x1001c500
mov esi, dword [ebx + 0x9908]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c4bc
mov dword [ebx + 0x5d84], eax
jmp 0x1001c4ea
lea eax, [ebx + 0x62a8]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1001c130
add esp, 8
mov dword [ebp + 0x5d84], eax
test eax, eax
mov dword [ebx + 0x5d84], eax
jne 0x1001c4ea
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
je 0x1001c5a2
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov esi, dword [ebx + 0x990c]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c566
mov dword [ebx + 0x5d84], eax
jmp 0x1001c594
lea eax, [ebx + 0x62a8]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1001c130
add esp, 8
mov dword [ebp + 0x5d84], eax
test eax, eax
mov dword [ebx + 0x5d84], eax
jne 0x1001c594
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
lea eax, [ebx + 0x62a8]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x724], eax
mov dword [ebx + 0x5c9c], eax
cmp dword [edx], 1
jbe 0x1001c6fb
lea ebp, [ebx + 0x62c9]
mov esi, dword [ebx + 0x990c]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ecx, 0x600
mov edi, edx
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
xor eax, eax
add edi, 0x8108
mov ecx, 0x600
rep stosd dword es:[edi], eax
push 0x1001c240
push 0x18
push 0x100
push edx
call fcn.100267c8
lea ecx, [esp + 0x24]
add esp, 0x10
push ecx
call fcn.1001bd10
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [ecx + 0x5d84], eax
je 0x1001c63a
mov dword [ebx + 0x5d84], eax
jmp 0x1001c6d5
mov esi, dword [esp + 0x14]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6918]
mov ecx, 0x200
mov dword [edx], 0xffffffff
add edx, 0x18
dec ecx
jne 0x1001c655
lea edi, [eax + 0x6908]
push esi
push edi
call fcn.1001c1f0
add esp, 8
push 0x1001c0e0
push 0x18
push 0x200
push edi
call fcn.100267c8
add esp, 0x10
xor ecx, ecx
lea esi, [ebp + 0x10]
mov dword [ebp], ecx
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x1001c6bd
mov edx, 0xffffffff
cmp dword [edi + 0xc], ecx
je 0x1001c6bd
mov eax, dword [edi + 0x10]
inc esi
add edi, 0x18
inc byte [eax + ebp - 1]
mov al, byte [edi - 4]
mov byte [esi - 1], al
cmp dword [edi + 4], edx
je 0x1001c6a2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x5d84], 0
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
mov dword [ebx + 0x72c], ebp
mov dword [ebx + 0x5ca4], ebp
mov dword [ebx + 0x728], ebp
mov dword [ebx + 0x5ca0], ebp
push 1
push 1
call fcn.1001b070
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001cac2
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 0
je 0x1001cac0
cmp dword [eax], 2
jne 0x1001c7fb
cmp dword [eax + 4], 0
je 0x1001c7fb
mov esi, dword [ebx + 0x9914]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c79c
mov dword [ebx + 0x5d84], eax
jmp 0x1001c7ca
lea eax, [ebx + 0x632c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1001c130
add esp, 8
mov dword [ebp + 0x5d84], eax
test eax, eax
mov dword [ebx + 0x5d84], eax
jne 0x1001c7ca
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
lea eax, [ebx + 0x632c]
mov dword [ebx + 0x738], eax
mov dword [ebx + 0x5cb0], eax
mov dword [ebx + 0x734], eax
mov dword [ebx + 0x5cac], eax
jmp 0x1001caaa
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 0
jne 0x1001c8b3
mov esi, dword [ebx + 0x9910]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c86f
mov dword [ebx + 0x5d84], eax
jmp 0x1001c89d
lea eax, [ebx + 0x632c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1001c130
add esp, 8
mov dword [ebp + 0x5d84], eax
test eax, eax
mov dword [ebx + 0x5d84], eax
jne 0x1001c89d
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
je 0x1001c955
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov esi, dword [ebx + 0x9914]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ebp, eax
mov edi, edx
mov ecx, 0x600
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x8108]
xor eax, eax
mov ecx, 0x600
push 0x1001c240
rep stosd dword es:[edi], eax
push 0x18
push 0x100
push edx
call fcn.100267c8
lea eax, [esp + 0x24]
add esp, 0x10
push eax
call fcn.1001bd10
add esp, 4
mov dword [ebp + 0x5d84], eax
test eax, eax
je 0x1001c919
mov dword [ebx + 0x5d84], eax
jmp 0x1001c947
lea eax, [ebx + 0x632c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.1001c130
add esp, 8
mov dword [ebp + 0x5d84], eax
test eax, eax
mov dword [ebx + 0x5d84], eax
jne 0x1001c947
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
lea eax, [ebx + 0x632c]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x734], eax
mov dword [ebx + 0x5cac], eax
cmp dword [edx], 1
jbe 0x1001caaa
lea ebp, [ebx + 0x643c]
mov esi, dword [ebx + 0x9914]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6908]
mov ecx, 0x600
mov edi, edx
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
xor eax, eax
add edi, 0x8108
mov ecx, 0x600
rep stosd dword es:[edi], eax
push 0x1001c240
push 0x18
push 0x100
push edx
call fcn.100267c8
lea ecx, [esp + 0x24]
add esp, 0x10
push ecx
call fcn.1001bd10
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [ecx + 0x5d84], eax
je 0x1001c9ed
mov dword [ebx + 0x5d84], eax
jmp 0x1001ca88
mov esi, dword [esp + 0x14]
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [eax + 0x6918]
mov ecx, 0x200
mov dword [edx], 0xffffffff
add edx, 0x18
dec ecx
jne 0x1001ca08
lea edi, [eax + 0x6908]
push esi
push edi
call fcn.1001c1f0
add esp, 8
push 0x1001c0e0
push 0x18
push 0x200
push edi
call fcn.100267c8
add esp, 0x10
xor edx, edx
lea ecx, [ebp + 0x10]
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
cmp dword [edi + 4], 0xffffffff
jne 0x1001ca70
mov esi, 0xffffffff
cmp dword [edi + 0xc], edx
je 0x1001ca70
mov eax, dword [edi + 0x10]
inc ecx
add edi, 0x18
inc byte [eax + ebp - 1]
mov al, byte [edi - 4]
mov byte [ecx - 1], al
cmp dword [edi + 4], esi
je 0x1001ca55
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x5d84], 0
mov dword [ebx + 0x5d84], 0
mov eax, dword [ebx + 0x5d84]
test eax, eax
jne 0x1001cac2
mov dword [ebx + 0x73c], ebp
mov dword [ebx + 0x5cb4], ebp
mov dword [ebx + 0x738], ebp
mov dword [ebx + 0x5cb0], ebp
push 2
push 1
call fcn.1001b070
add esp, 8
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001cac2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret