Function at 0x1002a150
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 0x10
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1002a174
pop esi
mov eax, 4
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0x4e70]
xor ecx, ecx
push ebx
cmp eax, ebp
push edi
jne 0x1002a399
mov edi, dword [esi + 0x4e2e]
mov ebx, dword [esi + 0x4e32]
cmp edi, ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
je 0x1002a314
mov dword [esi + 0x3d00], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esi + 0x3d04], ebp
cmp dword [esp + 0x14], ebp
jne 0x1002a391
call fcn.10029710
cmp edi, 0xffffffff
jne 0x1002a1f6
cmp ebx, ebp
je 0x1002a23b
cmp dword [esi + 0x38], ebp
je 0x1002a1e7
push esi
lea ecx, [ebx + 1]
push ebp
push ecx
call fcn.10031d20
add esp, 0xc
jmp 0x1002a227
push 0x1006161c
lea edx, [ebx + 1]
push ebp
push edx
push 1
push ebp
jmp 0x1002a21f
cmp dword [esi + 0x38], ebp
je 0x1002a20e
lea eax, [edi + 1]
push esi
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.10031d20
add esp, 0xc
jmp 0x1002a227
lea edx, [edi + 1]
push 0x1006161c
lea eax, [ebx + 1]
push edx
push eax
push 1
push 1
call fcn.1002fa40
add esp, 0x14
cmp eax, 1
je 0x1002a23b
mov ecx, 0x30
cmp eax, 1
je 0x1002a1ba
jmp 0x1002a391
call fcn.10029750
cmp eax, 0xffffffff
jne 0x1002a25b
push 0x1006161c
push ebp
push ebp
push ebp
push 2
call fcn.1002fa40
add esp, 0x14
xor ecx, ecx
jmp 0x1002a231
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x4edc], ebx
push ecx
call fcn.1002a5a0
add esp, 4
cmp eax, ebp
jle 0x1002a2fb
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0x4e3e]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jae 0x1002a296
inc ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x1002a1ba
cmp edi, 0xffffffff
jne 0x1002a2aa
mov eax, ecx
cdq
mov dword [esi + 0x4e3e], eax
mov dword [esi + 0x4e42], edx
lea edi, [esi + 0x14f64]
lea edx, [esi + 0x15764]
push edi
push edx
mov dword [esi + 0x4e70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x15f88]
push eax
push edi
call fcn.10031a90
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esi + 0x3d00], ebp
mov dword [esi + 0x3d04], ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x1002a1ba
push 0x1006161c
push ebp
push ebp
push ebp
push 3
call fcn.1002fa40
add esp, 0x14
xor ecx, ecx
jmp 0x1002a1ba
mov dword [esi + 0x3d00], ebp
push 1
mov dword [esi + 0x3d04], ebp
call fcn.1002a5a0
mov ecx, dword [esi + 0x4e3e]
add esp, 4
cmp eax, ecx
je 0x1002a355
push 0x1006161c
push ebp
push ebp
push ebp
push 3
call fcn.1002fa40
add esp, 0x14
pop edi
mov ecx, 3
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
lea edi, [esi + 0x14f64]
lea ecx, [esi + 0x15764]
push edi
mov dword [esi + 0x3d00], ebp
push ecx
mov dword [esi + 0x3d04], ebp
mov dword [esi + 0x4e70], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esi + 0x15f88]
push edx
push edi
call fcn.10031a90
add esp, 8
jmp 0x1002a399
cmp ecx, ebp
jne 0x1002a432
mov eax, dword [esi + 0x3d00]
mov ecx, dword [esi + 0x4e3e]
cmp eax, ecx
jae 0x1002a42d
cmp dword [esi + 0x3d04], ebp
jl 0x1002a42d
jg 0x1002a3bd
mov ecx, eax
cmp ecx, ebp
jb 0x1002a42d
mov edx, dword [esi + 0x4ec4]
push eax
lea eax, [esi + 0x4ea2]
lea ecx, [esi + 0x4e74]
push eax
mov eax, dword [esi + 0x4ecc]
push ecx
push edx
push eax
call fcn.10029970
mov ecx, dword [esi + 0x3d00]
mov edx, dword [esi + 0x4ec4]
mov eax, dword [esi + 0x4ecc]
push ecx
push edx
push eax
call fcn.10029850
add esp, 0x20
test eax, eax
je 0x1002a346
mov ecx, dword [esi + 0x3d00]
pop edi
add ecx, 1
pop ebx
mov dword [esi + 0x3d00], ecx
mov eax, dword [esi + 0x3d04]
adc eax, ebp
xor ecx, ecx
mov dword [esi + 0x3d04], eax
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
mov ecx, 2
pop edi
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret