Function at 0x406220
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570c70
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0xfd2698]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0xfd4694]
add eax, 1
mov dword [0xfd4694], eax
push 1
mov ecx, 0xfd4704
call fcn.0041ebf0
push 0x3e8
mov ecx, 0xfd4704
call fcn.004218e0
call fcn.0042fad0
mov dword [0xfd4690], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0xfd4684]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xfd4688], 4
mov dword [0xfd4680], 0
mov dword [0xfd46ac], 0
call fcn.00478ab0
mov ecx, 0xfd4984
call fcn.0041eb50
call fcn.0047f060
mov ecx, 0x102e17c
call fcn.0041ea00
call fcn.004843f0
mov dword [0xfd493c], 0
mov dword [0xfd4938], 0
fld1
fstp qword [0xfcf168]
mov dword [0xfcfe00], 0x7530
mov dword [0xfd4970], 0
mov dword [0xfd4974], 0
mov dword [0xfd49e8], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, 0xfd4730
call fcn.0041e0f0
mov ecx, 0xfd4750
call fcn.0041eb50
mov dword [ebp - 4], 0
mov eax, dword [0xfd46d4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
push 0xfd46bc
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x24]
call fcn.00426630
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x4063a1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x18]
call fcn.00426560
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x28], eax
mov ecx, dword [0xfd46d4]
mov dword [ebp - 0x90], ecx
push 0xfd46bc
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x34]
call fcn.00426630
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c3410
mov byte [ebp - 0xd1], al
movzx ecx, byte [ebp - 0xd1]
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
je 0x406415
lea ecx, [ebp - 0x18]
call fcn.0046ceb0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx + 4]
call fcn.00416110
jmp 0x406375
mov edx, dword [0xfd474c]
mov dword [ebp - 0x98], edx
xor eax, eax
cmp dword [ebp - 0x98], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x406520
mov edx, dword [0xfd46d4]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
push 0xfd46bc
mov edx, dword [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00426630
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x4064a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x18]
call fcn.00426560
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x40], edx
mov eax, dword [0xfd46d4]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x48], ecx
mov edx, 0xfd46bc
test edx, edx
jne 0x4064c9
call fcn.005347cd
xor eax, eax
jne 0x4064c9
mov ecx, dword [0xfd46bc]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x18]
call fcn.005060f0
mov byte [ebp - 0xd9], al
movzx eax, byte [ebp - 0xd9]
test eax, eax
je 0x406520
lea ecx, [ebp - 0x18]
call fcn.0046ceb0
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
mov ecx, dword [edx + 4]
call fcn.00416840
jmp 0x406474
call fcn.00418d80
mov eax, dword [0xfd46d4]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x50], eax
mov ecx, 0xfd46bc
test ecx, ecx
jne 0x40655c
call fcn.005347cd
xor edx, edx
jne 0x40655c
mov eax, dword [0xfd46bc]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x4065a2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
lea ecx, [ebp - 0x18]
call fcn.00426560
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x58], eax
mov ecx, dword [0xfd46d4]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x60], edx
mov eax, 0xfd46bc
test eax, eax
jne 0x4065cc
call fcn.005347cd
xor ecx, ecx
jne 0x4065cc
mov edx, dword [0xfd46bc]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x18]
call fcn.005060f0
mov byte [ebp - 0xe1], al
movzx ecx, byte [ebp - 0xe1]
test ecx, ecx
je 0x406623
lea ecx, [ebp - 0x18]
call fcn.0046ceb0
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
call fcn.00418820
jmp 0x406576
jmp 0x40665b
mov dword [ebp - 4], 0xffffffff
jmp 0x40666c
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4066ac
mov dword [0xfd469c], 1
mov dword [0xfcf170], 8
mov dword [0xfcf174], 0x10
mov dword [0xfcf178], 2
mov dword [0xfcf17c], 4
jmp 0x4066de
mov dword [0xfd469c], 0
mov dword [0xfcf170], 2
mov dword [0xfcf174], 4
mov dword [0xfcf178], 8
mov dword [0xfcf17c], 0x10
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0xfd46a4], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0xfd46a0], eax
mov dword [0x102e148], 0
call fcn.0042f410
mov dword [0xfd46b0], eax
mov dword [0xfd46b4], edx
call fcn.00478ab0
call fcn.00401ea0
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret