Function at 0x1002b890
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x10063c04]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1002b8b4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x348]
cmp eax, ebx
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
jne 0x1002b8f9
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push eax
push 2
push 0x71
call fcn.10033300
add esp, 8
push eax
push 0xb
call fcn.10028a10
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call fcn.1002ee40
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1002b92d
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push ecx
push 2
push 0x6c
call fcn.10033300
add esp, 8
push eax
push edi
call fcn.10028a10
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x14f48]
cmp eax, ebx
je 0x1002b946
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x14f48], ebx
mov eax, dword [esi + 0x15fac]
cmp eax, ebx
je 0x1002b95f
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x15fac], ebx
push 1
call fcn.1002eff0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x3d14], eax
je 0x1002b9a2
mov edx, dword [ebp + 0x28]
push edx
push 2
push 0x72
call fcn.10033300
add esp, 8
push eax
mov eax, dword [esi + 0x3d14]
push eax
call fcn.10028a10
add esp, 0xc
mov dword [ebp + 0x4c], ebx
mov eax, dword [esi + 0x3d14]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x4ed8]
or edi, 0xffffffff
cmp ecx, ebx
mov eax, 0xfffffffe
mov edx, edi
je 0x1002ba85
cmp eax, 0xfffffffe
jne 0x1002ba56
cmp edx, edi
jne 0x1002ba56
call fcn.10029710
mov ecx, dword [esi + 0x4edc]
mov eax, dword [esi + 0x4e2e]
cmp ecx, eax
je 0x1002ba0d
cmp dword [esi + 0x38], ebx
je 0x1002b9f2
push esi
push edi
push ebx
call fcn.10031d20
add esp, 0xc
jmp 0x1002ba04
push 0x1006161c
push edi
push ebx
push 1
push ebx
call fcn.1002fa40
add esp, 0x14
cmp eax, 1
jne 0x1002babd
call fcn.100297a0
test eax, eax
jne 0x1002ba44
call fcn.10029750
test eax, eax
je 0x1002ba44
push 1
call fcn.10028c50
add esp, 4
cmp edx, ebx
jl 0x1002ba44
jg 0x1002ba33
cmp eax, ebx
jb 0x1002ba44
mov ecx, dword [esi + 0x4e2e]
mov dword [esi + 0x4edc], ecx
jmp 0x1002b9ba
mov dword [esi + 0x4edc], edi
mov eax, 0xfffffffe
mov edx, edi
jmp 0x1002b9ba
cmp edx, ebx
jl 0x1002bab0
jg 0x1002ba60
cmp eax, ebx
jb 0x1002bab0
add eax, 0x16
push ebx
adc edx, ebx
push edx
mov edx, dword [esi + 0x3d08]
push eax
push edx
call fcn.100348d0
mov eax, dword [esi + 0x4e2e]
add esp, 0x10
mov dword [esi + 0x4edc], eax
jmp 0x1002bab0
push 1
call fcn.10028c50
add esp, 4
cmp edx, ebx
jl 0x1002babd
jg 0x1002ba99
cmp eax, ebx
jb 0x1002babd
mov ecx, dword [esi + 0x3d08]
add eax, 0x16
adc edx, ebx
push ebx
push edx
push eax
push ecx
call fcn.100348d0
add esp, 0x10
xor edi, edi
mov di, word [esi + 0x4e1c]
cmp edi, ebx
jne 0x1002bad8
mov edx, dword [esp + 0x18]
push 0x1006161c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov dword [ebp + 0x4c], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor esi, esi
cmp edi, ebx
jle 0x1002baf8
mov eax, dword [esp + 0x10]
cmp esi, eax
jge 0x1002bafc
call fcn.1002f640
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, edi
mov byte [esi + ecx - 1], al
jl 0x1002bade
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp edi, eax
mov byte [esi + edx], bl
jl 0x1002bb09
mov edi, eax
mov dword [ebp + 0x4c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret