Function at 0x42cbd8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edi, edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test byte [ebx + 1], 0x80
mov esi, dword [eax + 0xc]
je 0x42cd23
mov eax, dword [ebx + 8]
mov ax, word [eax + 0xc]
test ax, ax
je 0x42cced
movzx edx, ax
mov ecx, dword [0x540cf4]
cmp dword [ebp + 0x10], 0
mov edi, dword [ecx + edx*4]
je 0x42ccce
mov edx, dword [ebp + 0x10]
mov word [edx + 0xc], ax
mov eax, dword [ebx + 8]
cmp word [eax + 0xe], 0
je 0x42cc73
cmp dword [eax + 4], 0
je 0x42cc6c
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
push eax
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
push ebx
call fcn.0043f284
add esp, 8
jmp 0x42cc73
push ebx
call fcn.0043f008
pop ecx
mov word [ebp - 2], 4
mov dx, word [edi + 0x46]
mov eax, dword [edi + 0x48]
and dx, word [esi + 4]
movzx ecx, dx
shl ecx, 2
add ecx, ecx
add eax, ecx
movzx ecx, word [eax]
shl ecx, 5
mov edx, dword [edi + 8]
add edx, ecx
cmp esi, dword [edx]
jne 0x42ccb9
mov ax, word [eax]
mov ecx, dword [ebp + 0x10]
mov word [ecx + 0xe], ax
mov eax, dword [ebp + 0x10]
push eax
push edx
call fcn.0042c950
add esp, 8
jmp 0x42d3cc
add eax, 2
dec word [ebp - 2]
mov dx, word [ebp - 2]
test dx, dx
jne 0x42cc8e
jmp 0x42d247
push esi
push edi
call fcn.0042b828
add esp, 8
test eax, eax
je 0x42d247
mov eax, dword [eax + 8]
jmp 0x42d3cc
mov ax, word [0x540cc0]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx + 1], 0x10
je 0x42cd71
cmp esi, dword [0x54067c]
jne 0x42cd3b
mov eax, 0x540670
jmp 0x42d3cc
mov ax, word [0x540cc2]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx + 1], 0x20
je 0x42cf7b
cmp dword [ebp + 0x10], 0
je 0x42d247
push ebx
call fcn.0043f498
pop ecx
mov ebx, eax
test byte [ebx + 2], 1
je 0x42d247
cmp esi, dword [0x540c6c]
jne 0x42ce04
mov edx, dword [ebx + 0x10]
push edx
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043e6ec
add esp, 8
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
movzx eax, word [ecx + 0x10]
test eax, eax
jle 0x42cdfa
push 0x1a
push 1
call fcn.004336c4
add esp, 8
test eax, eax
je 0x42cdfa
push 0xffffffffffffffff
push 1
call fcn.004336c4
add esp, 8
push eax
call fcn.0043e230
pop ecx
mov dword [ebx + 0x10], eax
mov eax, 0x540c60
jmp 0x42d3cc
cmp esi, dword [0x540c8c]
jne 0x42ce66
mov edx, dword [ebx + 8]
test byte [edx + 1], 0x20
je 0x42ce23
mov ecx, dword [ebx + 8]
push ecx
call fcn.0043f7e0
pop ecx
mov esi, eax
jmp 0x42ce26
mov esi, dword [ebx + 8]
test byte [esi], 4
je 0x42ce57
mov eax, dword [ebx + 0x10]
push eax
push esi
call fcn.0043d458
add esp, 8
mov esi, eax
test esi, esi
je 0x42ce57
push esi
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov eax, 0x540c80
jmp 0x42d3cc
cmp esi, dword [0x540c7c]
jne 0x42cf03
mov edx, dword [ebx + 8]
test byte [edx + 1], 0x20
je 0x42ce9f
mov ecx, dword [ebx + 8]
push ecx
call fcn.0043f7e0
pop ecx
push eax
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
jmp 0x42cebb
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
movzx eax, word [ecx + 0x10]
test eax, eax
jle 0x42cef9
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 8]
push eax
call fcn.0043f7e0
pop ecx
push eax
mov edx, dword [ebx + 8]
push edx
call fcn.0043f0d4
add esp, 8
mov eax, 0x540c70
jmp 0x42d3cc
cmp esi, dword [0x540c9c]
jne 0x42d247
push ebx
call fcn.0043f7e0
pop ecx
mov ebx, eax
push ebx
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
movzx ecx, word [edx + 0x10]
test ecx, ecx
jle 0x42cf6c
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
call fcn.0043f7e0
pop ecx
push eax
push ebx
call fcn.0043f0d4
add esp, 8
mov eax, 0x540c90
jmp 0x42d3cc
test byte [ebx + 1], 1
je 0x42d028
cmp word [0x540cd2], 0
je 0x42cfbe
movzx edx, word [0x540cd2]
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42cfbe
mov eax, dword [ebp - 8]
jmp 0x42d3cc
cmp esi, dword [0x540c2c]
je 0x42cfce
cmp esi, dword [0x54067c]
jne 0x42cff5
mov edx, dword [ebx + 8]
cmp dword [edx + 8], 0
jne 0x42cfed
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0xc], 0
je 0x42cfed
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
jmp 0x42d3cc
mov eax, dword [ebx + 8]
jmp 0x42d3cc
cmp esi, dword [0x540c3c]
jne 0x42d247
mov edx, dword [ebx + 8]
mov ecx, dword [edx]
push ecx
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043dc4c
add esp, 8
mov eax, 0x540c30
jmp 0x42d3cc
test byte [ebx], 4
je 0x42d0aa
cmp word [0x540cca], 0
je 0x42d066
movzx edx, word [0x540cca]
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d066
mov eax, dword [ebp - 0xc]
jmp 0x42d3cc
cmp esi, dword [0x540c4c]
jne 0x42d086
push ebx
call fcn.0043d83c
pop ecx
push eax
call fcn.0043e394
pop ecx
mov eax, 0x540c40
jmp 0x42d3cc
cmp esi, dword [0x540c5c]
jne 0x42d247
push ebx
call fcn.0043d89c
pop ecx
push eax
call fcn.0043e394
pop ecx
mov eax, 0x540c50
jmp 0x42d3cc
test byte [ebx + 1], 4
je 0x42d0e6
mov ax, word [0x540cc4]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx], 0x20
je 0x42d121
mov ax, word [0x540cc6]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx], 0x40
je 0x42d15c
mov ax, word [0x540cc8]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx], 0x1a
je 0x42d197
mov ax, word [0x540cd0]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx], 0x80
je 0x42d1cf
mov ax, word [0x540ccc]
test ax, ax
je 0x42d247
movzx edx, ax
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test byte [ebx], 1
je 0x42d206
cmp word [0x540cd4], 0
je 0x42d247
movzx edx, word [0x540cd4]
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
test eax, eax
jne 0x42d3cc
jmp 0x42d247
test dword [ebx], 0xfffbffff
jne 0x42d247
cmp word [0x540cce], 0
je 0x42d247
movzx edx, word [0x540cce]
mov ecx, dword [0x540cf4]
mov edi, dword [ecx + edx*4]
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.0042cb40
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42d247
mov eax, dword [ebp - 0x10]
jmp 0x42d3cc
cmp esi, dword [0x540cac]
jne 0x42d2be
cmp dword [ebp + 0x10], 0
je 0x42d37a
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
cmp dword [eax + 0x2c], 0
je 0x42d28d
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov ebx, dword [eax + 0x2c]
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 8]
mov ebx, dword [edx + ebx*4]
jmp 0x42d28f
xor ebx, ebx
test ebx, ebx
je 0x42d37a
push ebx
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov eax, 0x540ca0
jmp 0x42d3cc
cmp esi, dword [0x540cbc]
jne 0x42d34d
cmp dword [ebp + 0x10], 0
je 0x42d37a
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
cmp dword [eax + 0x2c], 0
je 0x42d308
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov ebx, dword [eax + 0x2c]
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 8]
mov ebx, dword [edx + ebx*4]
jmp 0x42d30a
xor ebx, ebx
test ebx, ebx
je 0x42d37a
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + 8]
push ecx
push ebx
call fcn.0043f0d4
add esp, 8
push ebx
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add eax, 0x10
push eax
call fcn.0043f0d4
add esp, 8
mov eax, 0x540cb0
jmp 0x42d3cc
cmp esi, dword [0x540bfc]
jne 0x42d35c
mov eax, 0x540bf0
jmp 0x42d3cc
cmp esi, dword [0x540c0c]
jne 0x42d36b
mov eax, 0x540c00
jmp 0x42d3cc
cmp esi, dword [0x540c1c]
jne 0x42d37a
mov eax, 0x540c10
jmp 0x42d3cc
cmp dword [ebp + 0x10], 0
je 0x42d3ca
test edi, edi
je 0x42d3c3
cmp word [edi + 0x34], 0
je 0x42d3c3
mov edx, dword [0x540abc]
push edx
push edi
call fcn.0042b828
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d3c3
mov ecx, dword [ebp - 0x14]
sub ecx, dword [edi + 8]
test ecx, ecx
jns 0x42d3b1
add ecx, 0x1f
sar ecx, 5
mov eax, dword [ebp + 0x10]
mov word [eax + 0xe], cx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
jmp 0x42d3cc
mov eax, 0x540ba0
jmp 0x42d3cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret