Function at 0x41cfb0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4ab307
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4eb358]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x18], ecx
je 0x41d169
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x41d169
push 0xb8
call fcn.0048b346
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov dword [esp + 0x30], ebx
je 0x41d0fb
mov al, byte [esp + 0x40]
mov dword [esi + 0x38], ebx
mov byte [esi + 0x34], al
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov cl, byte [esp + 0x40]
mov dword [esi + 0x48], ebx
mov byte [esi + 0x44], cl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dl, byte [esp + 0x40]
mov dword [esi + 0x8c], ebx
mov byte [esi + 0x88], dl
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea eax, [esp + 0x13]
lea ecx, [esi + 0x98]
push eax
mov byte [esp + 0x34], 3
call fcn.00418660
mov byte [esp + 0x1c], bl
mov word [esp + 0x1e], bx
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x28]
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov eax, dword [esp + 0x20]
mov dword [ecx], edx
mov ebp, 1
mov dword [esi + 0x20], 0x33333333
mov dword [ecx + 4], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [ecx + 8], bx
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb0], bl
mov dword [esi + 0xb4], ebx
jmp 0x41d102
xor esi, esi
mov ebp, 1
mov ecx, dword [0x4eb358]
push esi
push ecx
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x41d135
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
push 0x4cb060
push edx
mov dword [esp + 0x1c], eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov edi, eax
push 0x4eb360
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4eb35c]
push 0x4eb360
mov dword [edi + 4], eax
mov dword [0x4eb35c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41d16e
mov ebp, 1
inc dword [esi + 4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], 4
lea eax, [ecx - 1]
cmp eax, 0x1f
ja case.0x41d191.7
xor edx, edx
mov dl, byte [eax + 0x41d55c]
jmp dword [edx*4 + 0x41d540]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
push ebp
lea ecx, [eax + eax*2]
push eax
mov edx, ecx
mov eax, dword [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
call fcn.0041dfd0
jmp case.0x41d191.7
mov edi, dword [esp + 0x40]
cmp edi, ebx
jbe case.0x41d191.7
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov edx, dword [esi]
xor ebx, ebx
mov ecx, edx
mov dword [esp + 0x40], edx
mov bl, dh
and ecx, 0xff
xor edx, edx
mov byte [eax + 1], cl
mov dl, byte [esp + 0x42]
mov byte [eax], bl
mov byte [eax - 1], dl
add esi, 4
add eax, 3
dec edi
jne 0x41d1e1
xor ebx, ebx
jmp 0x41d393
mov eax, dword [esp + 0x40]
cmp eax, ebx
jbe case.0x41d191.7
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, eax
lea esi, [edx + 1]
mov ax, word [edi]
add edi, 2
mov cl, al
mov edx, eax
and ecx, 0x1f
and edx, 0x3e0
shl ecx, 3
and eax, 0x7c00
or dl, 0x1c
or ecx, 7
or ax, 0x380
shr dx, 2
shr ax, 7
mov byte [esi + 1], cl
mov byte [esi], dl
mov byte [esi - 1], al
add esi, 3
dec ebp
jne 0x41d22a
jmp 0x41d393
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebx
mov ecx, 7
jbe case.0x41d191.7
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
lea esi, [eax + 1]
mov edx, edi
mov al, 1
shr edx, 3
shl al, cl
mov dl, byte [edx + ebp]
and dl, al
shr dl, cl
mov byte [esp + 0x3c], dl
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
and eax, 0xff
dec ecx
cmp ecx, 0xffffffff
lea eax, [edx + eax*4]
mov dl, byte [eax]
mov byte [esi + 1], dl
mov dl, byte [eax + 1]
mov byte [esi], dl
mov al, byte [eax + 2]
mov byte [esi - 1], al
jne 0x41d2c7
mov ecx, 7
mov eax, dword [esp + 0x40]
inc edi
add esi, 3
cmp edi, eax
jb 0x41d288
jmp 0x41d393
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebx
mov esi, ebp
jbe case.0x41d191.7
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
lea edx, [ecx + 1]
lea ecx, [esi*4]
mov eax, edi
mov bl, 0xf
shr eax, 1
shl bl, cl
mov al, byte [eax + ebp]
and al, bl
shr al, cl
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
and ecx, 0xff
inc esi
cmp esi, 2
lea eax, [eax + ecx*4]
mov cl, byte [eax]
mov byte [edx + 1], cl
mov cl, byte [eax + 1]
mov byte [edx], cl
mov al, byte [eax + 2]
mov byte [edx - 1], al
jne 0x41d33a
xor ebx, ebx
xor esi, esi
jmp 0x41d33c
xor ebx, ebx
mov eax, dword [esp + 0x40]
inc edi
add edx, 3
cmp edi, eax
jb 0x41d2f3
jmp 0x41d393
mov edi, dword [esp + 0x40]
xor esi, esi
cmp edi, ebx
jbe case.0x41d191.7
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x48]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x38]
add eax, 3
mov cl, byte [esi + edx]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
and edx, 0xff
inc esi
cmp esi, edi
lea ecx, [ebp + edx*4]
mov dl, byte [ebp + edx*4]
mov byte [eax - 2], dl
mov dl, byte [ecx + 1]
mov byte [eax - 3], dl
mov cl, byte [ecx + 2]
mov byte [eax - 4], cl
jb 0x41d35f
mov ebp, 1
mov eax, dword [0x4eb358]
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], 0xffffffff
je 0x41d523
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebx
jne 0x41d523
push 0xb8
call fcn.0048b346
add esp, 4
cmp eax, ebx
je 0x41d4c3
mov dl, byte [esp + 0x40]
mov cl, byte [esp + 0x40]
mov byte [eax + 0x34], dl
mov dl, byte [esp + 0x40]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], cl
mov cl, byte [esp + 0x40]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [eax + 0x88], dl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], cl
mov byte [esp + 0x1c], bl
mov word [esp + 0x1e], bx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 0x28]
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [edx + 4], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov word [edx + 8], bx
mov dword [eax + 0x54], ebp
mov dword [eax + 0x58], ebp
mov dword [eax + 0x5c], ebp
mov dword [eax + 0x60], ebp
mov dword [eax + 0x64], ebp
mov dword [eax + 0x68], ebp
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ebp
mov dword [eax + 0x74], ebp
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ebp
mov dword [eax + 0x80], ebp
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov edi, eax
jmp 0x41d4c5
xor edi, edi
mov edx, dword [0x4eb358]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x41d4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0x4cb060
push eax
call fcn.00472a64
push 8
call fcn.0048b346
add esp, 4
mov esi, eax
push 0x4eb360
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4eb35c]
push 0x4eb360
mov dword [esi + 4], ecx
mov dword [0x4eb35c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
dec eax
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x14