Function at 0x42a9a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test byte [eax + 1], 0x80
je 0x42ac59
mov eax, dword [eax + 8]
test edx, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
je 0x42a9d6
cmp dword [edx], 0
je 0x42a9d6
mov ebx, dword [edx]
dec ebx
jmp 0x42a9d8
xor ebx, ebx
cmp eax, ebx
jbe 0x42ac59
mov edi, eax
sub edi, ebx
cmp dword [ebp + 0x14], 0
je 0x42a9f6
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jbe 0x42a9f6
mov edx, dword [ebp + 0x14]
mov edi, dword [edx]
test edi, edi
jbe 0x42ac59
test byte [esi + 1], 0x10
je 0x42aa74
call fcn.00423254
push esi
call fcn.00422b70
pop ecx
mov eax, dword [ebp - 4]
mov ecx, ebx
shl ecx, 3
mov edx, dword [eax]
lea ecx, [ecx + ecx*2]
add edx, ecx
push edx
call fcn.00422b70
pop ecx
inc ebx
push ebx
call fcn.00422e0c
pop ecx
push 2
call fcn.00422330
pop ecx
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
test byte [eax + 0x10], 0x80
je 0x42aa60
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
cmp dword [eax + 0x18], 0
je 0x42aa60
mov eax, ebx
jmp 0x42ac5b
dec edi
je 0x42ac59
mov edx, dword [ebp - 4]
cmp ebx, dword [edx + 4]
jb 0x42aa04
jmp 0x42ac59
test byte [esi + 1], 4
je 0x42aab1
mov edx, ebx
mov ecx, dword [ebp - 4]
shl edx, 3
inc ebx
mov eax, dword [ecx]
lea edx, [edx + edx*2]
add eax, edx
test byte [eax + 1], 4
je 0x42aaa9
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push eax
call fcn.0043f810
add esp, 0xc
test eax, eax
jne 0x42aaa9
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42aa7a
jmp 0x42ac59
test byte [esi], 0x1a
je 0x42aaf3
push esi
call fcn.0043df40
pop ecx
fstp qword [ebp - 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
shl eax, 3
inc ebx
mov esi, dword [edx]
lea eax, [eax + eax*2]
add esi, eax
test byte [esi], 0x1a
je 0x42aaeb
push esi
call fcn.0043df40
fcomp qword [ebp - 0xc]
pop ecx
fnstsw ax
sahf
jne 0x42aaeb
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42aac0
jmp 0x42ac59
test byte [esi], 0x60
je 0x42ab5e
cmp dword [ebp + 0x18], 0
je 0x42ab32
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test byte [eax], 0x60
je 0x42ab2a
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 8]
jne 0x42ab2a
mov eax, dword [eax + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x42ab2a
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42aafe
jmp 0x42ac59
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test byte [eax], 0x60
je 0x42ab56
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 8]
jne 0x42ab56
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42ab32
jmp 0x42ac59
test byte [esi], 0x80
je 0x42ab9d
push esi
call fcn.0043dee4
pop ecx
mov dword [ebp - 0x10], eax
mov eax, ebx
mov edx, dword [ebp - 4]
shl eax, 3
inc ebx
mov esi, dword [edx]
lea eax, [eax + eax*2]
add esi, eax
test byte [esi], 0x80
je 0x42ab95
push esi
call fcn.0043dee4
pop ecx
cmp eax, dword [ebp - 0x10]
jne 0x42ab95
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42ab6d
jmp 0x42ac59
test dword [esi], 0xfffbffff
jne 0x42abcc
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test dword [eax], 0xfffbffff
jne 0x42abc4
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42aba5
jmp 0x42ac59
test byte [esi], 1
je 0x42abf7
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test byte [eax], 1
je 0x42abf2
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 8]
jne 0x42abf2
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42abd1
jmp 0x42ac59
cmp dword [ebp + 0x18], 0
je 0x42ac2a
test byte [esi + 1], 0x80
je 0x42ac2a
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test byte [eax + 1], 0x80
je 0x42ac25
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 8]
jne 0x42ac25
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42ac03
jmp 0x42ac59
cmp dword [ebp + 0x18], 0
je 0x42ac59
test byte [esi], 4
je 0x42ac59
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add eax, edx
inc ebx
test byte [eax], 4
je 0x42ac56
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 8]
jne 0x42ac56
mov eax, ebx
jmp 0x42ac5b
dec edi
jne 0x42ac35
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret