Function at 0x41e32a
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
call fcn.0044dd8d
push eax
push dword [0x4b046c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.0041dd2d
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x41e353
xor eax, eax
jmp 0x41e646
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
inc dword [esi + 0x20]
mov eax, dword [esi + 0x20]
push ebx
mov dword [esi + eax*4 + 0x24], 0x19
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x188], ebx
mov dword [esi + 0x190], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x18], ebx
call fcn.0044dd80
mov eax, dword [esp + 0x18]
pop ecx
push 1
pop ebp
cmp eax, ebp
je 0x41e639
cmp eax, 0x80000000
ja 0x41e639
push eax
call fcn.0041e0a5
mov eax, dword [esi]
mov dword [esi + 0xc], ebx
cmp eax, ebx
pop ecx
mov dword [esi + 0x10], ebp
jne 0x41e3d0
mov dword [esi + 0xc], 0x20
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x41e3e3
dec eax
cdq
idiv dword [esi + 8]
inc eax
jmp 0x41e3f3
cmp eax, ebp
jbe 0x41e3c0
shr eax, 1
inc dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
shl ecx, 1
mov dword [esi + 0x10], ecx
jmp 0x41e3d0
mov ecx, dword [esi + 0xc]
shl eax, 3
mov edx, eax
mov eax, ecx
sub eax, edx
dec eax
cdq
idiv ecx
push edi
push 2
pop edi
mov dword [esi + 0x1c], eax
cmp eax, edi
jge 0x41e401
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x250], eax
mov eax, dword [esi + 0x1c]
cmp eax, edi
mov dword [esi + 0x254], eax
jle 0x41e42e
push 0x34
mov ecx, eax
pop eax
cdq
idiv dword [esi + 0xc]
cmp ecx, eax
jle 0x41e42e
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
jmp 0x41e40d
cmp dword [esi + 0x254], edi
jge 0x41e43c
mov dword [esi + 0x254], edi
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x84], ebp
mov dword [esi + 0x238], 0xa
mov dword [esi + 0x230], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x234], 6
mov dword [esi + 0x15c], ebp
push ebp
mov dword [esi + 0x23c], ebp
push 0x401
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x228], 0x400
call fcn.0044dd9d
mov dword [esi + 0x224], eax
push 0x25
mov byte [eax], bl
lea edi, [esi + 0x9c]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
call fcn.0041e039
mov eax, dword [esi + 0x1c]
add esp, 0xc
lea eax, [eax + eax + 1]
pop edi
mov ecx, eax
mov dword [esi + 0x1c], eax
and ecx, 0xffff
cmp eax, ecx
jne 0x41e623
cmp eax, 0x40000000
jg 0x41e623
push ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebp
call fcn.0041e230
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0x1c]
dec eax
push ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x1c], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x1dc], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x1e0], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x1e4], eax
call fcn.0041e230
mov dword [esi + 0x1e8], eax
mov eax, dword [esi + 0x1c]
push ebx
lea eax, [eax + eax + 1]
mov dword [esi + 0x1c], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x1ec], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x1f0], eax
call fcn.0041e230
mov ecx, eax
mov eax, dword [esi + 0x1c]
dec eax
push ebx
cdq
sub eax, edx
mov dword [esi + 0x1f4], ecx
sar eax, 1
mov dword [esi + 0x1c], eax
lea eax, [eax*4 + 4]
mov edx, eax
add edx, dword [esi + 0x1ec]
mov dword [esi + 0x1f8], edx
mov edx, eax
add edx, dword [esi + 0x1f0]
add eax, ecx
mov dword [esi + 0x200], eax
mov dword [esi + 0x1fc], edx
call fcn.0041e230
push ebx
mov dword [esi + 0x204], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x208], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x20c], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x210], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x214], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x218], eax
call fcn.0041e230
push ebx
mov dword [esi + 0x21c], eax
call fcn.0041e230
add esp, 0x40
mov dword [esi + 0x220], eax
jmp 0x41e641
push 0xe
call fcn.0041dd53
mov eax, dword [esi + 0x1c]
pop ecx
dec eax
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x1c], eax
jmp 0x41e641
push 6
call fcn.0041dd53
pop ecx
dec dword [esi + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
ret