Function at 0x4027d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, eax
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x24], eax
cmp byte [0x4ca5c0], 0
je 0x402a4f
xor ebx, ebx
push ebp
push 0x402a48
push dword fs:[ebx]
mov dword fs:[ebx], esp
cmp byte [0x4ca04d], 0
je 0x402839
push 0x4ca5c8
call sub.KERNEL32.DLL_LocalAlloc
mov eax, 0x4ca5e8
call fcn.004027bc
mov dword [esi], eax
mov eax, 0x4ca5f8
call fcn.004027bc
mov dword [esi + 4], eax
mov eax, 0x4ca624
call fcn.004027bc
mov dword [esi + 8], eax
xor ecx, ecx
mov edx, 3
mov eax, dword [0x4ca620]
mov eax, dword [eax + edx*4 - 0xc]
test eax, eax
je 0x4028a5
add ecx, dword [eax + 8]
mov ebx, dword [eax]
cmp eax, dword [ebx + 4]
jne 0x40288a
mov ebx, dword [eax + 4]
cmp eax, dword [ebx]
jne 0x40288a
cmp dword [eax + 8], 0xc
jge 0x402896
mov dword [0x4ca5c4], 0xc
jmp 0x4028a5
mov eax, dword [eax + 4]
mov ebx, dword [0x4ca620]
cmp eax, dword [ebx + edx*4 - 0xc]
jne 0x402873
inc edx
cmp edx, 0x401
jne 0x402866
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov eax, dword [0x4ca60c]
jmp 0x4028e0
mov edx, dword [eax]
cmp eax, dword [edx + 4]
jne 0x4028ce
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x4028ce
cmp dword [eax + 8], 0xc
jge 0x4028da
mov dword [0x4ca5c4], 0xc
jmp 0x4028e7
add ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, 0x4ca608
jne 0x4028ba
mov dword [esi + 0x18], ecx
mov eax, dword [0x4ca618]
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x14]
add edx, dword [esi + 0x18]
add edx, eax
mov dword [esi + 0x10], edx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [esi + 0x20], eax
mov eax, dword [0x4ca624]
mov dword [ebp - 0x10], eax
xor eax, eax
jmp 0x4029f9
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
add ecx, edx
mov dword [ebp - 0xc], ecx
cmp edx, dword [ebp - 0xc]
jae 0x4029f1
cmp edx, dword [0x4ca61c]
jne 0x402964
cmp dword [0x4ca618], 0
jle 0x402964
mov ecx, dword [0x4ca618]
add dword [ebp - 4], ecx
test al, al
je 0x40295d
mov dword [0x4ca5c4], 7
xor eax, eax
jmp 0x4029e6
mov ecx, edx
test byte [ecx], 1
setne bl
cmp al, bl
je 0x40297a
mov dword [0x4ca5c4], 0xb
mov eax, dword [ecx]
test al, 2
jne 0x4029aa
mov eax, ecx
mov ecx, dword [eax]
cmp eax, dword [ecx + 4]
jne 0x402996
mov ecx, dword [eax + 4]
cmp eax, dword [ecx]
jne 0x402996
cmp dword [eax + 8], 0xc
jge 0x4029a0
mov dword [0x4ca5c4], 0xd
mov ecx, dword [eax + 8]
add dword [ebp - 4], ecx
mov al, 1
jmp 0x4029e6
mov ecx, eax
and ecx, 0x7ffffffc
test eax, 0x80000000
je 0x4029d8
add dword [esi + 0x20], ecx
mov eax, dword [ebp - 0x10]
cmp edx, dword [eax + 8]
jbe 0x4029e4
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0xc]
jae 0x4029e4
mov dword [0x4ca5c4], 9
jmp 0x4029e4
mov eax, ecx
sub eax, 4
add dword [ebp - 8], eax
add dword [esi + 0x20], 4
xor eax, eax
add edx, ecx
cmp edx, dword [ebp - 0xc]
jb 0x402935
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
mov edx, 0x4ca624
cmp edx, dword [ebp - 0x10]
jne 0x40291b
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x402a19
mov dword [0x4ca5c4], 0xe
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [0x4ca5c4]
mov dword [esi + 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a4f
cmp byte [0x4ca04d], 0
je 0x402a47
push 0x4ca5c8
call sub.KERNEL32.DLL_TlsGetValue
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret