Function at 0x427020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x458940]
mov ebx, ecx
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [0x458940]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x427310
lea eax, [ebp - 0x1ac]
mov ecx, ebx
push eax
sub esp, 8
lea edx, [ebp - 0x198]
call fcn.00426ee0
push 0
push 0
push 0x1004
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x458d34]
mov esi, 0x100
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1a0], esi
lea ecx, [esi + 0xa]
call fcn.00412330
mov edi, eax
xor eax, eax
lea ecx, [edi + 8]
mov dword [ebp - 0x19c], edi
mov dword [edi + 4], ecx
mov word [ecx + 0x100], ax
xor ecx, ecx
mov dword [edi], eax
mov eax, dword [edi + 4]
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1b0], eax
jbe 0x4272ad
mov edi, edi
push 2
push eax
push 0x102c
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 2
je 0x427294
xor ebx, ebx
cmp dword [ebp - 0x1ac], ebx
jbe 0x427206
jmp 0x427140
mov edx, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0x1a4]
push ebx
call fcn.00426f80
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1b4], ecx
test esi, esi
je 0x4271a5
mov edx, dword [edi]
add edx, esi
cmp dword [ebp - 0x1a0], edx
jae 0x427184
lea ecx, [ebp - 0x1a0]
call fcn.00413cb0
mov edi, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1b4]
test ecx, ecx
je 0x427198
mov eax, dword [edi + 4]
add eax, dword [edi]
push esi
push ecx
push eax
call fcn.0042ea70
add esp, 0xc
add dword [edi], esi
xor edx, edx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
mov ecx, 0x44f02c
call fcn.00412950
mov esi, eax
add esi, esi
je 0x4271f3
mov edx, dword [edi]
add edx, esi
cmp dword [ebp - 0x1a0], edx
jae 0x4271d2
lea ecx, [ebp - 0x1a0]
call fcn.00413cb0
mov edi, dword [ebp - 0x19c]
mov eax, dword [edi]
add eax, dword [edi + 4]
push esi
push 0x44f02c
push eax
call fcn.0042ea70
add dword [edi], esi
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
inc ebx
cmp ebx, dword [ebp - 0x1ac]
jb 0x427140
mov esi, dword [ebp - 0x1a0]
mov ebx, dword [edi]
test ebx, ebx
je 0x42723e
mov ecx, dword [edi + 4]
mov eax, ebx
shr eax, 1
lea edx, [eax*2 - 4]
sub ebx, edx
lea eax, [ecx + eax*2]
sub ebx, 4
push ebx
push eax
lea eax, [ecx + edx]
push eax
call fcn.0042f0f0
add dword [edi], 0xfffffffc
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
mov ecx, 0x4507dc
call fcn.00412950
mov ebx, eax
add ebx, ebx
je 0x42728e
mov edx, dword [edi]
add edx, ebx
cmp esi, edx
jae 0x42726d
lea ecx, [ebp - 0x1a0]
call fcn.00413cb0
mov edi, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x1a0]
mov eax, dword [edi]
add eax, dword [edi + 4]
push ebx
push 0x4507dc
push eax
call fcn.0042ea70
add dword [edi], ebx
add esp, 0xc
mov ecx, dword [edi]
xor edx, edx
mov eax, dword [edi + 4]
mov word [ecx + eax], dx
mov ebx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1a8]
inc eax
mov dword [ebp - 0x1a8], eax
cmp eax, dword [ebp - 0x1b0]
jb 0x427110
lea ecx, [ebp - 0x2d0]
call fcn.00412500
push dword [0x458940]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x2d0]
cmp eax, ecx
jne 0x427310
push dword [ebp - 0x1c0]
push dword [0x458940]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x427310
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x4272fd
push eax
push 0
push dword [0x458d0c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d1c6
mov esp, ebp
pop ebp
ret
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3