Function at 0x4065d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c130
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xd4
push ebx
push esi
push edi
mov eax, dword [0x1004610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x1006614]
add eax, 1
mov dword [0x1006614], eax
call fcn.004308b0
mov dword [0x1006610], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x1006604]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x1006608], 4
mov dword [0x1006600], 0
mov dword [0x100662c], 0
call fcn.00427050
mov ecx, 0x10068e4
call fcn.00420640
mov ecx, 0x105ff40
call fcn.0042a940
call fcn.00486560
mov dword [0x10068a4], 0
mov dword [0x10068a0], 0
fld1
fstp qword [0x1001168]
mov dword [0x1001d84], 0x7530
mov dword [0x10068d0], 0
mov dword [0x10068d4], 0
mov dword [0x1006948], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, 0x10066a4
call fcn.0042b000
mov ecx, 0x10066c4
call fcn.00420640
mov dword [ebp - 4], 0
mov eax, dword [0x1006654]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx]
mov dword [ebp - 0x7c], edx
push 0x100663c
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00427840
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x406725
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x18]
call fcn.004d67e0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x1006654]
mov dword [ebp - 0x88], ecx
push 0x100663c
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x34]
call fcn.00427840
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.00535fd0
mov byte [ebp - 0xcd], al
movzx ecx, byte [ebp - 0xcd]
neg ecx
sbb ecx, ecx
add ecx, 1
movzx edx, cl
test edx, edx
je 0x406799
lea ecx, [ebp - 0x18]
call fcn.00422c70
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 4]
call fcn.004165c0
jmp 0x4066ff
mov edx, dword [0x10066c0]
mov dword [ebp - 0x90], edx
xor eax, eax
cmp dword [ebp - 0x90], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x4068a4
mov edx, dword [0x1006654]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
mov dword [ebp - 0x98], ecx
push 0x100663c
mov edx, dword [ebp - 0x98]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00427840
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x406824
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x18]
call fcn.004d67e0
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x40], edx
mov eax, dword [0x1006654]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x48], ecx
mov edx, 0x100663c
test edx, edx
jne 0x40684d
call fcn.00560bda
xor eax, eax
jne 0x40684d
mov ecx, dword [0x100663c]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x18]
call fcn.004213c0
mov byte [ebp - 0xd5], al
movzx eax, byte [ebp - 0xd5]
test eax, eax
je 0x4068a4
lea ecx, [ebp - 0x18]
call fcn.00422c70
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov ecx, dword [edx + 4]
call fcn.00416cf0
jmp 0x4067f8
call fcn.00419d70
mov eax, dword [0x1006654]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx]
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x50], eax
mov ecx, 0x100663c
test ecx, ecx
jne 0x4068e0
call fcn.00560bda
xor edx, edx
jne 0x4068e0
mov eax, dword [0x100663c]
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 0x406926
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0x18]
call fcn.004d67e0
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x58], eax
mov ecx, dword [0x1006654]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x60], edx
mov eax, 0x100663c
test eax, eax
jne 0x406950
call fcn.00560bda
xor ecx, ecx
jne 0x406950
mov edx, dword [0x100663c]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x18]
call fcn.004213c0
mov byte [ebp - 0xdd], al
movzx ecx, byte [ebp - 0xdd]
test ecx, ecx
je 0x4069a7
lea ecx, [ebp - 0x18]
call fcn.00422c70
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
call fcn.004197a0
jmp 0x4068fa
jmp 0x4069df
mov dword [ebp - 4], 0xffffffff
jmp 0x4069f0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406a30
mov dword [0x100661c], 1
mov dword [0x1001170], 8
mov dword [0x1001174], 0x10
mov dword [0x1001178], 2
mov dword [0x100117c], 4
jmp 0x406a62
mov dword [0x100661c], 0
mov dword [0x1001170], 2
mov dword [0x1001174], 4
mov dword [0x1001178], 8
mov dword [0x100117c], 0x10
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1006624], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1006620], eax
mov dword [0x105ff0c], 0
call fcn.004302c0
mov dword [0x1006630], eax
mov dword [0x1006634], edx
call fcn.00427050
call fcn.00401ef0
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