Function at 0x41efb0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7b4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x48bee0
cmp byte [esi + 0x24], bl
je 0x41efdd
xor cl, cl
call fcn.00414f60
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.004205a0
cmp dword [esi + 0x1c], 0
jne 0x41f09f
mov eax, dword [esi + 0xcc]
lea edi, [esi + 0xc]
mov dword [esp + 0xc], eax
test bl, 8
je 0x41f016
lea ecx, [esp + 0x30]
and ebx, 0xfffffff7
call fcn.00414010
mov eax, dword [esp + 0xc]
lea esi, [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x34], 0
jne 0x41f030
mov byte [eax + 0x40], 0
jmp 0x41f083
lea edx, [eax + 0x24]
cmp edx, edi
je 0x41f083
mov eax, dword [edi]
mov ecx, dword [edx]
mov dword [edx], eax
mov dword [edi], ecx
mov eax, dword [edx]
test eax, eax
je 0x41f047
mov dword [eax], edx
mov eax, dword [edi]
test eax, eax
je 0x41f04f
mov dword [eax], edi
mov ecx, dword [edx + 4]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov dword [edi + 4], ecx
mov ecx, dword [edx + 8]
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov dword [edi + 8], ecx
mov ecx, dword [edx + 0xc]
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x10], ecx
mov edi, dword [eax + 8]
push esi
mov dword [eax + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
add dword [esi + 0x20], edi
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.004205a0
test al, al
je 0x41f0b8
inc edi
mov dword [esp + 0x14], edi
cmp edi, 0x64
jl 0x41efe3
test bl, 4
je 0x41f0cc
lea ecx, [esp + 0xe0]
and ebx, 0xfffffffb
call fcn.00414010
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x58]
test eax, 0xfffffffc
je 0x41f32c
lea eax, [esi + 0x54]
push eax
lea ecx, [esp + 0x20]
call fcn.004219d0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x41f328
test bl, 0x10
je 0x41f10e
lea ecx, [esp + 0x190]
and ebx, 0xffffffef
call fcn.00414010
cmp byte [edi + 5], 0
je 0x41f185
cmp dword [esp + 0x20], 0
je 0x41f185
test bl, 0x20
je 0x41f12f
lea ecx, [esp + 0x240]
and ebx, 0xffffffdf
call fcn.00414010
test bl, bl
jns 0x41f145
lea ecx, [esp + 0x2f0]
and ebx, 0xffffff7f
call fcn.00414010
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp byte [edi + 5], al
cmovne eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 2
cmp eax, ecx
mov dword [esp + 0x2c], eax
cmovb ecx, eax
cmp esi, ecx
jae 0x41f185
lea eax, [edx + esi*4]
nop
cmp dword [eax], 0
jne 0x41f25f
inc esi
add eax, 4
mov dword [esp + 0x24], esi
cmp esi, ecx
jb 0x41f170
test edi, edi
je 0x41f328
test ebx, 0x100
je 0x41f1a7
lea ecx, [esp + 0x3a0]
and ebx, 0xfffffeff
call fcn.00414010
cmp byte [edi + 5], 0
je 0x41f30a
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41f30a
test ebx, 0x200
je 0x41f1d7
lea ecx, [esp + 0x450]
and ebx, 0xfffffdff
call fcn.00414010
test ebx, 0x800
je 0x41f1f1
lea ecx, [esp + 0x500]
and ebx, 0xfffff7ff
call fcn.00414010
xor eax, eax
cmp byte [edi + 5], al
cmovne eax, esi
add dword [eax + 0x10], 0xffffffff
jne 0x41f30a
test ebx, 0x1000
je 0x41f21d
lea ecx, [esp + 0x5b0]
and ebx, 0xffffefff
call fcn.00414010
test ebx, 0x4000
je 0x41f237
lea ecx, [esp + 0x660]
and ebx, 0xffffbfff
call fcn.00414010
xor ecx, ecx
cmp byte [edi + 5], cl
cmovne ecx, esi
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x41f2cd
cmp dword [esi], 0
je 0x41f290
add esi, 4
cmp esi, eax
jne 0x41f251
jmp 0x41f2cd
cmp esi, ecx
jae 0x41f185
mov ecx, dword [edx + esi*4]
inc esi
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x41f185
mov edx, dword [ecx]
mov eax, dword [edx]
cmp eax, 0x42e8b0
jne 0x41f6f3
push 1
call dword [edx + 4]
jmp 0x41f0f2
cmp esi, eax
je 0x41f2cd
lea ecx, [esi + 4]
mov edi, eax
sub edi, ecx
xor edx, edx
add edi, 3
shr edi, 2
cmp ecx, eax
cmova edi, edx
mov dword [esp + 0xc], edi
test edi, edi
je 0x41f2c9
mov eax, edi
mov edi, dword [ecx]
test edi, edi
je 0x41f2bd
mov dword [esi], edi
add esi, 4
inc edx
add ecx, 4
cmp edx, eax
jne 0x41f2b2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], esi
cmp esi, edx
jne 0x41f2e2
cmp eax, dword [ecx + 8]
jne 0x41f2e2
mov dword [ecx + 8], edx
jmp 0x41f30a
cmp esi, eax
je 0x41f30a
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 2
lea edi, [ecx*4]
push edi
push eax
push esi
call fcn.0045b4f0
mov ecx, dword [esp + 0x20]
lea eax, [edi + esi]
add esp, 0xc
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x1c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f328
push ecx
call fcn.0045a086
add esp, 4
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 0xd8]
mov dword [esi + 0xd8], 0
test edi, edi
je 0x41f350
mov ecx, edi
call fcn.00435df0
push edi
call fcn.0045a086
add esp, 4
mov edi, dword [esi + 0xcc]
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
or esi, 0xffffffff
mov ecx, dword [edi + 0xcc]
mov dword [edi + 0xcc], 0
test ecx, ecx
je 0x41f3ab
add ecx, 4
mov eax, esi
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f3ab
test ecx, ecx
je 0x41f3ab
add ecx, 0xfffffffc
je 0x41f3ab
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0xd0]
mov dword [edi + 0xd0], 0
test ecx, ecx
je 0x41f3f2
add ecx, 4
mov eax, esi
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f3f2
test ecx, ecx
je 0x41f3db
add ecx, 0xfffffffc
jmp 0x41f3dd
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x48c550
jne 0x41f6fa
push 1
call dword [eax + 8]
mov ecx, dword [edi + 0xd4]
mov dword [edi + 0xd4], 0
test ecx, ecx
je 0x41f439
add ecx, 4
mov eax, esi
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f439
test ecx, ecx
je 0x41f422
add ecx, 0xfffffffc
jmp 0x41f424
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x48c550
jne 0x41f701
push 1
call dword [eax + 8]
mov eax, dword [0x494ed4]
test eax, 0xfffffffe
jne 0x41f4c6
mov ecx, 1
mov edx, 0x494ed4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41f480
mov eax, dword [0x494ed4]
cmp eax, 1
jne 0x41f4c6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0
call esi
mov eax, dword [0x494ed4]
cmp eax, 1
je 0x41f470
jmp 0x41f4c6
mov dword [0x494ed8], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x494ed8], eax
cmp eax, 0xffffffff
jne 0x41f4a8
cmp byte [0x494ee8], 0
jne 0x41f708
int3
test ebx, 0x8000
je 0x41f4bc
lea ecx, [esp + 0x710]
call fcn.00414010
mov dword [0x494ed4], 0x494ed8
mov eax, dword [0x494ed4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
jne 0x41f520
mov eax, dword [0x494ed4]
test eax, 0xfffffffe
jne 0x41f513
push 0x494ed4
call fcn.004168e0
add esp, 4
test al, al
je 0x41f513
mov ecx, 0x494ed8
call fcn.004212c0
push 0
push 0x494ed4
push eax
push 0x494ed4
call fcn.00416930
add esp, 0x10
mov ecx, dword [0x494ed4]
push 0
call fcn.00421200
mov esi, dword [edi + 0xd8]
mov dword [edi + 0xd8], 0
test esi, esi
je 0x41f544
mov ecx, esi
call fcn.00435df0
push esi
call fcn.0045a086
add esp, 4
mov ecx, dword [edi + 0xd4]
or ebx, 0xffffffff
test ecx, ecx
je 0x41f584
add ecx, 4
mov eax, ebx
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f584
test ecx, ecx
je 0x41f56d
add ecx, 0xfffffffc
jmp 0x41f56f
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x48c550
jne 0x41f70f
push 1
call dword [eax + 8]
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x41f5c1
add ecx, 4
mov eax, ebx
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x41f5c1
test ecx, ecx
je 0x41f5aa
add ecx, 0xfffffffc
jmp 0x41f5ac
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x48c550
jne 0x41f716
push 1
call dword [eax + 8]
mov ecx, dword [edi + 0xcc]
test ecx, ecx
je 0x41f5eb
add ecx, 4
lock xadd dword [ecx], ebx
sub ebx, 1
setne al
test al, al
jne 0x41f5eb
test ecx, ecx
je 0x41f5eb
add ecx, 0xfffffffc
je 0x41f5eb
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0xb4]
lea esi, [edi + 0xb0]
test ecx, ecx
je 0x41f61f
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00411a70
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, esi
call fcn.0042e120
mov eax, dword [edi + 0xa4]
lea esi, [edi + 0x90]
cmp eax, 0x10
jb 0x41f642
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040a4f0
mov dword [esi + 0x14], 0xf
lea ecx, [edi + 0x70]
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00417560
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x41f686
mov eax, dword [edi + 0x60]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00411a70
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
lea ecx, [edi + 0x54]
call fcn.0042e120
lea ecx, [edi + 0x40]
call fcn.00421370
push 8
push 1
push dword [edi + 0x40]
call fcn.00405690
add esp, 0xc
mov dword [edi + 0x40], 0
lea ecx, [edi + 0x28]
call fcn.0041f720
lea ecx, [edi + 0xc]
call fcn.00421370
push 8
push 1
push dword [edi + 0xc]
call fcn.00405690
mov dword [edi + 0xc], 0
add esp, 0xc
mov ecx, dword [edi + 4]
mov dword [edi + 4], 0
test ecx, ecx
je 0x41f6e6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0x48bed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
jmp 0x41f0f2
call edx
jmp 0x41f3f2
call edx
jmp 0x41f439
push 1
call fcn.0046515c
call edx
jmp 0x41f584
call edx
jmp 0x41f5c1