Function at 0x41e2d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0xf38]
test edi, edi
js 0x41e313
call dword [sym.imp.KERNEL30.dll_GetCurrentThread]
mov edx, edi
mov ecx, eax
call fcn.004604c0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], 0
push eax
push dword [esi + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x3c], 0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL30.dll_TlsSetValue]
mov eax, dword [esi + 0x8d8]
lea ebx, [esi + 0xf44]
mov edi, dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
push ebx
mov dword [ebp - 0x38], eax
call edi
inc dword [esi + 0xf0c]
push ebx
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0
cmp dword [esi + 0x100c], 0
jne 0x41e5fe
xor eax, eax
nop dword [eax]
or ecx, 0xffffffff
mov dword [ebp - 0x10], 0
xor edi, edi
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x7d4], edi
jle 0x41e4b8
nop dword [eax + eax]
test ecx, ecx
js 0x41e3dc
mov eax, dword [esi + 0xb88]
mov ebx, dword [eax + ecx*4]
xor ecx, ecx
mov edx, dword [eax + edi*4]
test ebx, ebx
sete cl
xor eax, eax
test edx, edx
sete al
cmp eax, ecx
jne 0x41e3d5
test edx, edx
je 0x41e3dc
push dword [ebx + 0x68]
lea ecx, [edx + 0x68]
call fcn.00411cc0
test al, al
jne 0x41e3dc
mov ecx, esi
call fcn.0041e6b0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
call fcn.00414c90
test eax, eax
je 0x41e49e
mov eax, dword [esi + 0x8d8]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x38], eax
cmp edi, 1
jl 0x41e43d
cmp dword [esi + 0x1014], ebx
je 0x41e43d
lea eax, [esi + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004258d0
lea eax, [esi + 0xf44]
mov byte [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1c]
mov dword [esi + 0x1014], ebx
push eax
push 0
push 0
push 2
mov ecx, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.00424a70
test edi, edi
jne 0x41e473
cmp dword [esi + 0x694], 2
je 0x41e473
push edi
push edi
push edi
push 1
mov ecx, esi
call fcn.00424a70
mov eax, dword [esi + 0xb64]
mov ecx, esi
and eax, 4
or eax, 8
shr eax, 2
push edi
push eax
xor eax, eax
cmp dword [esi + 0x698], 5
setne al
push eax
push dword [esi + 0x850]
call fcn.0041f310
mov eax, dword [esi + 0x100c]
test eax, eax
jne 0x41e4b8
mov ecx, dword [ebp - 0x14]
inc edi
cmp edi, dword [esi + 0x7d4]
jl 0x41e3a0
cmp dword [esi + 0x86c], 0
jne 0x41e4ce
cmp dword [esi + 0x870], 0
je 0x41e5f2
test eax, eax
jne 0x41e5f2
mov ecx, esi
call fcn.0041e6b0
cmp dword [esi + 0x694], 5
jne 0x41e4f8
cmp dword [esi + 0x100c], 0
jne 0x41e4f8
push 1
mov ecx, esi
call fcn.004241f0
cmp dword [esi + 0x870], 0
je 0x41e55c
push str.sync_del_____sync_cp__n
call fcn.0045f780
mov eax, dword [esi + 0xb60]
add esp, 4
mov dword [esi + 0x870], 0
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov eax, dword [esi + 0xb60]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov eax, dword [esi + 0xb60]
mov dword [eax + 0x70], 0
mov dword [eax + 0x74], 0
jmp 0x41e5b7
cmp dword [esi + 0x86c], 0
je 0x41e5b7
push str.pre____exec_n
call fcn.0045f780
add esp, 4
mov dword [esi + 0x86c], 0
lea eax, [esi + 0xa28]
mov dword [esi + 0x874], 1
mov dword [esi + 0xb60], eax
call dword [sym.imp.KERNEL30.dll_GetTickCount]
mov ecx, dword [esi + 0x6a4]
mov dword [esi + 0xff8], eax
and ecx, 8
xor eax, eax
or eax, ecx
je 0x41e5b7
mov dword [esi + 0x870], 1
mov ecx, esi
call fcn.00413020
test eax, eax
je 0x41e5e4
mov eax, dword [esi + 0x12ec]
lea ecx, [esi + 0x12ec]
call dword [eax + 0x20]
test eax, eax
je 0x41e5e4
mov eax, dword [esi + 0x12ec]
lea ecx, [esi + 0x12ec]
call dword [eax + 0x18]
mov eax, dword [esi + 0x100c]
test eax, eax
je 0x41e380
mov edi, dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
lea ebx, [esi + 0xf44]
push 0
push 0
push 0
push 0x12
mov ecx, esi
call fcn.00424a70
cmp dword [esi + 0x1014], 0
je 0x41e637
push ebx
call edi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004258d0
push ebx
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp dword [esi + 0x694], 5
jne 0x41e652
cmp dword [esi + 0x100c], 0
jne 0x41e652
push 1
mov ecx, esi
call fcn.004241f0
mov ecx, esi
call fcn.0041e6b0
mov ecx, esi
call fcn.00419a90
call dword [sym.imp.KERNEL30.dll_GetTickCount]
push 0
push 0
push dword [esi + 0x70c]
mov dword [esi + 0xffc], eax
push dword [esi + 0x708]
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call edi
dec dword [esi + 0xf0c]
push ebx
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
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